[Freeswitch-users] ESL + BYE SIP reason code

Gonzalo Gasca Meza gascagonzalo at gmail.com
Thu Aug 25 07:15:43 MSD 2016

Hi guys,

I'm getting the following BYE reason code from my Service Provider:

recv 740 bytes from udp/[]:5060 at 02:57:50.740042:
   BYE sip:gw+twilio at;transport=udp;gw=twilio SIP/2.0
   CSeq: 1 BYE
   From: <sip:+551121174769 at turn2data-telephonist.pstn.br1.twilio.com
   To: "" <sip:+55114XXXYYYY at>;tag=mjZyjF9Ute8DD
   Call-ID: 7d8a1944-e512-1234-4eaf-02d310a86cb3
   Max-Forwards: 68
   Via: SIP/2.0/UDP;branch=z9hG4bKfaa.6c72ded1.0
   Via: SIP/2.0/UDP
 *  Reason: MVTSLocal;cause=10;text="BYE
received",SIP;cause=406;text="Service Unavailable"*
   User-Agent: Twilio Gateway
   X-Twilio-CallSid: CA5411d5015d3df04541c6e14e9fb41719
   Content-Length: 0

When placing call via ESL I get reported NORMAL_CLEARING vs 406

I don't see 406 Listed in Wiki:


According to RFC seems to be valid https://tools.ietf.org/html/rfc3326

Examples are:

      Reason: SIP ;cause=200 ;text="Call completed elsewhere"
      Reason: Q.850 ;cause=16 ;text="Terminated"
      Reason: SIP ;cause=600 ;text="Busy Everywhere"
      Reason: SIP ;cause=580 ;text="Precondition Failure"

Can we add support to handle these type of reasons to a common one ? Like
I will talk to my SP to see if they can change it to 503.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160824/b980892c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/octet-stream
Size: 8147 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160824/b980892c/attachment-0001.obj 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list