[Serusers] exec_msg
M.I. Deen
deen at slt.lk
Sun Mar 14 07:29:01 CET 2004
Hi,
I am trying to create an external script using exec_msg, such that the request uri is written based on the SIP_HF_FROM. I have appended this below. Is it possible to have a rewriteuri within an exec_msg. Please give your comments on the script below.
Deen
if (!exec_msg('
QUERY="select ouser from subscriber1
where user=\"$SIP_HF_FROM\"";
OUSER1=`mysql -Bsuser -pheslo -e "$QUERY" ser`;
Rewriteuri("sip:$OUSER1 at 192.168.0.1")')) {
sl_send_reply("404", "User does not exist");
} else {
sl_send_reply("600", "user exists");
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20040314/3c86f595/attachment.htm>
More information about the sr-users
mailing list