<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Aleksandr,<br></div><div><br></div><div>Maybe you can use the <code class="function">hf_value_exists function</code><br></div><div><a href="https://www.kamailio.org/docs/modules/5.2.x/modules/textopsx.html#textopsx.f.hf_value_exists">https://www.kamailio.org/docs/modules/5.2.x/modules/textopsx.html#textopsx.f.hf_value_exists</a><br></div><div><br></div><div>On Wed, 10 Apr 2019, at 4:16 PM, Techinnovation wrote:<br></div><blockquote type="cite" id="qt"><span style="font-family:"Courier New"" class="font"><span style="font-size:9pt" class="size"><div>Hello,<br></div><div> <br></div><div> How can I change the status where Reason: q.850;cause=31. ?<br></div><div> <br></div><div> 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"<br></div><div> <br></div><div> failure_route[MANAGE_FAILURE] {<br></div><div> ...<br></div><div> <br></div><div>        if (t_check_status("480")) {<br></div><div>                t_reply("404","Unallocated number");<br></div><div>                        exit;<br></div><div>        }<br></div><div> <br></div><div> Need to modify this massage.<br></div><div> <br></div><div> <b>SIP/2.0 480 Temporarily Not Available.<br> </b>Allow: UPDATE,REFER,INFO.</div><div> Call-ID: 6b11b153405a5103330697b774b97f5a@192.168.2.2:5060.<br></div><div> Contact: <sip:192.168.3.3:5060>.<br></div><div> CSeq: 102 INVITE.<br></div><div> From: "380668375820" <sip:380668375820@192.168.2.2>;tag=as445242c0.<br></div><div> <b>Reason: q.850;cause=31.<br> </b>Server: Cirpack/v4.76 (gw_sip).</div><div> To: <sip:9052946032@192.168.3.3:5060>;tag=00-07929-6e4a3079-75447e2a5.<br></div><div> Content-Length: 0.<br></div><div> <br></div><div> Thanks.<br></div><div> <br></div><div> BR,<br></div><div> Aleksandr <br></div><div>_______________________________________________<br></div><div>Kamailio (SER) - Users Mailing List<br></div><div>sr-users@lists.kamailio.org<br></div><div>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br></div><div><br></div></span></span></blockquote><div><br></div></body></html>