[OpenSIPS-Users] Translation Matching String Length/Roules Matching groupid
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Mar 25 18:18:58 CET 2013
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130325/a3c520c4/attachment.htm>
More information about the Users
mailing list