[Freeswitch-users] freeswitch support PCMU only?
Nandy Dagondon
gcd at i.ph
Wed Jul 1 06:14:52 PDT 2009
check the value of "inbound_codec_negotiation" in the sip_profiles/*.xml
files. is it "generous" or "greedy"? you should also check if the endpoint
is offering PCMU.
On Wed, Jul 1, 2009 at 8:27 PM, qian ma <god.nirvana at gmail.com> wrote:
> i want the fs accept the PCMA not PCMU.
> i add "PCMA" in global_codec_prefs and outbound_codec_prefs, it doesn't
> work. FS only accept PCMU.
> why??
>
>
>
>
> 2009/7/1 Nandy Dagondon <gcd at i.ph>
>
> you FS doesn't accept PCMU. try to add "PCMU" on both variables.
>>
>>
>> On Wed, Jul 1, 2009 at 3:44 PM, qian ma <god.nirvana at gmail.com> wrote:
>>
>>> thanks for your replies.
>>>
>> my var.xml:
>>> <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMA"/>
>>> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMA,GSM,iLBC"/>
>>>
>>>
>>> below is the sip trace:
>>> recv 781 bytes from udp/[58.212.219.104]:40508 at 07:42:37.086711:
>>>
>>> ------------------------------------------------------------------------
>>> INVITE sip:123456 at 58.212.219.104 <sip%3A123456 at 58.212.219.104>SIP/2.0
>>> Via: SIP/2.0/UDP 192.168.1.241:8422
>>> ;branch=z9hG4bK-d8754z-94087229c9446f5f-1---d8754z-;rport
>>> Max-Forwards: 70
>>> Contact: <sip:9876 at 58.212.219.104:40508>
>>> To: "123456"<sip:123456 at 58.212.219.104 <sip%3A123456 at 58.212.219.104>>
>>> From: "9876"<sip:9876 at 58.212.219.104 <sip%3A9876 at 58.212.219.104>
>>> >;tag=057de365
>>> Call-ID: M2VlMmEyYWU1MmNhMjEyMGI2NDFkMmRkNjYxYmRmYjY.
>>> CSeq: 1 INVITE
>>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
>>> SUBSCRIBE, INFO
>>> Content-Type: application/sdp
>>> User-Agent: eyeBeam release 1102u stamp 52345
>>> Content-Length: 237
>>>
>>> v=0
>>> o=- 6 2 IN IP4 192.168.1.241
>>> s=CounterPath eyeBeam 1.5
>>> c=IN IP4 192.168.1.241
>>> t=0 0
>>> m=audio 57862 RTP/AVP 8 101
>>> a=alt:1 1 : vX+dFqlN ruK7YVXO 192.168.1.241 57862
>>> a=fmtp:101 0-15
>>> a=rtpmap:101 telephone-event/8000
>>> a=sendrecv
>>>
>>> ------------------------------------------------------------------------
>>> send 380 bytes to udp/[58.212.219.104]:40508 at 07:42:37.087505:
>>>
>>> ------------------------------------------------------------------------
>>> SIP/2.0 100 Trying
>>> Via: SIP/2.0/UDP 192.168.1.241:8422
>>> ;branch=z9hG4bK-d8754z-94087229c9446f5f-1---d8754z-;rport=40508;received=58.212.219.104
>>> From: "9876"<sip:9876 at 58.212.219.104 <sip%3A9876 at 58.212.219.104>
>>> >;tag=057de365
>>> To: "123456"<sip:123456 at 58.212.219.104 <sip%3A123456 at 58.212.219.104>>
>>> Call-ID: M2VlMmEyYWU1MmNhMjEyMGI2NDFkMmRkNjYxYmRmYjY.
>>> CSeq: 1 INVITE
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-13923M
>>> Content-Length: 0
>>>
>>>
>>> ------------------------------------------------------------------------
>>> 2009-07-01 15:42:37.87800 [NOTICE] switch_channel.c:602 New Channel
>>> sofia/maq/9876 at 58.212.219.104 [574766e1-e71f-4a62-a659-1d43bea135bd]
>>> 2009-07-01 15:42:37.87800 [DEBUG] sofia.c:3214 Channel
>>> sofia/maq/9876 at 58.212.219.104 entering state [received][100]
>>> 2009-07-01 15:42:37.87800 [DEBUG] sofia.c:3221 Remote SDP:
>>> v=0
>>> o=- 6 2 IN IP4 192.168.1.241
>>> s=CounterPath eyeBeam 1.5
>>> c=IN IP4 192.168.1.241
>>> t=0 0
>>> m=audio 57862 RTP/AVP 8 101
>>> a=rtpmap:101 telephone-event/8000
>>> a=fmtp:101 0-15
>>> a=alt:1 1 : vX+dFqlN ruK7YVXO 192.168.1.241 57862
>>> 2009-07-01 15:42:37.87800 [DEBUG] sofia_glue.c:3070 Audio Codec Compare
>>> [PCMA:8:8000:0]/[PCMU:0:8000:20]
>>> 2009-07-01 15:42:37.87800 [DEBUG] sofia_glue.c:3030 Set 2833 dtmf payload
>>> to 101
>>> 2009-07-01 15:42:37.87800 [DEBUG] sofia_glue.c:3070 Audio Codec Compare
>>> [telephone-event:101:8000:0]/[PCMU:0:8000:20]
>>> 2009-07-01 15:42:37.87800 [NOTICE] sofia.c:3423 Hangup
>>> sofia/maq/9876 at 58.212.219.104 [CS_NEW] [INCOMPATIBLE_DESTINATION]
>>> 2009-07-01 15:42:37.87800 [DEBUG] switch_channel.c:1683 Send signal
>>> sofia/maq/9876 at 58.212.219.104 [KILL]
>>> 2009-07-01 15:42:37.87800 [DEBUG] switch_core_session.c:933 Send signal
>>> sofia/maq/9876 at 58.212.219.104 [BREAK]
>>> 2009-07-01 15:42:37.87800 [DEBUG] switch_core_state_machine.c:397 (
>>> sofia/maq/9876 at 58.212.219.104) Running State Change CS_HANGUP
>>> 2009-07-01 15:42:37.88976 [DEBUG] switch_core_state_machine.c:433 (
>>> sofia/maq/9876 at 58.212.219.104) State HANGUP
>>> 2009-07-01 15:42:37.88976 [DEBUG] mod_sofia.c:338 Channel
>>> sofia/maq/9876 at 58.212.219.104 hanging up, cause:
>>> INCOMPATIBLE_DESTINATION
>>> 2009-07-01 15:42:37.88976 [DEBUG] mod_sofia.c:414 Responding to INVITE
>>> with: 488
>>> send 676 bytes to udp/[58.212.219.104]:40508 at 07:42:37.089766:
>>>
>>> ------------------------------------------------------------------------
>>> SIP/2.0 488 Not Acceptable Here
>>> Via: SIP/2.0/UDP 192.168.1.241:8422
>>> ;branch=z9hG4bK-d8754z-94087229c9446f5f-1---d8754z-;rport=40508;received=58.212.219.104
>>> From: "9876"<sip:9876 at 58.212.219.104 <sip%3A9876 at 58.212.219.104>
>>> >;tag=057de365
>>> To: "123456" <sip:123456 at 58.212.219.104 <sip%3A123456 at 58.212.219.104>
>>> >;tag=28Q0QB73Bm35K
>>> Call-ID: M2VlMmEyYWU1MmNhMjEyMGI2NDFkMmRkNjYxYmRmYjY.
>>> CSeq: 1 INVITE
>>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-13923M
>>> Accept: application/sdp
>>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
>>> NOTIFY, REFER, UPDATE, REGISTER, INFO
>>> Supported: timer, precondition, path, replaces
>>> Allow-Events: talk, refer
>>> Reason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION"
>>> Content-Length: 0
>>>
>>>
>>> ------------------------------------------------------------------------
>>> 2009-07-01 15:42:37.89978 [DEBUG] switch_core_state_machine.c:46
>>> sofia/maq/9876 at 58.212.219.104 Standard HANGUP, cause:
>>> INCOMPATIBLE_DESTINATION
>>> 2009-07-01 15:42:37.89978 [DEBUG] switch_core_state_machine.c:433 (
>>> sofia/maq/9876 at 58.212.219.104) State HANGUP going to sleep
>>> 2009-07-01 15:42:37.89978 [DEBUG] switch_core_state_machine.c:475 (
>>> sofia/maq/9876 at 58.212.219.104) State Change CS_HANGUP -> CS_REPORTING
>>> 2009-07-01 15:42:37.89978 [DEBUG] switch_core_session.c:933 Send signal
>>> sofia/maq/9876 at 58.212.219.104 [BREAK]
>>> 2009-07-01 15:42:37.89978 [DEBUG] switch_core_state_machine.c:397 (
>>> sofia/maq/9876 at 58.212.219.104) Running State Change CS_REPORTING
>>> 2009-07-01 15:42:37.89978 [DEBUG] switch_core_state_machine.c:607 (
>>> sofia/maq/9876 at 58.212.219.104) State REPORTING
>>> recv 334 bytes from udp/[58.212.219.104]:40508 at 07:42:37.093591:
>>>
>>> ------------------------------------------------------------------------
>>> ACK sip:123456 at 58.212.219.104 <sip%3A123456 at 58.212.219.104> SIP/2.0
>>> Via: SIP/2.0/UDP 192.168.1.241:8422
>>> ;branch=z9hG4bK-d8754z-94087229c9446f5f-1---d8754z-;rport
>>> To: "123456" <sip:123456 at 58.212.219.104 <sip%3A123456 at 58.212.219.104>
>>> >;tag=28Q0QB73Bm35K
>>> From: "9876"<sip:9876 at 58.212.219.104 <sip%3A9876 at 58.212.219.104>
>>> >;tag=057de365
>>> Call-ID: M2VlMmEyYWU1MmNhMjEyMGI2NDFkMmRkNjYxYmRmYjY.
>>> CSeq: 1 ACK
>>> Content-Length: 0
>>>
>>>
>>> ------------------------------------------------------------------------
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_state_machine.c:53
>>> sofia/maq/9876 at 58.212.219.104 Standard REPORTING, cause:
>>> INCOMPATIBLE_DESTINATION
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_state_machine.c:607 (
>>> sofia/maq/9876 at 58.212.219.104) State REPORTING going to sleep
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_state_machine.c:410 (
>>> sofia/maq/9876 at 58.212.219.104) State Change CS_REPORTING -> CS_DESTROY
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_session.c:1067 Session 3 (
>>> sofia/maq/9876 at 58.212.219.104) Locked, Waiting on external entities
>>> 2009-07-01 15:42:37.133976 [NOTICE] switch_core_session.c:1085 Session 3
>>> (sofia/maq/9876 at 58.212.219.104) Ended
>>> 2009-07-01 15:42:37.133976 [NOTICE] switch_core_session.c:1087 Close
>>> Channel sofia/maq/9876 at 58.212.219.104 [CS_DESTROY]
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_state_machine.c:559 (
>>> sofia/maq/9876 at 58.212.219.104) State DESTROY
>>> 2009-07-01 15:42:37.133976 [DEBUG] mod_sofia.c:255
>>> sofia/maq/9876 at 58.212.219.104 SOFIA DESTROY
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_state_machine.c:60
>>> sofia/maq/9876 at 58.212.219.104 Standard DESTROY
>>> 2009-07-01 15:42:37.133976 [DEBUG] switch_core_state_machine.c:559 (
>>> sofia/maq/9876 at 58.212.219.104) State DESTROY going to sleep
>>>
>>>
>>> the freeswitch not accept PCMA
>>>
>>>
>>>
>>> 2009/7/1 seven <dujinfang at gmail.com>
>>>
>>> absolutely not.
>>>> codec negotiate depending on your conf. do you have a sip trace?
>>>>
>>>> On Jul 1, 2009, at 2:48 PM, qian ma wrote:
>>>>
>>>> hi all
>>>> freeswitch support PCMU only?
>>>> i follow the
>>>> http://wiki.freeswitch.org/wiki/Codecs#sofia.conf.xml, but freeswitch
>>>> still support PCMU only,
>>>> below is the trace:
>>>>
>>>> 2009-07-01 14:39:35.571364 [DEBUG] sofia_glue.c:3070 Audio Codec
>>>> Compare [PCMA:8:8000:0]/[PCMU:0:8000:20]
>>>> 2009-07-01 14:39:35.571364 [DEBUG] sofia_glue.c:3030 Set 2833 dtmf
>>>> payload to 101
>>>> 2009-07-01 14:39:35.571364 [DEBUG] sofia_glue.c:3070 Audio Codec Compare
>>>> [telephone-event:101:8000:0]/[PCMU:0:8000:20]
>>>> 2009-07-01 14:39:35.571364 [NOTICE] sofia.c:3423 Hangup
>>>> sofia/maq/9876 at 58.212.219.104 [CS_NEW] [INCOMPATIBLE_DESTINATION]
>>>> 2009-07-01 14:39:35.571364 [DEBUG] switch_channel.c:1683 Send signal
>>>> sofia/maq/9876 at 58.212.219.104 [KILL]
>>>> 2009-07-01 14:39:35.571364 [DEBUG] switch_core_session.c:933 Send signal
>>>> sofia/maq/9876 at 58.212.219.104 [BREAK]
>>>> 2009-07-01 14:39:35.572807 [DEBUG] switch_core_state_machine.c:397 (
>>>> sofia/maq/9876 at 58.212.219.104) Running State Change CS_HANGUP
>>>> 2009-07-01 14:39:35.572807 [DEBUG] switch_core_state_machine.c:433 (
>>>> sofia/maq/9876 at 58.212.219.104) State HANGUP
>>>>
>>>>
>>>>
>>>> how to configure the freeswitch??
>>>> support more codecs???
>>>>
>>>> thx!
>>>>
>>>> m.q
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20090701/4a577c41/attachment-0002.html
More information about the FreeSWITCH-users
mailing list