Re: [OpenSIPS-Users] www_authorize

2014-02-05 Thread Bogdan-Andrei Iancu
Hello, Printing in script the return code of the www_authorize function will give you a clue why the auth failed (see http://www.opensips.org/html/docs/modules/1.10.x/auth_db.html#id250137). Keep in mind that auth are per SIP request (each must be individually authenticated) and the auth non

Re: [OpenSIPS-Users] www_authorize

2014-02-04 Thread bluerain
Ya, that is what I thought, but I was wondering if there is a way to just have the opensips validate on first try because first registration SIP already have the username and password. The reason I ask is that it seems something it will take more then 2 try for opensips to reply a 200OK. So here

[OpenSIPS-Users] www_authorize

2014-02-04 Thread bluerain
Why is it that when I use this function call on registration and opensips will always reject the first registration request and then on the second one it will sent back 200OK? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/www-authorize-tp7589427.html Sen

Re: [OpenSIPS-Users] www_authorize

2014-02-04 Thread Vincent DOCQUOIS
http://tools.ietf.org/id/draft-ietf-sip-call-flows-05.txt Chapter 2.1 Vincent Le 4 févr. 2014 à 17:46, bluerain a écrit : > Why is it that when I use this function call on registration and opensips > will always reject the first registration request and then on the second one > it will sent ba

Re: [OpenSIPS-Users] www_authorize return codes

2010-07-07 Thread Bruce Borrett
Thank you Bogdan... It is working now. From: Bogdan-Andrei Iancu To: OpenSIPS users mailling list Sent: Wed, 7 July, 2010 9:35:46 Subject: Re: [OpenSIPS-Users] www_authorize return codes Hi Bruce, There is a small typo in the script (also the one I sent

Re: [OpenSIPS-Users] www_authorize return codes

2010-07-07 Thread Bogdan-Andrei Iancu
tch: running default statement > Jul 7 07:19:11 rambo /usr/sbin/opensips[20498]: Default > > So I guess -4 is being returned but it is still using default for some > reason..? > > Thanks again Bogdan. > > Regards, > Bruce > > > > > > > -

Re: [OpenSIPS-Users] www_authorize return codes

2010-07-06 Thread Bruce Borrett
using default for some reason..? Thanks again Bogdan. Regards, Bruce From: Bogdan-Andrei Iancu To: OpenSIPS users mailling list Sent: Tue, 6 July, 2010 22:40:45 Subject: Re: [OpenSIPS-Users] www_authorize return codes The script is a bit buggy just

Re: [OpenSIPS-Users] www_authorize return codes

2010-07-06 Thread Bogdan-Andrei Iancu
case -2: > xlog("L_INFO","Wrong password"); > break; > case -1: > xlog("L_INFO","User doesnt exist"); > break; > def

Re: [OpenSIPS-Users] www_authorize return codes

2010-07-06 Thread Bruce Borrett
O","Default"); } } Thanks, Bruce ____ From: Bogdan-Andrei Iancu To: OpenSIPS users mailling list Sent: Tue, 6 July, 2010 20:13:03 Subject: Re: [OpenSIPS-Users] www_authorize return codes Hi Bruce, no, they did not change. P

Re: [OpenSIPS-Users] www_authorize return codes

2010-07-06 Thread Bogdan-Andrei Iancu
Hi Bruce, no, they did not change. Post your switch to see if correct or not. Regards, Bogdan Bruce Borrett wrote: > Hi all > > I cant get switch to catch any return codes for www_authorize. The > default catch works, but -5 through -1 as stated in the docs do not > work, I also tried positive

[OpenSIPS-Users] www_authorize return codes

2010-07-06 Thread Bruce Borrett
Hi all I cant get switch to catch any return codes for www_authorize. The default catch works, but -5 through -1 as stated in the docs do not work, I also tried positive 1 through 5... Have these codes changed? Thanks in advance.. Regards, Bruce ___

Re: [OpenSIPS-Users] www_authorize return code

2010-01-20 Thread Bogdan-Andrei Iancu
Hi Jayesh, $retcode gives the return code of the LAST command you run in script. I your case that is "log()" which is always true :DYou need to test the $retcode value just after the pv_www_authorize(), otherwise you will loose it. Regards, Bogdan Jayesh Nambiar wrote: > Hello All, > I wa

[OpenSIPS-Users] www_authorize return code

2010-01-20 Thread Jayesh Nambiar
Hello All, I want to take my logic to a different route when authorize fails because of an invalid password. Ideally the www_authorize should return -2 when it fails because of invalid password. But the return code stays as 1 only every time, even if the auth fails or auth succeeds. I check the ret