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