[sr-dev] [kamailio/kamailio] Passing Listening Socket details through Environment Variables (#2585)

sido420 notifications at github.com
Mon Dec 14 17:52:03 CET 2020


I am not 100% sure if its a bug or feature request. And, I have already asked this question in mailing list.

### Description

I was  trying to pass environment variables to Kamailio that are definitely there in the container. Also, I am trying to use the environment variables to specify ports for Kamailio to listen on. I have already tried passing variables through -A option but to no avail.

### Expected behavior
Please note that these values are known at start time so should work. 

#### Actual observed behavior
Errors

#### Debugging Data
I have tried:

```
#!define TLS_TO_LISTEN tls:TLS_IP:$env(TLS_PORT)
```

I have also tried using in EVAPI `bind_addr` modparam but that throws errors:
```
#!define EVAPI_LISTEN "0.0.0.0:EVAPI_PORT"
..
modparam("evapi", "bind_addr", EVAPI_LISTEN )  // IP and port to listen on for incoming TCP connections.
```
Error:
```
 ERROR: evapi [evapi_mod.c:156]: mod_init(): invalid port: 0
```



### Additional Information

```
version: kamailio 5.4.2 (x86_64/linux) f8885c
```

* **Operating System**:
Docker Container:
```
Linux fe1933ee6208 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64 GNU/Linux 
```




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2585
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201214/101f3fea/attachment.htm>


More information about the sr-dev mailing list