[SR-Users] Build version in custom server_header

Asgaroth 00asgaroth00 at gmail.com
Thu Oct 20 16:19:40 CEST 2011


Thanks Henning, I'll use that method in the interrim


On 20/10/2011 14:59, Henning Westerholt wrote:
> On Thursday 20 October 2011, Asgaroth wrote:
>> Is it possible to have the build/git version added in a custom
>> server_header/useragent_header? For example, my kamailio version is:
>>
>> version: kamailio 3.2.0 (i386/linux) 94d3b8
>>
>> if I had the following config options:
>>
>> server_header="Server: Proxy"
>> useragent_header="User-Agent: Proxy"
>>
>> Is it possible to do something like:
>>
>> server_header="Server: Proxy ($buildver)"
>> useragent_header="User-Agent: Proxy ($buildver)"
>>
>> Where "$buildver" is the build/git release (94d3b8)? I'm looking at the
>> core cookbook but I dont see anything that jumps out at me, is there a
>> variable that can do this?
> Hi Asgaroth,
>
> there is AFAIK no  predefined header for this. But if your build does not 
> change that often, you could simply add it as a text string to your cfg. ;-)
>
> Best regards,
>
> Henning
>
> _______________________________________________
> 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
>
>




More information about the sr-users mailing list