My Request URI is something like  <sip:+12065555555> sip:+12065555555.....

 

However if I create a rule in dr_rules with prefix "+12065555555", while
loading the rules to memory drmodule seems to be dropping those rows as it
contains non-numeric chars.

 

Currently I am doing something like the following (Strip + before do_routing
and add it back )

 

if($rU =~ "^[+].*" )

  {

    strip(1);

    if (!do_routing()) 

    {

      send_reply("503", "No Rules matching the URI");

      exit;

    }

    prefix("+");

  }

 

Just wondering if there is a reason not to allow non-numeric chars  in
prefix column of dr_rules ?

 

 

 

 

 

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to