[SR-Users] exec_avp problem

Marius Zbihlei marius.zbihlei at 1and1.ro
Mon Mar 12 13:46:10 CET 2012


On 03/12/2012 02:27 PM, Uri Shacked wrote:
> Hi,
> i am using the exec_avp command as followed:
> /exec_avp("[/usr/local/etc/kamailio/maintenance/service/service_pr.sh",  "$avp(xxx),$avp(yyy)");/
> //
> here is the shell script content:
> //
> /RETVAL=-1
> RES=`kamctl cr reload`
> RETVAL=$?
> echo "$RETVAL"
> echo "$RES"/

Hello,

Check to see if you can run the script as the user that is the user id 
of the kamailio process. Also use the full path to the kamctl script, as 
relying on $PATH might not work always (environment settings).

Cheers
Marius
> //
> I keep on getting 127 as the retval. any ideas why?
> I must say that two days ago, the script was OK..... :-(
> where i run the script manualy i have no problems... retval is 0.
>

-- 
Zbihlei Marius

Head of
Linux Development Services Romania

1&1 Internet Development srl    Tel KA: 754-9152
Str Mircea Eliade 18            Tel RO: +40-31-223-9152
Sect 1, Bucuresti               mailto: marius.zbihlei at 1and1.ro
71295, Romania

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120312/7abb8b5a/attachment.htm>


More information about the sr-users mailing list