Hello,
not sure if the environment replacement there works in later versions, have not tested
it.
You could just use another template system like ansible etc.. to deploy the name
dynamically.
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com<https://gilawa.com/>
From: Bernd Krueger-Knauber via sr-users <sr-users(a)lists.kamailio.org>
Sent: Montag, 13. November 2023 12:15
To: sr-users(a)lists.kamailio.org
Cc: Bernd Krueger-Knauber <bkk(a)ednt.de>
Subject: [SR-Users] pseudo variable in include_file not possible
Hi,
since we use git also for our kamailio stuff, we need to check in also host specific
stuff.
(same kamailio.cfg but different addresses and ... )
For this I thought an include_file for different hosts would be nice, but I can not check
in the different host specific files,
because I can not use something like:
include_file "$HN(n).cfg"
It is not allowed in kamailio 5.6.x
Or better: the pseudo variable is not replaced.
Is there a way to work arround, or is it possible to make it possible?
Best regards
Bernd