Re: [SR-Users] Passing Command-Line Arguments to Kamailio Config Script

2014-06-25 Thread AliReza Khoshgoftar Monfared
Thanks very much Daniel. Did you mean: kamailio -A xyz='"abc"' ... in equivalent to $var(xyz) = "abc" in config? Also is there a scope restriction on the use of $var() or -A option? I seem to be able to use it inside the route {} block but not in the global scope... On Wed, Jun 25, 2014 at 3

Re: [SR-Users] Passing Command-Line Arguments to Kamailio Config Script

2014-06-25 Thread Daniel-Constantin Mierla
Hello, you can use pre-processor defines, passing it via -A command line parameter: kamailio -A xyz='"abc"' ... in config: $var(x) = xyz Cheers, Daniel On 25/06/14 02:31, AliReza Khoshgoftar Monfared wrote: Hi, I had a simple question to which I could not find a clear answer in the docume

[SR-Users] Passing Command-Line Arguments to Kamailio Config Script

2014-06-24 Thread AliReza Khoshgoftar Monfared
Hi, I had a simple question to which I could not find a clear answer in the documentation. How can I pass a command line argument to Kamailio config script? For example, assume that I run my kamailio daemon using script myconf.cfg: >>kamailio -f myconf.cfg Now I want to pass a value, say an I