I have an issue that from what I can tell is related to forking. My configuration works just fine, and makes a request out to execute curl to hit an external API:
$var(my_query) = "curl -m 2 -s http://x.x.x.x/service/method?fromAddr=" + $var(fu) + "&toAddr=" + $var(tu);
Normally this gives us back a nice JSON response, no problems. All I do is enable snmpstats module, and it fails.
Mar 5 16:51:30 server-name /usr/sbin/kamailio[1051]: ERROR: exec [exec.c:291]: exec_avp(): cmd curl -m 2 -s http://x.x.x.x/service/method?fromAddr=me@mydomain.com%5C&toAddr=someone... failed. exit_status=-1, errno=10: No child processes
I have edited this for security reasons of course. If I disable SNMP, the problem goes away.
Thoughts?
Hello,
On 05/03/15 23:08, Daniel Goepp wrote:
I have an issue that from what I can tell is related to forking. My configuration works just fine, and makes a request out to execute curl to hit an external API:
$var(my_query) = "curl -m 2 -s http://x.x.x.x/service/method?fromAddr=" + $var(fu) + "&toAddr=" + $var(tu);
Normally this gives us back a nice JSON response, no problems. All I do is enable snmpstats module, and it fails.
Mar 5 16:51:30 server-name /usr/sbin/kamailio[1051]: ERROR: exec [exec.c:291]: exec_avp(): cmd curl -m 2 -s http://x.x.x.x/service/method?fromAddr=me@mydomain.com%5C&toAddr=someone... http://x.x.x.x/service/method?fromAddr=me@mydomain.com%5C&toAddr=someone@mydomain.com failed. exit_status=-1, errno=10: No child processes
I have edited this for security reasons of course. If I disable SNMP, the problem goes away.
Thoughts?
Interesting! Can you run with debug=3 in kamailio.cfg and see if you figure out more about the situation from the log messages?
Cheers, Daniel