[Freeswitch-users] Wrong release cause text, bug?

David Villasmil david.villasmil.work at gmail.com
Thu Jun 7 21:11:07 UTC 2018


Hello guys,

When hanging up a call with a specific release, FS sends the specific code,
i.e.:

if i release a call like so:

<action inline="true" application="set" data="release_code=483
EXCHANGE_ROUTING_ERROR"/>

The BYE message is as follows:

   SIP/2.0 483 EXCHANGE_ROUTING_ERROR
   Via: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;branch=z9hG4bK0y1H2X8899veB
   Max-Forwards: 69
   From: "david.villasmil" <sip:david.villasmil at 1.2.3.4>;tag=t35r9gatZFcjj
   To: <sip:9999999 at 1.2.3.4:5080>;tag=pB7mFpUrc30gB
   Call-ID: e2da7a79-e537-1236-5691-02e1e654f872
   CSeq: 123866386 INVITE
   User-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bit
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY
   Supported: timer, path, replaces
   Allow-Events: talk, hold, conference, refer
   Reason: Q.850;cause=25;text="EXCHANGE_ROUTING_ERROR"
   Content-Length: 0
   X-FS-Display-Name: 9999999
   X-FS-Display-Number: sip:9999999 at 1.2.3.4
   Remote-Party-ID: "9999999" <sip:9999999 at 1.2.3.4
>;party=calling;privacy=off;screen=no

Another example:

<action inline="true" application="set" data="release_code=410
NUMBER_CHANGED"/>

The BYE message is SOMETIMES as follows:

   SIP/2.0 410 NUMBER_CHANGED
   Via: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;branch=z9hG4bKZN8r02Q5c16UF
   Max-Forwards: 69
   From: "david.villasmil" <sip:david.villasmil at 1.2.3.4>;tag=Q8Se4ZQF8m9SF
   To: <sip:9999999 at 1.2.3.4:5080>;tag=mSm3B0SHjHmBm
   Call-ID: dfbb5497-e537-1236-5691-02e1e654f872
   CSeq: 123866383 INVITE
   User-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bit
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY
   Supported: timer, path, replaces
   Allow-Events: talk, hold, conference, refer
   Reason: Q.850;cause=22;text="NUMBER_CHANGED"
   Content-Length: 0
   X-FS-Display-Name: 9999999
   X-FS-Display-Number: sip:9999999 at 1.2.3.4
   Remote-Party-ID: "9999999" <sip:9999999 at 54.84.149.30
>;party=calling;privacy=off;screen=no

And other times as follows:

   SIP/2.0 410 Gone
   Via: SIP/2.0/UDP 1.2.3.4:32200
;branch=z9hG4bK-d8754z-86e4295fca2efa0a-1---d8754z-;rport=32200
   Max-Forwards: 69
   From: <sip:david.villasmil at 1.2.3.4;transport=UDP>;tag=42169b65
   To: <sip:9999999 at 1.2.3.4;transport=UDP>;tag=pZ0N246BBcK7K
   Call-ID: YmU5YjEwODk2ZmZhODJjNDgzNTNlM2FiZWVmMjI2MDg.
   CSeq: 1 INVITE
   User-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bit
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY
   Supported: timer, path, replaces
   Allow-Events: talk, hold, conference, refer
   Reason: Q.850;cause=16;text="NORMAL_CLEARING"
   Content-Length: 0
   Remote-Party-ID: "9999999" <sip:9999999 at 1.2.3.4
>;party=calling;privacy=off;screen=no


But I've noticed that when i do:

<action inline="true" application="set" data="release_code=488
BEARERCAPABILITY_NOTIMPL"/>

The BYE message is as follows:

   SIP/2.0 488 BEARERCAPABILITY_NOTIMPL
   Via: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;branch=z9hG4bK3SDv7eUK14Z6D
   Max-Forwards: 69
   From: "david.villasmil" <sip:david.villasmil at 1.2.3.4>;tag=F3am0c2594H7a
   To: <sip:9999999 at 1.2.3.4:5080>;tag=6XDmXaZj5BQ8S
   Call-ID: aeb6624e-e539-1236-5691-02e1e654f872
   CSeq: 123866772 INVITE
   User-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bit
   Accept: application/sdp
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY
   Supported: timer, path, replaces
   Allow-Events: talk, hold, conference, refer
   Reason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION"
   Content-Length: 0
   X-FS-Display-Name: 9999999
   X-FS-Display-Number: sip:9999999 at 1.2.3.4
   Remote-Party-ID: "9999999" <sip:9999999 at 54.84.149.30
>;party=calling;privacy=off;screen=no


So I guess, my question is why sometimes the "text" is set properly, and
sometimes not??


Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180607/d6040bf1/attachment-0001.html>


More information about the FreeSWITCH-users mailing list