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");
};