[asterisk-commits] branch file/passthrusdp - r7959
/team/file/passthrusdp/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 10 22:11:15 CST 2006
Author: file
Date: Tue Jan 10 22:11:13 2006
New Revision: 7959
URL: http://svn.digium.com/view/asterisk?rev=7959&view=rev
Log:
If we are trying to do passthru SDP, and we have no compatible codecs inside of chan_sip - don't error out
Modified:
team/file/passthrusdp/channels/chan_sip.c
Modified: team/file/passthrusdp/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/file/passthrusdp/channels/chan_sip.c?rev=7959&r1=7958&r2=7959&view=diff
==============================================================================
--- team/file/passthrusdp/channels/chan_sip.c (original)
+++ team/file/passthrusdp/channels/chan_sip.c Tue Jan 10 22:11:13 2006
@@ -3623,8 +3623,12 @@
ast_rtp_lookup_mime_multiple(s3, slen, p->noncodeccapability, 0));
}
if (!p->jointcapability) {
- ast_log(LOG_NOTICE, "No compatible codecs!\n");
- return -1;
+ if (ast_test_flag(p, SIP_PASSTHRU_SDP)) {
+ ast_log(LOG_NOTICE, "No compatible codecs -- but trying to pass through SDP!\n");
+ } else {
+ ast_log(LOG_NOTICE, "No compatible codecs!\n");
+ return -1;
+ }
}
if (!p->owner) /* There's no open channel owning us */
More information about the asterisk-commits
mailing list