[OpenSER-Users] Local Call

VoIP Forums www.Go4Calls.com go4calls at hotmail.com
Thu Feb 7 13:49:02 CET 2008


I have added curly brackets after each else if but still local call is not working.



Regards, 
www.Go4Calls.Com 
VoIP Forums 

> Date: Thu, 7 Feb 2008 06:11:42 -0500
> From: osas at voipembedded.com
> To: go4calls at hotmail.com
> Subject: Re: [OpenSER-Users] Local Call
> CC: users at lists.openser.org
> 
> Use curly brackets after each "else if" line.
> 
> 
> Regards,
> Ovidiu Sas
> 
> On Feb 7, 2008 5:12 AM, VoIP Forums www. Go4Calls. com
> <go4calls at hotmail.com> wrote:
> >
> >  Hi friends,
> >
> > Could you please help me how i can make dialplan to call local each
> > subscriber using some special prefix?
> >
> > I tried the following but it did not work.
> >
> > if (uri=~"sip:00[1-9][0-9]+ at .*") {
> >                 strip(2);
> >                 rewritehostport("pstncarrier:5060");
> >                 route(1);
> >                 exit;
> > }else if (uri=~"sip:[1-9][0-9]+ at .*")
> >                rewritehostport("pstncarrier:5060");
> >                  route(1);
> >                  exit;
> >
> > }else if (uri=~"sip:01[1-9][0-9]+ at .*")
> >              strip(2);
> >                  if (!lookup("location")) {
> >                         sl_send_reply("404", "Not Found");
> >                         exit;
> >                         };
> >                  route(1);
> >                  exit;
> >
> >  };
> >
> > The first two above condition is working fine but when we trying to call
> > using 01 prefix + subscriber ID the call not going and the message comming
> > 404 Not Found.
> >
> >
> >
> > Regards,
> > www.Go4Calls.Com
> > VoIP Forums
> > ________________________________
> > Express yourself instantly with MSN Messenger! MSN Messenger
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.openser.org
> > http://lists.openser.org/cgi-bin/mailman/listinfo/users
> >
> >

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080207/f621e6c7/attachment.htm>


More information about the sr-users mailing list