Yep, I'm hanging up with a custom cause. What surprises me is the inconsistency of the reason text.
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...
On Fri, Jun 8, 2018, 23:18 Anthony Minessale <anthony.minessale@gmail.com> wrote: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.On Thu, Jun 7, 2018 at 4:11 PM, David Villasmil <david.villasmil.work@gmail.com> wrote: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_ERRORVia: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;branch=z9hG4bK0y1H2X8899veBMax-Forwards: 69From: "david.villasmil" <sip:david.villasmil@1.2.3.4>;tag=t35r9gatZFcjjTo: <sip:9999999@1.2.3.4:5080>;tag=pB7mFpUrc30gBCall-ID: e2da7a79-e537-1236-5691-02e1e654f872CSeq: 123866386 INVITEUser-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bitAccept: application/sdpAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, path, replacesAllow-Events: talk, hold, conference, referReason: Q.850;cause=25;text="EXCHANGE_ROUTING_ERROR"Content-Length: 0X-FS-Display-Name: 9999999X-FS-Display-Number: sip:9999999@1.2.3.4Remote-Party-ID: "9999999" <sip:9999999@1.2.3.4>;party=calling;privacy=off;screen=noAnother example:<action inline="true" application="set" data="release_code=410 NUMBER_CHANGED"/>The BYE message is SOMETIMES as follows:SIP/2.0 410 NUMBER_CHANGEDVia: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;branch=z9hG4bKZN8r02Q5c16UFMax-Forwards: 69From: "david.villasmil" <sip:david.villasmil@1.2.3.4>;tag=Q8Se4ZQF8m9SFTo: <sip:9999999@1.2.3.4:5080>;tag=mSm3B0SHjHmBmCall-ID: dfbb5497-e537-1236-5691-02e1e654f872CSeq: 123866383 INVITEUser-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bitAccept: application/sdpAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, path, replacesAllow-Events: talk, hold, conference, referReason: Q.850;cause=22;text="NUMBER_CHANGED"Content-Length: 0X-FS-Display-Name: 9999999X-FS-Display-Number: sip:9999999@1.2.3.4Remote-Party-ID: "9999999" <sip:9999999@54.84.149.30>;party=calling;privacy=off;screen=noAnd other times as follows:SIP/2.0 410 GoneVia: SIP/2.0/UDP 1.2.3.4:32200;branch=z9hG4bK-d8754z-86e4295fca2efa0a-1---d8754z-;rport=32200Max-Forwards: 69From: <sip:david.villasmil@1.2.3.4;transport=UDP>;tag=42169b65To: <sip:9999999@1.2.3.4;transport=UDP>;tag=pZ0N246BBcK7KCall-ID: YmU5YjEwODk2ZmZhODJjNDgzNTNlM2FiZWVmMjI2MDg.CSeq: 1 INVITEUser-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bitAccept: application/sdpAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, path, replacesAllow-Events: talk, hold, conference, referReason: Q.850;cause=16;text="NORMAL_CLEARING"Content-Length: 0Remote-Party-ID: "9999999" <sip:9999999@1.2.3.4>;party=calling;privacy=off;screen=noBut 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_NOTIMPLVia: SIP/2.0/UDP 1.2.3.4:5080;rport=5080;branch=z9hG4bK3SDv7eUK14Z6DMax-Forwards: 69From: "david.villasmil" <sip:david.villasmil@1.2.3.4>;tag=F3am0c2594H7aTo: <sip:9999999@1.2.3.4:5080>;tag=6XDmXaZj5BQ8SCall-ID: aeb6624e-e539-1236-5691-02e1e654f872CSeq: 123866772 INVITEUser-Agent: FreeSWITCH-mod_sofia/1.6.20-37-987c9b9~64bitAccept: application/sdpAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, path, replacesAllow-Events: talk, hold, conference, referReason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION"Content-Length: 0X-FS-Display-Name: 9999999X-FS-Display-Number: sip:9999999@1.2.3.4Remote-Party-ID: "9999999" <sip:9999999@54.84.149.30>;party=calling;privacy=off;screen=noSo I guess, my question is why sometimes the "text" is set properly, and sometimes not??ᐧ__________________________________________________________________________________________________________________________________________________
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com--
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com