[Asterisk-cvs] asterisk/channels chan_sip.c,1.246,1.247
martinp at lists.digium.com
martinp at lists.digium.com
Fri Nov 14 18:26:33 CST 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv3472/channels
Modified Files:
chan_sip.c
Log Message:
Don't do reinvite if both parties talk diffrent codecs
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -d -r1.246 -r1.247
--- chan_sip.c 14 Nov 2003 22:33:47 -0000 1.246
+++ chan_sip.c 15 Nov 2003 00:52:49 -0000 1.247
@@ -6287,10 +6287,17 @@
return 0;
}
+static int sip_get_codec(struct ast_channel *chan)
+{
+ struct sip_pvt *p = chan->pvt->pvt;
+ return p->capability;
+}
+
static struct ast_rtp_protocol sip_rtp = {
get_rtp_info: sip_get_rtp_peer,
get_vrtp_info: sip_get_vrtp_peer,
set_rtp_peer: sip_set_rtp_peer,
+ get_codec: sip_get_codec,
};
int load_module()
More information about the svn-commits
mailing list