Hi,
1) check the return code of dp_translate() and if negative (no
translation rule used), send back negative reply
2) do_routing() return false if the no rule found under the given
routing ID
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 03/21/2013 11:46 PM, M.Khaled W Chehab wrote:
Hi,
1-How to end the call when the destination number match translation
rule prefix and does not match matching string length ,since in this
scenario
The call will still active until the UA cancel the call.
dp_translate("$avp(Cusid)","$rU/$avp(dst)");
2- How to end the call if the customer does not have a matching
routing ID in do_routing("$avp(Cusid)","FW")
dp_translate("$avp(Cusid)","$rU/$avp(dst)");
if (!do_routing("$avp(Cusid)","FW")) {
send_reply("404","No PSTN Route found");
avp_db_query("delete FROM `invites` WHERE
`CALLID` ='$ci'");
exit;
}
Regards
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users