[Serusers] Adding headers to the "200 OK" response

Kanakatti Mahesh Subramanya mahesh at aptela.com
Tue Nov 30 16:06:42 CET 2004


Frighteningly obvious, and clearly the type of thing that would have 
been immediately apparent if I hadn't been zonked from being up 18 hours 
(12 of them with a *ridiculous* hangover).

Sorry...     :-)


cheers

Marian Dumitru wrote:

> Hi Kanakatti,
>
> you can add whatever header to the replies via script function
>     append_to_reply("some_header\n\r");
> from "textops" module.
>
> Best regards,
> Marian
>
> Kanakatti Mahesh Subramanya wrote:
>
>> Is it possible to manipulate the "200 OK" response to a REGISTER method?
>> I need to add a header field to it, and as far as I can tell, there 
>> really is no way to do this.
>>
>> Why do I want to do this?
>> Well, Snom foneslook for the presence of a "P-NAT-Refresh: 
>> <yyyseconds>" header in the "200 OK" response to their REGISTER 
>> methods. If the header is present, the fones start sending out 
>> "keep-alive" packets every yyy seconds, thus keeping NAT bindings open
>>
>> Why dont I just use "natping_interval" in mediaproxy?
>> Because there are a whole bunch of routers (linksys firewall/routers, 
>> dlink ones, etc.) which only keep the binding open when there is a 
>> packet sourced from the internal network.
>>
>> Cheers
>>
>> _______________________________________________
>> Serusers mailing list
>> serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mahesh.vcf
Type: text/x-vcard
Size: 332 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20041130/bad5a803/attachment.vcf>


More information about the sr-users mailing list