[Freeswitch-users] Codec Mismatch Because of Different Frame Size
Jan Riedinger
riedinger at sns.eu
Thu Sep 30 03:25:19 PDT 2010
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
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia.c:4469 Channel
sofia/external/0049xxx at X.X.X.X entering state [received][100]
[m[33m2010-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 - - - -
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[G729:18:8000:20:8000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[G729:18:8000:20:8000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[G729:18:8000:20:8000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[G729:18:8000:20:8000]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[PCMU:0:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[PCMU:0:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[PCMU:0:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[PCMU:0:8000:20:64000]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[PCMA:8:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[PCMA:8:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[PCMA:8:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[PCMA:8:8000:20:64000]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[G7221:115:32000:20:48000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[G7221:115:32000:20:48000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[G7221:115:32000:20:48000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[G7221:115:32000:20:48000]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[G7221:107:16000:20:32000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[G7221:107:16000:20:32000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[G7221:107:16000:20:32000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[G7221:107:16000:20:32000]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[G722:9:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[G722:9:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[G722:9:8000:20:64000]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[G722:9:8000:20:64000]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G729:18:8000:60:0]/[GSM:3:8000:20:13200]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [G723:4:8000:60:0]/[GSM:3:8000:20:13200]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMU:0:8000:60:0]/[GSM:3:8000:20:13200]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4233 Audio Codec
Compare [PCMA:8:8000:60:0]/[GSM:3:8000:20:13200]
[m[33m2010-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]
[m[33m2010-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]
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-09-30 10:25:45.798068 [DEBUG] sofia_glue.c:4335 Set 2833
dtmf send/recv payload to 101
[m[33m2010-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
[m[33m2010-09-30 10:25:45.799052 [DEBUG]
switch_core_state_machine.c:320 (sofia/external/0049xxx at x.x.x.x) State NEW
[m[33m2010-09-30 10:25:45.799052 [DEBUG] switch_channel.c:2359
(sofia/external/0049xxx at x.x.x.x) Callstate Change DOWN -> HANGUP
[m[33m2010-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
[m[36m2010-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
More information about the FreeSWITCH-users
mailing list