I received this message.
-Steve
Girish wrote:
Can anyone please confirm if you are getting my mails? This is my third mail in last 2 weeks to the list which has gone unnoticed/unanswered.
Regards,
--- Girish gr_sh2003@yahoo.com wrote:
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!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers