[OpenSER-Users] strip

David Villasmil david.villasmil.work at gmail.com
Mon Jun 23 13:51:16 CEST 2008


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?


               if (uri=~"^sip:7777"){
                    xlog("L_NOTICE", "\n************** GOT CALL FOR IN-SITE
('$tu') ************\n");
                    strip(4);
                    xlog("L_NOTICE", "\n************** Changing dialed
number (Removing 7777) ('$tu') **************\n");


                    if (!lookup("location")) {
                         sl_send_reply("404", "User Not Online! (In 7777
route)");
                         exit;
                    };
                    route(1);
               }


thanks

d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080623/7f1aa10e/attachment-0001.htm 


More information about the Users mailing list