[Freeswitch-users] Sofia late-negotiation on re-INVITE(codec-modification)

Visciano Giovanni Giovanni.Visciano at italtel.it
Sat Nov 26 09:54:53 MSK 2011


> You do realize that those param's are sofia profile params and not dialplan XML right?

Hi Brian, sure I know that.
So:

In sofia SIP profile I have:
  <param name="inbound-late-negotiation" value="true"/>
  <param name="renegotiate-codec-on-reinvite" value="true"/>

and in my dialplan XML I hit:
  <action application="set" data="inherit_codec=true"/>


I repeated my test scenario, sorry what I described was with
inherit_codec=false.
If I set inherit_codec=true (this is my purpose) sofia behavior is this:

INVITE [pcma,g729]    ---> FS ---> INVITE [pcma,g729]
200 OK [pcma]         <--- FS ---> 200 OK [pcma]
re-INVITE [g729]      ---> FS
Reinvite Codec Error! <--- FS

Here the call is release and from the log I see that sofia just negotiatiate
localy and compare the codec list in the new offer only with PCMA.
With inherit_codec=false it compare the codec list with the codec loaded
in the core so it match G729 (but damn it's a passthrought codec and I cannot
do transcoding!).

Here is an extract off the log, that show the error.
Now I do not have with me the complete session log, I will send it tomorrow.
Do you think it's a bug?

1970-01-01 23:10:28.600056 [DEBUG] switch_core_session.c:857 Send signal sofia/external/abcd at xyz.com [BREAK]
1970-01-01 23:10:28.600056 [DEBUG] switch_core_session.c:857 Send signal sofia/external/abcd at xyz.com [BREAK]
1970-01-01 23:10:28.620894 [DEBUG] sofia.c:5143 Channel sofia/external/abcd at xyz.com entering state [received][100]
1970-01-01 23:10:28.620894 [DEBUG] sofia.c:5154 Remote SDP:
v=0
o=- 0 1 IN IP4 10.50.185.16
s=IMSS
c=IN IP4 10.50.185.16
t=0 0
m=audio 10992 RTP/AVP 18 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
1970-01-01 23:10:28.620894 [DEBUG] sofia_glue.c:4731 Audio Codec Compare [G729:18:8000:20:8000]/[PCMA:8:8000:20:64000]
1970-01-01 23:10:28.620894 [DEBUG] sofia_glue.c:4731 Audio Codec Compare [telephone-event:101:8000:20:0]/[PCMA:8:8000:20:64000]
1970-01-01 23:10:28.620894 [DEBUG] sofia_glue.c:4845 Set 2833 dtmf send/recv payload to 101
1970-01-01 23:10:28.620894 [ERR] sofia.c:5611 Reinvite Codec Error!


Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. 

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. 
-----------------------------------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3935 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111126/c7faca2e/attachment-0001.bin 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list