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: [email protected]:5060.
> Contact: <sip:192.168.3.3:5060>.
> CSeq: 102 INVITE.
> From: "380668375820" <sip:[email protected]>;tag=as445242c0.
> *Reason: q.850;cause=31.
*Server: Cirpack/v4.76 (gw_sip).
> To: <sip:[email protected]:5060>;tag=00-07929-6e4a3079-75447e2a5.
> Content-Length: 0.
>
> Thanks.
>
> BR,
> Aleksandr
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users