[OpenSIPS-Users] Translation Matching String Length/Roules Matching groupid

M.Khaled W Chehab kchehab at icucall.com
Thu Mar 21 22:46:44 CET 2013


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130321/cd663ae5/attachment.htm>


More information about the Users mailing list