[Serusers] Re: Adding Headers (append_hf)
Steve Blair
blairs at isc.upenn.edu
Mon Dec 6 16:33:43 CET 2004
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 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
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
--
ISC Network Engineering
The University of Pennsylvania
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104
voice: 215-573-8396
215-746-8001
fax: 215-898-9348
sip:blairs at upenn.edu
More information about the sr-users
mailing list