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:[email protected]:5060 SIP/2.0
Message Header
From: <sip:[email protected]>;tag=6CA89598-AD9
To: <sip:[email protected]>
Date: Fri, 16 Dec 2011 19:27:16 GMT
Call-ID: [email protected]
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:[email protected]:1030 SIP/2.0
Message Header
From: <sip:[email protected]>;tag=6CA89598-AD9
Call-ID: [email protected]
To: <sip:[email protected]>
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.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users