[Serusers] Re: Adding Headers (append_hf)
Girish
gr_sh2003 at yahoo.com
Mon Dec 6 16:32:00 CET 2004
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 at 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 at yahoo.com>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the sr-users
mailing list