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

Visciano Giovanni Giovanni.Visciano at italtel.it
Wed Dec 21 20:26:16 MSK 2011


I've opened a BUG.
http://jira.freeswitch.org/browse/FS-3739

I don't know what's you FS configuration.
What I know is:
- SIP "media proxy mode" is OK.
- re-INVITE for codec modification to image T.38 (t38-passthrough) is OK in all SIP "media mode".

The "late_negotiation" + "inherit_codec" trick to avoid transcoding in a Back2Back
(that is no media proxy) configuration works only for the very first call setup SDP offer/answer.
http://wiki.freeswitch.org/wiki/Codec_negotiation

Once the call is established, further codec modification via re-INVITE are usually closed on
each leg (except for t38) and this can led to transcoding (and obvious errors if you can't or don't want
to transcode).

Hope this helps you find out your problem.

Giovanni

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org on behalf of Alessandro Illiano
Sent: Wed 12/21/2011 1:15 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] R: Sofia late-negotiation on re-INVITE(codec-modification)
 
Hi All,
I've some issue,
B send a re-invite changing the codec and fs hangup the call with 488 ,
Without reinvite a-legS.

Regards,
Alessandro


Da:  Visciano Giovanni <Giovanni.Visciano at italtel.it>
Risposta:  FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Data:  Thu, 1 Dec 2011 16:35:54 +0100
A:  FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Oggetto:  [Freeswitch-users] R: Sofia late-negotiation on
re-INVITE(codec-modification)

R: [Freeswitch-users] Sofia late-negotiation on
re-INVITE(codec-modification)
Finally we are back to our test.
I updated my FS installation to last GIT
(FreeSWITCH Version 1.0.head (git-eae86e0 2011-11-30 18-14-24 -0600))

TEST
----
SIP vs SIP basic audio call, then re-INVITE for codec modification.
FS configuration B2B, avoid transcoding.

CONF
----
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"/>

Loaded codec modules:
freeswitch at internal> show codec
type,name,ikey
codec,G.711 alaw,CORE_PCM_MODULE
codec,G.711 ulaw,CORE_PCM_MODULE
codec,G.729,mod_g729
codec,PROXY PASS-THROUGH,CORE_PCM_MODULE
codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE
codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE


TEST 1)
-------
1001  ----invite(pcma)----> FS --invite(pcma)-->  1000
1001  <----200OK(pcma)----  FS <--200OK(pcma)--   1000
1001  --re/invite(g729)---> FS
1001  <----488------------  FS

Full log: http://pastebin.freeswitch.org/17906

Note: FS does not negotiate end to end the reINVITE O/A codec modification.
It is closed locally on the 1001->FS leg. From the log I see
2011-12-01 15:54:13.871332 [DEBUG] sofia_glue.c:4767 Audio Codec Compare
[G729:18:8000:20:8000]/[PCMA:8:8000:20:64000]
2011-12-01 15:54:13.871332 [DEBUG] sofia_glue.c:4767 Audio Codec Compare
[telephone-event:101:8000:20:0]/[PCMA:8:8000:20:64000]
2011-12-01 15:54:13.871332 [ERR] sofia.c:5876 Reinvite Codec Error!



TEST 2)
-------
1000  ----invite(pcma)----> FS --invite(pcma)-->   1001
1000  <----200OK(pcma)----  FS <--200OK(pcma)--    1001
1000                        FS <--re/invite(g729)- 1001
1000                        FS ------------------> 1001

Full log: http://pastebin.freeswitch.org/17907

Note: FS does not negotiate end to end the reINVITE O/A codec modification.
It is closed locally on the 1001->FS leg. FS select locally G729 but this
result in transcoding!
I hate transcoding!
>From the log I see
2011-12-01 16:00:12.971244 [DEBUG] sofia_glue.c:4767 Audio Codec Compare
[G729:18:8000:20:8000]/[PCMA:8:8000:20:64000]
2011-12-01 16:00:12.971244 [DEBUG] sofia_glue.c:4767 Audio Codec Compare
[G729:18:8000:20:8000]/[G729:18:8000:20:8000]
2011-12-01 16:00:12.971244 [DEBUG] sofia_glue.c:2806 Changing Codec from
PCMA at 20ms@8000hz to G729 at 20ms@8000hz
2011-12-01 16:00:13.011337 [DEBUG] sofia_glue.c:2888 Set Codec
sofia/internal/1001 at 138.132.110.64:5070 G729/8000 20 ms 160 samples 8000
bits
2011-12-01 16:00:13.011337 [DEBUG] switch_core_codec.c:116
sofia/internal/1001 at 138.132.110.64:5070 Push codec G729:18
2011-12-01 16:00:13.031252 [ERR] mod_g729.c:102 This codec is only usable in
passthrough mode!
2011-12-01 16:00:13.031252 [ERR] switch_core_io.c:1077 Codec G.729 encoder
error!

Regard,
Giovanni

PS: next week I won't be at work. My collegue Nevio will follow
the problem, so if you need more data/details just tell us.

 

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. 
****************************************************************************
****************************************************************
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting at freeswitch.org
http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel
Communication Server  Official FreeSWITCH Sites
http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6150 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111221/7b87cc90/attachment.bin 


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