#!defenv HOSTNAME

 

Should work.

 

Ben Kaufman

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of David VILLAUME
Sent: Wednesday, April 6, 2022 2:00 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] Kamailio preprocessor to get hostname

 

Hello all ,

 

Do you know any way to get the hostname of my server at kamailio runtime ?

 

The simple idea behind this would be ton import a specific environment file base on hostname.              

 

Regards,

David