[SR-Users] change failure status if reason is q.850 cause=31

Techinnovation techinnovation at inbox.lv
Tue Apr 9 16:47:10 CEST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190409/08bc5f30/attachment.html>


More information about the sr-users mailing list