[Freeswitch-users] What is wrong with my originate ?
Vallimamod Abdullah
vma at vallimamod.org
Mon Jun 4 15:26:25 UTC 2018
Hi,
You are getting INCOMPATIBLE_DESTINATION error as codecs on leg A and leg B don't match.
To correct it, either set your inbound-codec-prefs and outbound-codec-prefs params in your profile to PCMA,PCMU or set absolute_codec_string=PCMA,PCMU before the originate (in the dialplan or on your dial-string with the {} notation).
Hope this helps.
Best Regards,
--
Vallimamod Abdullah
SIP Solutions
vma at sip.solutions
linkedin.com/in/vallimamod
.
> On 2 Jun 2018, at 15:44, Pierre Couderc <pierre at couderc.eu> wrote:
>
> originate sofia/internal/98%free.couderc.eu 0033484253887 XML int.example.net
>
> See my traces below. The strange is that if I call from my extension 98 the same number all is fine.
>
> I understand it may be question of CODEC, as when calling from 98 I see PCMA, PCMU in the traces. But how to correct?
>
> Thanks to read me.
>
> Pierre Couderc
>
>
>
> ......
>
> 2018-06-02 08:47:43.279349 [DEBUG] sofia_glue.c:1295 sofia/external/0033484253887 sending invite version: 1.6.20 -37-987c9b9 64bit
> Local SDP:
> v=0
> o=FreeSWITCH 1527903329 1527903330 IN IP4 192.168.163.67
> s=FreeSWITCH
> c=IN IP4 192.168.163.67
> t=0 0
> m=audio 25934 RTP/AVP 9 101 13
> a=rtpmap:9 G722/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=rtpmap:13 CN/8000
> a=ptime:20
> a=sendrecv
>
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:40 sofia/external/0033484253887 Standard INIT
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:48 (sofia/external/0033484253887) State Change CS_INIT -> CS_ROUTING
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:627 (sofia/external/0033484253887) State INIT going to sleep
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0033484253887) Running State Change CS_ROUTING (Cur 2 Tot 201)
> 2018-06-02 08:47:43.279349 [DEBUG] sofia.c:7084 Channel sofia/external/0033484253887 entering state [calling][0]
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:643 (sofia/external/0033484253887) State ROUTING
> 2018-06-02 08:47:43.279349 [DEBUG] mod_sofia.c:143 sofia/external/0033484253887 SOFIA ROUTING
> 2018-06-02 08:47:43.279349 [DEBUG] switch_ivr_originate.c:67 (sofia/external/0033484253887) State Change CS_ROUTING -> CS_CONSUME_MEDIA
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:643 (sofia/external/0033484253887) State ROUTING going to sleep
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0033484253887) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 2
> 01)
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:662 (sofia/external/0033484253887) State CONSUME_MEDIA
> 2018-06-02 08:47:43.279349 [DEBUG] switch_core_state_machine.c:662 (sofia/external/0033484253887) State CONSUME_MEDIA going to sleep
> 2018-06-02 08:47:43.339353 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
> 2018-06-02 08:47:43.339353 [DEBUG] sofia.c:7084 Channel sofia/external/0033484253887 entering state [calling][0]
> 2018-06-02 08:47:43.399358 [DEBUG] sofia.c:7084 Channel sofia/external/0033484253887 entering state [terminated][488]
> 2018-06-02 08:47:43.399358 [NOTICE] sofia.c:8273 Hangup sofia/external/0033484253887 [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION]
> 2
>
> ....
>
More information about the FreeSWITCH-users
mailing list