<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi, Jayesh!<br>
<br>
I think there is a permissions issue here. What is the user you
are running opensips with? Is it the same as the one you are
trying to execute the shell script?<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
On 09/09/2014 03:44 PM, Jayesh Nambiar wrote:<br>
</div>
<blockquote
cite="mid:CANAYozvw-HmSdWFs2MGAfe9pvUjvN--Rj4SCnf4Vg2+keJGasQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hello,<br>
</div>
I try to cancel a running transaction in opensips
based on certain conditions. When I try this from the
script:<br>
</div>
exec_avp("/usr/local/myOpensips/sbin/opensipsctl fifo
t_uac_cancel $avp(caller_cid) $avp(caller_cseq)",
"$avp(result)");<br>
</div>
<div>The callid and cseq is properly substituted in the
appropriate AVPs.<br>
</div>
I get, ** ERROR: error opening read fifo
/tmp/opensips_receiver_24405 in the resulting AVP. Whereas
when I run this command directly from my shell it runs
fine and cancels the transaction as expected.<br>
</div>
Tried to google around the problem and couldn't find much. I
read about some selinux thing that might block opensips from
executing the MI command, but I'm pretty sure selinux is
disabled on my machine. Where else do I look for a fix such
that my script is able to execute this !!<br>
<br>
</div>
Thanks in advance for any pointers.<br>
<br>
</div>
--- Jayesh<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>