<div dir="ltr"><div><div><div>Hi,<br><br></div>I had a simple question to which I could not find a clear answer in the documentation.<br><br></div>How can I pass a command line argument to Kamailio config script?<br><br><br>

</div><div>For example, assume that I run my kamailio daemon using script myconf.cfg:<br><br></div><div>>>kamailio -f myconf.cfg<br><br></div><div>Now I want to pass a value, say an IP address and use it inside the script. Sth like<br>

<br></div><div>>>kamailio -f myconf.cfg --ip __MY_IP__<br><br></div><div>and then have an assignment of "$var=__MY_IP__" inside myconf.cfg<br><br></div><div>Is there an easy way to do this?<br></div></div>