[Serusers] Adding Headers (append_hf)

Girish gr_sh2003 at yahoo.com
Sat Dec 4 12:35:05 CET 2004


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 at yahoo.com>


		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 




More information about the sr-users mailing list