[Serusers] About exec_dset()

chungyu chungyu at ms11.voip.edu.tw
Mon Jun 4 11:37:44 CEST 2007


Dear all:
     I want to change the content of request uri. I use this function ,exec_dset(), to change it.

    This is my configuration: 

 if (!lookup("location")) {
                        exec_dset("/usr/local/etc/openser/shell/sh1");
                        #sl_send_reply("404", "Not Found");
                        exit;
                };

shell scrip: sh1
#!/bin/sh
num=200 at xx.xx.xx.xx
if [! -z "$num" ]
then
echo "$*"
else
echo "sip:$num"
fi


but it doesn't work.

error message:
ERROR:exec_str: no uri from /usr/local/etc/openser/shell/sh1 XX at xx.xx.xx.....

Can somebody tell me what's wrong with my shell script. 
Thank you for your response

chungyu
2007/06/4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20070604/256c4e6b/attachment.htm>


More information about the sr-users mailing list