[SR-Users] Organization in SIP header

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 17 09:53:16 CEST 2011


Hello,

actually the user_agent_header and server_header can take more than one 
header. You can just put as many as you want separately by \r\n (without 
the last \r\n). Try like:

user_agent_header="Organization: My Company\r\nUser-Agent: ..."

But be aware that these headers are used for messages generated by 
kamailio, not added to messages that are proxied. For proxied traffic 
you have to use append_hf().

Cheers,
Daniel

On 10/15/11 7:14 PM, Skyler wrote:
> On Sat, 2011-10-15 at 19:19 +0300, Juha Heinanen wrote:
>> Skyler writes:
>>
>>>   I mean, is there a way to add an Organization Header Field without
>>> using append_hf function in script.
>>>
>>> Example, organization_header="Organization: Company Name"
>> i don't think there is any other way.
>>
>> -- juha
>>
>   Ok, Thanks :)
>
> S.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list