Re: [SR-Users] Question regarding calling a shell script from kamailio

2017-07-03 Thread Daniel-Constantin Mierla
Hello, your first email was answered: - https://lists.kamailio.org/pipermail/sr-users/2017-June/097640.html The exec_avp() should allow you to get back values in kamailio.cfg, iirc. Cheers, daniel On 29.06.17 18:58, Anuradha Selvarajan wrote: > > Hello, > > > > Resending as I didn’t get an

Re: [SR-Users] Question regarding calling a shell script from kamailio

2017-06-29 Thread Anuradha Selvarajan
Hello, Resending as I didn't get any reply yet. I tried to use exec_msg to call a external script but that is not working as expected (used it under request_route function as suggested). Also exec_msg doesn't store any return value so not sure if this will help. Like mentioned in my previous em

Re: [SR-Users] Question regarding calling a shell script from kamailio

2017-06-28 Thread Alex Balashov
You can do this using the functions in the exec module: https://kamailio.org/docs/modules/5.0.x/modules/exec.html However, this solution is naive and performs poorly given Kamailio's concurrency model. Sometimes, calling external scripts is unavoidable. But you mention a curl call. Perhaps yo

[SR-Users] Question regarding calling a shell script from kamailio

2017-06-28 Thread Anuradha Selvarajan
Hello, I am using fork.cfg file and I want to call a shell script (which has curl commands extracting value from database and returns the value) and use the value in the fork.cfg. How can I do it? Appreciate your help! Thanksm Anu ___ Kamailio (SER)