[OpenSIPS-Users] reason headers
Jan D.
j-doedel at zonnet.nl
Sat Jan 7 11:55:08 CET 2012
Hi Saúl / Vlad,
I think your totaly right. I had a look at all Cancels in my sip traces and
even Cancels coming in without a Reason header are coming out with a Reason
header.
So my question should be:
- can I disable the output of Reason headers /
- a feature request for disableling the output of Reason headers in a Cancel
request.
I also tried to put the remove_hf in a local route, but the local_route did
not give any output with debug 3:
local_route
{
xlog("L_INFO", "********** ROUTE local_route ********** $rm $si\n");
append_hf("P-hint: Local_Route\r\n");
if(is_present_hf("Reason"))
{
xlog("L_INFO", " INFO : ***BEFORE*** delete Reason
header\n");
remove_hf("Reason");
xlog("L_INFO", " INFO : ***AFTER*** delete Reason
header\n");
}
}
So summing up to be clear (I hope):
Our Cisco (S7 - ) sents a Cancel request to opensips:
Session Initiation Protocol
Request-Line: CANCEL sip:31201234567 at sip.client.nl:5060 SIP/2.0
Message Header
From: <sip:0622334455 at sip.provider.nl>;tag=6CA89598-AD9
To: <sip:31201234567 at sip.client.nl>
Date: Fri, 16 Dec 2011 19:27:16 GMT
Call-ID: CC46DCEF-275211E1-B6F2F4AB-C7084FB4 at sip.provider.nl
CSeq: 101 CANCEL
Max-Forwards: 70
Timestamp: 1324063688
Reason: Q.850;cause=16
Content-Length: 0
And opensips processes the request and sents this to the clients ATA:
Session Initiation Protocol
Request-Line: CANCEL sip:myusername at 81.82.83.10:1030 SIP/2.0
Message Header
From: <sip:0622334455 at sip.opensips.nl>;tag=6CA89598-AD9
Call-ID: CC46DCEF-275211E1-B6F2F4AB-C7084FB4 at sip.provider.nl
To: <sip:31201234567 at sip.client.nl>
CSeq: 101 CANCEL
Max-Forwards: 70
Content-Length: 0
In the processed request the Reason header (above Content-Length) is
filtered out.
(left the Via records out).
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/reason-headers-tp7137781p7161373.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list