Seems to me like it is doing the stripping right, I changed the pseudo-variables to:<br><br><br> if (uri=~"^sip:7777"){<br> xlog("L_NOTICE", "\n************** GOT CALL FOR IN-SITE ('$oU') ************\n");<br>
strip(4);<br> xlog("L_NOTICE", "\n************** Changing dialed number (Removing 7777) ('$rU') **************\n");<br><br><br> if (!lookup("location")) {<br>
sl_send_reply("404", "User Not Online! (In 7777 route)");<br> exit;<br> };<br> route(1);<br> }<br><br>
and on the log i get:<br><br>Jun 23 07:39:34 sip99 /sbin/openser[24245]: ************** GOT CALL FOR IN-SITE ('77778889990') ************ <br>Jun 23 07:39:34 sip99 /sbin/openser[24245]: ************** Changing dialed number (Removing 7777) ('8889990') ************** <br>
<br><br>but it is not find the user...<br>I've got<br><br>use_domain set to 0<br><br><br>any ideas?<br><br><br><div class="gmail_quote">On Mon, Jun 23, 2008 at 1:51 PM, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I've got this route, but openser is not finding the user, I get the call as 7777XXXXXXX. So i strip 4 digits and do a lookup, the user IS online but openser says it can't find him... Could it be that openser is not striping right?<br>
<br><br> if (uri=~"^sip:7777"){<br> xlog("L_NOTICE", "\n************** GOT CALL FOR IN-SITE ('$tu') ************\n");<br> strip(4);<br>
xlog("L_NOTICE", "\n************** Changing dialed number (Removing 7777) ('$tu') **************\n");<br><br><br> if (!lookup("location")) {<br>
sl_send_reply("404", "User Not Online! (In 7777 route)");<br> exit;<br> };<br> route(1);<br> }<br><br>
<br>thanks<br><font color="#888888"><br>d<br>
</font></blockquote></div><br>