[Freeswitch-branches] [commit] r4367 - freeswitch/branches/trixter/src/mod/endpoints/mod_sofia
Freeswitch SVN
trixter at freeswitch.org
Fri Feb 23 12:25:07 EST 2007
Author: trixter
Date: Fri Feb 23 12:25:06 2007
New Revision: 4367
Modified:
freeswitch/branches/trixter/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
Only use the remote endpoints 2833 PT from SDP if we are doing 2833 passthrough, that way FreeSWITCH can act as a bridge between say mera and asterisk
Modified: freeswitch/branches/trixter/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/branches/trixter/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/branches/trixter/src/mod/endpoints/mod_sofia/mod_sofia.c Fri Feb 23 12:25:06 2007
@@ -26,6 +26,7 @@
* Anthony Minessale II <anthmct at yahoo.com>
* Ken Rice, Asteria Solutions Group, Inc <ken at asteriasgi.com>
* Paul D. Tinsley <pdt at jackhammer.org>
+ * Bret McDanel <trixter AT 0xdecafbad.com>
*
*
* mod_sofia.c -- SOFIA SIP Endpoint
@@ -860,7 +861,7 @@
tech_pvt->flags = profile->flags;
switch_mutex_unlock(tech_pvt->flag_mutex);
tech_pvt->profile = profile;
- if (tech_pvt->bte) {
+ if (tech_pvt->bte && !(tech_pvt->profile->pflags & PFLAG_PASS_RFC2833)) {
tech_pvt->te = tech_pvt->bte;
} else {
tech_pvt->te = profile->te;
More information about the Freeswitch-branches
mailing list