Hi all,
I have seen a problem(?) with adding headers to sip messages using append_hf. SER never allowed me to add a new header after proxy-authorization is enabled for INVITEs. In normal cases it permits me to add custom headers. But, the following piece of code never worked:
if (!radius_proxy_authorize("")) { proxy_challenge("", "0"); break; } prefix ("12345678"); append_hf ("Credit-Time: 360\r\n");
After spending some time with this, i was able to add the header like this:
if (!radius_proxy_authorize("")) { proxy_challenge("", "0"); break; } if (is_present_hf ("Proxy-Authorization")){ remove_hf ("Proxy-Authorization"); } prefix ("12345678"); append_hf ("Credit-Time: 360\r\n");
Any specific reason for this behaviour? Can anyone shed some light on why SER is not allowing me to add new headers when there is a Proxy-Authorization header present?
Thanks,
===== Girish Gopinath gr_sh2003@yahoo.com
__________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail