[OpenSIPS-Users] reason headers

duane.larson at gmail.com duane.larson at gmail.com
Wed Jan 4 16:57:21 CET 2012


You can change your debug to
debug=6

And then do a

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");
}


Your syslog will have a lot of stuff in it but you can search for your xlog  
messages to find all the stuff that happens after your ***BEFORE*** and  
before your ***AFTER***. Maybe that will point to the issue. Post the debug  
info (if it is a lot of output then you can post on pastebin.com and they  
reply to this thread with the link).



On , "Jan D." <j-doedel at zonnet.nl> wrote:
> Dear Vlad,



> I'm sure the code is called, I also tried:



> if(is_present_hf("Reason"))

> {

> remove_hf("Reason");

> xlog("L_INFO", " INFO : delete Reason header\n");

> }



> We the Cancel is fired the INFO line appearse in my log file (tail -f).



> I also tried this on several servers with opensips 1.7.1.

> I think i run the right script code but it does not do what i want (bug?).

> Maybe somebody can reproduce this behavior?



> --

> View this message in context:  
> http://opensips-open-sip-server.1449251.n2.nabble.com/reason-headers-tp7137781p7150742.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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120104/b1fb0579/attachment.htm>


More information about the Users mailing list