<div dir="ltr"><div>Anthony,</div><div><br></div>Doing something like:<div><br></div><div><div><font face="monospace, monospace">        case SWITCH_CAUSE_NETWORK_OUT_OF_ORDER:</font></div><div><font face="monospace, monospace">                return 503;</font></div><div><font face="monospace, monospace">        case SWITCH_CAUSE_NORMAL_CIRCUIT_CONGESTION:</font></div><div><font face="monospace, monospace">                return 503;</font></div><div><font face="monospace, monospace">        case SWITCH_CAUSE_NORMAL_TEMPORARY_FAILURE:</font></div><div><font face="monospace, monospace">                return 503;</font></div><div><font face="monospace, monospace">        case SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL:</font></div><div><font face="monospace, monospace">                return 503;</font></div><div><font face="monospace, monospace">        case SWITCH_CAUSE_SWITCH_CONGESTION:</font></div><div><font face="monospace, monospace">                return 503;</font></div><div><font face="monospace, monospace">        case SWITCH_CAUSE_GATEWAY_DOWN:</font></div><div><font face="monospace, monospace">                return 503;</font></div></div><div><br></div><div>Would go a long way into actually reporting the text properly, ordering alphabetically and returning the corresponding code.</div><div><br></div><div>Would this be wrong?</div><div><br clear="all"><div><div dir="ltr" class="gmail_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><br></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=721dcdca-bafd-4dc3-8087-c7580a3bbde2"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 8, 2018 at 11:43 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Yep, I'm hanging up with a custom cause. What surprises me is the inconsistency of the reason text.</p>
<p dir="ltr">I'm trying to use the causes to act on it, but i.e. BEARERCAPABILITY_NOTIMPL is not caught by the sending fs, the variable comes up empty... </p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 8, 2018, 23:18 Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"></div></div><div class="gmail_extra"><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></div></div><div class="gmail_extra"><div class="gmail_quote"><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;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>>;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>>;tag=pB7mFpUrc30gB</font></div><div><font face="monospace, monospace" size="1">   Call-ID: e2da7a79-e537-1236-5691-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-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_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=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;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>>;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>>;tag=mSm3B0SHjHmBm</font></div><div><font face="monospace, monospace" size="1">   Call-ID: dfbb5497-e537-1236-5691-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-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_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>>;party=calling;privacy=off;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-d8754z-86e4295fca2efa0a-1---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>;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>;transport=UDP>;tag=pZ0N246BBcK7K</font></div><div><font face="monospace, monospace" size="1">   Call-ID: YmU5YjEwODk2ZmZhODJjNDgzNTNlM2FiZWVmMjI2MDg.</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-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_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=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;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>>;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>>;tag=6XDmXaZj5BQ8S</font></div><div><font face="monospace, monospace" size="1">   Call-ID: aeb6624e-e539-1236-5691-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-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="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>>;party=calling;privacy=off;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_7555176352155926963m_-4683536620078926394m_-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></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">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/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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/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="m_7555176352155926963m_-4683536620078926394gmail_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>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">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/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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
</blockquote></div>