[Serusers] REGISTER, auth & INVITE
Andrei Pelinescu-Onciul
andrei at iptel.org
Wed Jun 8 22:05:47 CEST 2005
On Jun 08, 2005 at 17:12, Lol Zimmerli <lolzim at worldcom.ch> wrote:
> Hello,
>
> Lol Zimmerli <lolzim at worldcom.ch> ?crit/wrote:
> > I then tried something like this:
> > if (method=="INVITE"){
> > if (src_ip != "212.xxx.xxx.xxx"){
> > if (!www_authorize("domain.com", "subscriber")) {
> > www_challenge("domain.com", "1");
> > break;
> > };
> > };
> > else{
> > route(1);
> > };
> > };
>
> After reading more doc, I found proxy_*() functions, but this:
Yes, proxy_*() are better for authenticating non-REGISTERs (they are
"more" correct).
> if (method=="INVITE"){
> if (src_ip != "212.xxx.xxx.xxx"){
> if (!proxy_authorize("domain.com", "subscriber")) {
> proxy_challenge("domain.com", "1");
> break;
> };
> };
^^^ - try removing it
> else{
> route(1);
> };
> };
>
> Fails also:
> Starting SIP Express Router ERROR: bad config file (6 errors)
> startproc: exit status of parent of /usr/local/sbin/ser: 255
To check for config errors run: ser -f ser.cfg, or look in the log
(you'll have more verbose reasons there).
Andrei
More information about the sr-users
mailing list