<div dir="ltr">If the sip stack hangs up due to its own decision. it will not use a custom response. We can only control the response when its FS who triggers the bye.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 7, 2018 at 4:11 PM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello guys,</div><div><br></div><div>When hanging up a call with a specific release, FS sends the specific code, i.e.:</div><div><br></div><div>if i release a call like so:</div><div><br></div><div><font face="monospace, monospace" size="1"><action inline="true" application="set" data="release_code=483 EXCHANGE_ROUTING_ERROR"/></font><br></div><div><br></div><div>The BYE message is as follows:</div><div><br></div><div><div><font face="monospace, monospace" size="1"> SIP/2.0 483 EXCHANGE_ROUTING_ERROR</font></div><div><font face="monospace, monospace" size="1"> Via: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;<wbr>branch=z9hG4bK0y1H2X8899veB</font></div><div><font face="monospace, monospace" size="1"> Max-Forwards: 69</font></div><div><font face="monospace, monospace" size="1"> From: "david.villasmil" <<a href="mailto:sip%3Adavid.villasmil@1.2.3.4" target="_blank">sip:david.villasmil@1.2.3.4</a>>;<wbr>tag=t35r9gatZFcjj</font></div><div><font face="monospace, monospace" size="1"> To: <<a href="http://sip:9999999@1.2.3.4:5080" target="_blank">sip:9999999@1.2.3.4:5080</a>>;<wbr>tag=pB7mFpUrc30gB</font></div><div><font face="monospace, monospace" size="1"> Call-ID: e2da7a79-e537-1236-5691-<wbr>02e1e654f872</font></div><div><font face="monospace, monospace" size="1"> CSeq: 123866386 INVITE</font></div><div><font face="monospace, monospace" size="1"> User-Agent: FreeSWITCH-mod_sofia/1.6.20-<wbr>37-987c9b9~64bit</font></div><div><font face="monospace, monospace" size="1"> Accept: application/sdp</font></div><div><font face="monospace, monospace" size="1"> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</font></div><div><font face="monospace, monospace" size="1"> Supported: timer, path, replaces</font></div><div><font face="monospace, monospace" size="1"> Allow-Events: talk, hold, conference, refer</font></div><div><font face="monospace, monospace" size="1"> Reason: Q.850;cause=25;text="EXCHANGE_<wbr>ROUTING_ERROR"</font></div><div><font face="monospace, monospace" size="1"> Content-Length: 0</font></div><div><font face="monospace, monospace" size="1"> X-FS-Display-Name: 9999999</font></div><div><font face="monospace, monospace" size="1"> X-FS-Display-Number: <a href="mailto:sip%3A9999999@1.2.3.4" target="_blank">sip:9999999@1.2.3.4</a></font></div><div><font face="monospace, monospace" size="1"> Remote-Party-ID: "9999999" <<a href="mailto:sip%3A9999999@1.2.3.4" target="_blank">sip:9999999@1.2.3.4</a>>;party=<wbr>calling;privacy=off;screen=no</font></div></div><div><br></div><div>Another example:</div><div><br></div><div><span style="font-family:monospace,monospace;font-size:x-small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><action inline="true" application="set" data="release_code=410 NUMBER_CHANGED"/></span><br></div><div><span style="font-family:monospace,monospace;font-size:x-small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="font-family:monospace,monospace;font-size:x-small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="font-family:sans-serif;font-size:13px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The BYE message is SOMETIMES as follows:</span><br></span></div><div><br></div><div><div><font face="monospace, monospace" size="1"> SIP/2.0 410 NUMBER_CHANGED</font></div><div><font face="monospace, monospace" size="1"> Via: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;<wbr>branch=z9hG4bKZN8r02Q5c16UF</font></div><div><font face="monospace, monospace" size="1"> Max-Forwards: 69</font></div><div><font face="monospace, monospace" size="1"> From: "david.villasmil" <<a href="mailto:sip%3Adavid.villasmil@1.2.3.4" target="_blank">sip:david.villasmil@1.2.3.4</a>>;<wbr>tag=Q8Se4ZQF8m9SF</font></div><div><font face="monospace, monospace" size="1"> To: <<a href="http://sip:9999999@1.2.3.4:5080" target="_blank">sip:9999999@1.2.3.4:5080</a>>;<wbr>tag=mSm3B0SHjHmBm</font></div><div><font face="monospace, monospace" size="1"> Call-ID: dfbb5497-e537-1236-5691-<wbr>02e1e654f872</font></div><div><font face="monospace, monospace" size="1"> CSeq: 123866383 INVITE</font></div><div><font face="monospace, monospace" size="1"> User-Agent: FreeSWITCH-mod_sofia/1.6.20-<wbr>37-987c9b9~64bit</font></div><div><font face="monospace, monospace" size="1"> Accept: application/sdp</font></div><div><font face="monospace, monospace" size="1"> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</font></div><div><font face="monospace, monospace" size="1"> Supported: timer, path, replaces</font></div><div><font face="monospace, monospace" size="1"> Allow-Events: talk, hold, conference, refer</font></div><div><font face="monospace, monospace" size="1"> Reason: Q.850;cause=22;text="NUMBER_<wbr>CHANGED"</font></div><div><font face="monospace, monospace" size="1"> Content-Length: 0</font></div><div><font face="monospace, monospace" size="1"> X-FS-Display-Name: 9999999</font></div><div><font face="monospace, monospace" size="1"> X-FS-Display-Number: <a href="mailto:sip%3A9999999@1.2.3.4" target="_blank">sip:9999999@1.2.3.4</a></font></div><div><font face="monospace, monospace" size="1"> Remote-Party-ID: "9999999" <<a href="mailto:sip%3A9999999@54.84.149.30" target="_blank">sip:9999999@54.84.149.30</a>>;<wbr>party=calling;privacy=off;<wbr>screen=no</font></div></div><div><br></div><div>And other times as follows:</div><div><br></div><div><div><font face="monospace, monospace" size="1"> SIP/2.0 410 Gone</font></div><div><font face="monospace, monospace" size="1"> Via: SIP/2.0/UDP 1.2.3.4:32200;branch=z9hG4bK-<wbr>d8754z-86e4295fca2efa0a-1---<wbr>d8754z-;rport=32200</font></div><div><font face="monospace, monospace" size="1"> Max-Forwards: 69</font></div><div><font face="monospace, monospace" size="1"> From: <<a href="mailto:sip%3Adavid.villasmil@1.2.3.4" target="_blank">sip:david.villasmil@1.2.3.4</a>;<wbr>transport=UDP>;tag=42169b65</font></div><div><font face="monospace, monospace" size="1"> To: <<a href="mailto:sip%3A9999999@1.2.3.4" target="_blank">sip:9999999@1.2.3.4</a>;<wbr>transport=UDP>;tag=<wbr>pZ0N246BBcK7K</font></div><div><font face="monospace, monospace" size="1"> Call-ID: YmU5YjEwODk2ZmZhODJjNDgzNTNlM2<wbr>FiZWVmMjI2MDg.</font></div><div><font face="monospace, monospace" size="1"> CSeq: 1 INVITE</font></div><div><font face="monospace, monospace" size="1"> User-Agent: FreeSWITCH-mod_sofia/1.6.20-<wbr>37-987c9b9~64bit</font></div><div><font face="monospace, monospace" size="1"> Accept: application/sdp</font></div><div><font face="monospace, monospace" size="1"> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</font></div><div><font face="monospace, monospace" size="1"> Supported: timer, path, replaces</font></div><div><font face="monospace, monospace" size="1"> Allow-Events: talk, hold, conference, refer</font></div><div><font face="monospace, monospace" size="1"> Reason: Q.850;cause=16;text="NORMAL_<wbr>CLEARING"</font></div><div><font face="monospace, monospace" size="1"> Content-Length: 0</font></div><div><font face="monospace, monospace" size="1"> Remote-Party-ID: "9999999" <<a href="mailto:sip%3A9999999@1.2.3.4" target="_blank">sip:9999999@1.2.3.4</a>>;party=<wbr>calling;privacy=off;screen=no</font></div></div><div><br></div><div><br></div><div>But I've noticed that when i do:</div><div><br></div><div><font face="monospace, monospace" size="1"><action inline="true" application="set" data="release_code=488 BEARERCAPABILITY_NOTIMPL"/></font><br></div><div><br></div><div><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The BYE message is as follows:</span><br></div><div><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div><font face="monospace, monospace" size="1"> SIP/2.0 488 BEARERCAPABILITY_NOTIMPL</font></div><div><font face="monospace, monospace" size="1"> Via: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;<wbr>branch=z9hG4bK3SDv7eUK14Z6D</font></div><div><font face="monospace, monospace" size="1"> Max-Forwards: 69</font></div><div><font face="monospace, monospace" size="1"> From: "david.villasmil" <<a href="mailto:sip%3Adavid.villasmil@1.2.3.4" target="_blank">sip:david.villasmil@1.2.3.4</a>>;<wbr>tag=F3am0c2594H7a</font></div><div><font face="monospace, monospace" size="1"> To: <<a href="http://sip:9999999@1.2.3.4:5080" target="_blank">sip:9999999@1.2.3.4:5080</a>>;<wbr>tag=6XDmXaZj5BQ8S</font></div><div><font face="monospace, monospace" size="1"> Call-ID: aeb6624e-e539-1236-5691-<wbr>02e1e654f872</font></div><div><font face="monospace, monospace" size="1"> CSeq: 123866772 INVITE</font></div><div><font face="monospace, monospace" size="1"> User-Agent: FreeSWITCH-mod_sofia/1.6.20-<wbr>37-987c9b9~64bit</font></div><div><font face="monospace, monospace" size="1"> Accept: application/sdp</font></div><div><font face="monospace, monospace" size="1"> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</font></div><div><font face="monospace, monospace" size="1"> Supported: timer, path, replaces</font></div><div><font face="monospace, monospace" size="1"> Allow-Events: talk, hold, conference, refer</font></div><div><font face="monospace, monospace" size="1"> Reason: Q.850;cause=88;text="<wbr>INCOMPATIBLE_DESTINATION"</font></div><div><font face="monospace, monospace" size="1"> Content-Length: 0</font></div><div><font face="monospace, monospace" size="1"> X-FS-Display-Name: 9999999</font></div><div><font face="monospace, monospace" size="1"> X-FS-Display-Number: <a href="mailto:sip%3A9999999@1.2.3.4" target="_blank">sip:9999999@1.2.3.4</a></font></div><div><font face="monospace, monospace" size="1"> Remote-Party-ID: "9999999" <<a href="mailto:sip%3A9999999@54.84.149.30" target="_blank">sip:9999999@54.84.149.30</a>>;<wbr>party=calling;privacy=off;<wbr>screen=no</font></div><div><br></div><div><br></div><div>So I guess, my question is why sometimes the "text" is set properly, and sometimes not??</div><div><br></div></span></div><br clear="all"><div><div dir="ltr" class="m_-4583070680441234728gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=fa2e70d6-b195-46c4-8907-96f5c4f1241e"><font color="#ffffff" size="1">ᐧ</font></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Anthony Minessale II</div><div dir="ltr">Founder, FreeSWITCH.</div><div dir="ltr"><div><a href="http://freeswitch.com" target="_blank">http://freeswitch.com</a></div><div><br></div><div><br></div><div><span style="font-size:12.8px"><a href="https://youtu.be/l_hOxzCt6X4" target="_blank">https://youtu.be/l_hOxzCt6X4</a></span><br></div><div><a href="https://www.youtube.com/watch?v=oAxXgyx5jUw" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><br></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div></div></div>
</div>