[OpenSIPS-Users] reason headers

Vlad Paiu vladpaiu at opensips.org
Wed Jan 4 15:45:40 CET 2012


Hello,

Are you sure that your piece of code is actually reachable in your 
script ? Maybe the remove_hf() function is not even called.

Put a couple of xlog messages before the is_present_hf() if and actually 
in the if brackets and check with your OpenSIPS logs if your script 
logic actually takes you there.

Regards,

Vlad Paiu
OpenSIPS Developer


On 01/04/2012 04:25 PM, Jan D. wrote:
> Dear Vlat,
>
> Thank you for your response!
>
> In fact I just want to remove the 'Reason' header (Reason:
> SIP;cause=487;text=ORIGINATOR_CANCEL), not replace it, because the
> Philips/NEC does not support rfc3326 and even sents a 'Bad Request' if this
> line is in a header.
>
> At the start of the post I tried the remove_hf("Reason"), but the field is
> not deleted.
>
> I also tried in route[0]:
> if(is_present_hf("Reason"))
> {
>    remove_hf("Reason");
> }
>
> but the line is stil present in the response to the far end (Philips/Nec).
> So it looks like the remove_hf("Reason") does not work...
>
> (I of cause already read the parts in the textops cookbook)
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/reason-headers-tp7137781p7150616.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list