[SR-Users] change failure status if reason is q.850 cause=31
Boden Garman
bpgarman at fastmail.fm
Wed Apr 10 08:19:01 CEST 2019
Hi Aleksandr,
Maybe you can use the `hf_value_exists function`
https://www.kamailio.org/docs/modules/5.2.x/modules/textopsx.html#textopsx.f.hf_value_exists
On Wed, 10 Apr 2019, at 4:16 PM, Techinnovation wrote:
> Hello,
>
> How can I change the status where Reason: q.850;cause=31. ?
>
> This code change status for all where we receive status 480 to 404. Is it possible to this code also to add second condition - if reason is like "q.850;cause=31"
>
> failure_route[MANAGE_FAILURE] {
> ...
>
> if (t_check_status("480")) {
> t_reply("404","Unallocated number");
> exit;
> }
>
> Need to modify this massage.
>
> *SIP/2.0 480 Temporarily Not Available.
*Allow: UPDATE,REFER,INFO.
> Call-ID: 6b11b153405a5103330697b774b97f5a at 192.168.2.2:5060.
> Contact: <sip:192.168.3.3:5060>.
> CSeq: 102 INVITE.
> From: "380668375820" <sip:380668375820 at 192.168.2.2>;tag=as445242c0.
> *Reason: q.850;cause=31.
*Server: Cirpack/v4.76 (gw_sip).
> To: <sip:9052946032 at 192.168.3.3:5060>;tag=00-07929-6e4a3079-75447e2a5.
> Content-Length: 0.
>
> Thanks.
>
> BR,
> Aleksandr
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190410/8f903fc0/attachment.html>
More information about the sr-users
mailing list