Author: mikej Date: Tue Mar 18 19:20:41 2008 New Revision: 7923 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Log: allow you to force us to not advertise 2833 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Tue Mar 18 19:20:41 2008 @@ -121,7 +121,7 @@ } } - if (tech_pvt->te > 95) { + if (tech_pvt->dtmf_type == DTMF_2833 && tech_pvt->te > 95) { switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " %d", tech_pvt->te); } @@ -172,7 +172,7 @@ } } - if (tech_pvt->te > 95) { + if (tech_pvt->dtmf_type == DTMF_2833 && tech_pvt->te > 95) { switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "a=rtpmap:%d telephone-event/8000\na=fmtp:%d 0-16\n", tech_pvt->te, tech_pvt->te); } if (tech_pvt->cng_pt && use_cng) {