<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Dear all:<BR>&nbsp;I want to change the content of request 
uri. I use this function ,exec_dset(), to change it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>This is my configuration: </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;if (!lookup("location")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exec_dset("/usr/local/etc/openser/shell/sh1");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
#sl_send_reply("404", "Not 
Found");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>shell scrip: sh1<BR>#!/bin/sh<BR><A 
href="mailto:num=200@xx.xx.xx.xx">num=200@xx.xx.xx.xx</A><BR>if [! -z "$num" 
]<BR>then<BR>echo "$*"<BR>else<BR>echo "sip:$num"<BR>fi</FONT></DIV>
<DIV>&nbsp;</DIV><FONT size=2>
<DIV><BR>but it doesn't work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>error message:<BR>ERROR:exec_str: no uri from 
/usr/local/etc/openser/shell/sh1 <A 
href="mailto:XX@xx.xx.xx">XX@xx.xx.xx</A>.....</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can somebody tell me what's wrong with my shell script. <BR>Thank you for 
your response</DIV>
<DIV>&nbsp;</DIV>
<DIV>chungyu<BR>2007/06/4<BR></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV></BODY></HTML>