|
authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 7
|
|
I added the 4th step here and it broke the authentication for Reminders. I want to be able to have internal users auth by their VM, as in step 3, and let outside users auth by a simple password, as in step 4. I see on my tail that it uses the caller ID of my cell as a user: VERBOSE[20887] logger.c: -- Incorrect password '1234' for user '1xxxxxxxxxx' (context = default)
Is there a way to use both methods to auth Reminders?
[from-internal-custom]
exten => 123,1,Answer
exten => 123,2,Wait(1)
exten => 123,3,vmauthenticate(${CALLERID(number)})
exten => 123,4,Authenticate(1234)
exten => 123,5,Goto(reminder,s,1)
|
|
|
|
|
|
|
Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 156
|
|
|
|
|
|
Last Edit: 2011/02/25 21:20 By dicko.
There are other solutions!!
|
|
|
Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 7
|
|
I'd like to start out with a simple password file. Authenticate(/passwdfile|[,options[,maxdigits]])
in /etc I did vi reminderspasswords
and put 4 lines of 4-digit passwords and saved
then did what you see below and amportal restart. I don't seem to be hitting the password file. Where should that be kept? I see passwd in /etc, but it doesn't seem like adding to that is a good idea.
[from-internal-custom]
exten => 123,1,Answer
exten => 123,2,Wait(1)
;exten => 123,3,vmauthenticate(${CALLERID(number)})
exten => 123,3,Authenticate(/reminderspasswords)
exten => 123,4,Goto(reminder,s,1)
Thank you.
|
|
|
|
|
|
|
Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 156
|
|
The asterisk home directory is /var/lib/asterisk
|
|
|
|
There are other solutions!!
|
|
|
Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 7
|
little lost. I put a file in /var/lib/asterisk called passwords and changed ownership to asterisk asterisk. Put a single line of 1234. Called that file out in extensions_custom.conf
[from-internal-custom]
exten => 123,1,Answer
exten => 123,2,Wait(1)
;exten => 123,3,vmauthenticate(${CALLERID(number)})
exten => 123,3,Authenticate(/passwords)
exten => 123,4,Goto(reminder,s,1)
Still doesn't work. Spent a lot of time going over all the links at www.voip-info.org/wiki/view/Asterisk+cmd+Authenticate
I assume that Authenticate(/<filename>) would look up whatever is in "filename." What am I doing wrong? Tried twice to reg to the pbxinaflash forum. Their mod does not authenticate you. ???
Thanks.
|
|
|
|
|
|
|
Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 117
|
|
sorry guys the authentication files for pin sets ned to be saved in etc/asterisk...
|
|
|
|
|
|
|
Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 7
|
|
fm, dicko,
I put a file in /etc/asterisk/ called passwords. It has asterisk:asterisk ownership
dialing 123 hangs up when I have exten => 123,3,Authenticate(/passwords) or exten => 123,3,Authenticate/passwords
I put a file in /etc/asterisk/ called passwords. It has asterisk:asterisk ownership
dialing 123 hangs up when I have exten => 123,3,Authenticate(/passwords) or exten => 123,3,Authenticate/passwords
[from-internal-custom]
exten => 123,1,Answer
exten => 123,2,Wait(1)
;exten => 123,3,vmauthenticate(${CALLERID(number)})
exten => 123,3,Authenticate(/passwords)
exten => 123,4,Goto(reminder,s,1)
I want the Authenticate to take a password from a file. Any help? Thanks.
|
|
|
|
|
|
|
Re: Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 117
|
|
i have my passwords files in /tc/asterisk named pins and works perfect
exten=> 123,1,Authenticate(pins)
|
|
|
|
|
|
|
Re: Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 7
|
|
in /etc/asterisk/
-rw-rw-r-- 1 asterisk asterisk 15 Mar 4 16:25 passwords
inside passwords
1234
5678
9876
in extensions_custom.conf
[from-internal-custom]
;exten => 123,1,Answer
;exten => 123,2,Wait(1)
;exten => 123,3,vmauthenticate(${CALLERID(number)})
exten => 123,1,Authenticate(passwords)
exten => 123,2,Goto(reminder,s,1)
She answers but tells me my password is incorrect. I do an amportal restart after every change to extensions_custom.conf
?
|
|
|
|
|
|
|
Re: Re:authenticate external and internal users/reminders 2 Years, 3 Months ago
|
Karma: 117
|
www.voip-info.org/wiki/view/Asterisk+cmd+Authenticate
i was having a long time ago a bug in asterisk # as send key for this type of apps...1.4.33 i think...and it was repetead in 1.6.2.17 as of today...the solution was to wait after the enter of the password without pressing # and worked...
|
|
|
|
|
|
|