[Users] Using # for Sip 2 Sip calls

Kenny Chua strain15 at yahoo.com
Thu Jun 29 04:55:37 CEST 2006


Hello, I was wondering how to set my dialing plans to use # only for Sip 2 Sip calls. A user has to press the # sign if he wants to call another sip number, and just dial normally for PSTN calls?
 
 I came up with something like this: 
     lookup("aliases");
     if (uri=~"^sip:#[0-9]*@"){
         xlog("Sip 2 SIP\n");
         route(4);
         route(1);
         return;
     };
 
 Which of course don't work. So I'll need help. I know its possible to use 9 for PSTN calls, but I'm sure that you can use # for Sip 2 Sip. Please help me out here. Thank you.
 
 		
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20060628/c49e0701/attachment.htm 


More information about the Users mailing list