[Freeswitch-users] Codec Mismatch Because of Different Frame Size

David Ponzone david.ponzone at ipeva.fr
Thu Sep 30 03:45:55 PDT 2010


Jan,

as far as I know, FS does not care about the ptime.
The behaviour you are noticing is weird.

Can you tell us which version you are using ?

David Ponzone  Direction Technique
email: david.ponzone at ipeva.fr
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
www.ipeva.fr  -   www.ipeva-studio.com

Ce message et toutes les pièces jointes sont confidentiels et établis  
à l'intention exclusive de ses destinataires. Toute utilisation ou  
diffusion non autorisée est interdite. Tout message électronique est  
susceptible d'altération. IPeva décline toute responsabilité au  
titre de ce message s'il a été altéré, déformé ou falsifié. Si  
vous n'êtes pas destinataire de ce message, merci de le détruire  
immédiatement et d'avertir l'expéditeur.




Le 30/09/2010 à 12:25, Jan Riedinger a écrit :

>  I'm using the following configuration:
>
> vars.xml:
> <X-PRE-PROCESS cmd="set"
> data 
> = 
> "global_codec_prefs 
> =G729,PCMU,PCMA,G723,G7221 at 32000h,G7221 at 16000h,G722,GSM"/>
> <X-PRE-PROCESS cmd="set"
> data="outbound_codec_prefs=G729,PCMU,PCMA,G723,GSM"/>
>
> external.xml (my standard sip profile):
> <param name="inbound-codec-negotiation" value="greedy"/>
> <param name="inbound-late-negotiation" value="false"/>
> <param name="disable-transcoding" value="true"/>
>
> With this configuration I want to restrict the allowed codecs, force  
> the
> usage of G729 as first choice, if available and to minimize the calls
> with transcoding.  I don't want to force the usage of a specific  
> frame size.
>
> Now a lot of calls get rejected with "incompatible destination" by
> FreeSwitch, because the frame size of the incoming calls differs from
> the Freeswitch default (mostly 20 ms), see the debug log below.
>
> Is this the intended behaviour? If it is, how can I circumvent it?  
> Do I
> have to list every codec with every possible frame size in the
> global_codec_prefs list?
>
> Thank you in advance
>        Jan
>
> 2010-09-30 10:25:45.798068 [DEBUG] sofia.c:4469 Channel
> sofia/external/0049xxx at X.X.X.X entering state [received][100]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia.c:4480 Remote SDP:
> v=0
>
> o=- 554229 1 IN IP4 X.X.X.X
>
> s=-
>
> c=IN IP4 X.X.X.X
>
> t=0 0
>
> a=sendrecv
>
> m=audio 26044 RTP/AVP 18 4 0 8 96 101
>
> a=fmtp:18 annexb=yes
>
> a=rtpmap:96 G726-32/8000
>
> a=rtpmap:101 telephone-event/8000
>
> a=ptime:60
>
> a=silenceSupp:off - - - -
>
>
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[G729:18:8000:20:8000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[G729:18:8000:20:8000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[G729:18:8000:20:8000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[G729:18:8000:20:8000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[G729:18:8000:20:8000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[G729:18:8000:20:8000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[PCMU:0:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[PCMU:0:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[PCMU:0:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[PCMU:0:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[PCMU:0:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[PCMU:0:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[PCMA:8:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[PCMA:8:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[PCMA:8:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[PCMA:8:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[PCMA:8:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[PCMA:8:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[G7221:115:32000:20:48000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[G7221:115:32000:20:48000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[G7221:115:32000:20:48000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[G7221:115:32000:20:48000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[G7221:115:32000:20:48000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[G7221:115:32000:20:48000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[G7221:107:16000:20:32000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[G7221:107:16000:20:32000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[G7221:107:16000:20:32000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[G7221:107:16000:20:32000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[G7221:107:16000:20:32000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[G7221:107:16000:20:32000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[G722:9:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[G722:9:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[G722:9:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[G722:9:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[G722:9:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[G722:9:8000:20:64000]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G729:18:8000:60:0]/[GSM:3:8000:20:13200]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G723:4:8000:60:0]/[GSM:3:8000:20:13200]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMU:0:8000:60:0]/[GSM:3:8000:20:13200]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [PCMA:8:8000:60:0]/[GSM:3:8000:20:13200]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [G726-32:96:8000:60:0]/[GSM:3:8000:20:13200]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio  
> Codec
> Compare [telephone-event:101:8000:60:0]/[GSM:3:8000:20:13200]
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
> dtmf send/recv payload to 101
> 2010-09-30 10:25:45.799052 [DEBUG]
> switch_core_state_machine.c:314 (sofia/external/0049xxx at x.x.x.x)  
> Running
> State Change CS_NEW
> 2010-09-30 10:25:45.799052 [DEBUG]
> switch_core_state_machine.c:320 (sofia/external/0049xxx at x.x.x.x)  
> State NEW
> 2010-09-30 10:25:45.799052 [DEBUG] switch_channel.c:2359
> (sofia/external/0049xxx at x.x.x.x) Callstate Change DOWN -> HANGUP
> 2010-09-30 10:25:45.799052 [DEBUG]
> switch_core_state_machine.c:314 (sofia/external/0049xxx at x.x.x.x)  
> Running
> State Change CS_HANGUP
> 2010-09-30 10:25:45.799052 [NOTICE] sofia.c:4686 Hangup
> sofia/external/0049xxx at x.x.x.x [CS_NEW] [INCOMPATIBLE_DESTINATION]
>
>
>
>
>
>
> -- 
> Jan Riedinger                           Phone :  +49-30-39 73 19 66
> Dipl.-Inf. | Managing Director          Fax   :  +49-30-39 73 19 64
>                                         E-Mail:  riedinger at sns.eu
> SNS Consult GmbH                        ICQ   :  163-237-041
> Südwestkorso 49a                        MSN   :  jan at sns-consult.de
> 14197 Berlin GERMANY                    Skype :  Jan Riedinger
>
> AG Charlottenburg - HRB 71973
>
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100930/92fdf795/attachment-0001.html 


More information about the FreeSWITCH-users mailing list