[SR-Users] Kamailio preprocessor to get hostname

Ben Kaufman bkaufman at bcmone.com
Wed Apr 6 21:03:36 CEST 2022


#!defenv HOSTNAME

Should work.

Ben Kaufman

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of David VILLAUME
Sent: Wednesday, April 6, 2022 2:00 PM
To: Kamailio (SER) - Users Mailing List <sr-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220406/56fc96c1/attachment.htm>


More information about the sr-users mailing list