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@192.168.0.1")')) {
sl_send_reply("404", "User does not exist");
} else {
sl_send_reply("600", "user exists");
};