Hi All,
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?
Thanks
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
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users