From 247537a959a1fead1b2b17a8ab74daf2ac880dde Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 7 Sep 2011 08:07:04 -0500 Subject: [PATCH] FS-3545 --resolve this is actually compliant when mixing ptimes in the same sdp but since iLBC uses its own fmtp for ptime I will add this patch to make it beleive its 20 for the sake of arguement. If you have any other problems with this, set the channel or global variable sdp_m_per_ptime=false to completely disable the default correct behaviour --- src/mod/endpoints/mod_sofia/sofia_glue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 124982c1de..adc0c5347f 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -583,6 +583,10 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, switch this_ptime = imp->microseconds_per_packet / 1000; + if (!strcasecmp(imp->iananame, "ilbc")) { + this_ptime = 20; + } + if (cur_ptime != this_ptime) { char *bp = buf; cur_ptime = this_ptime;