I’m new with this system (Asterisk). So be nice please. I have to add new phones (grandstream mostly), and I use the asterisk web interface to do so. What is the correct procedure?
Actually if I want to add a new phone, no problem, default password works all the time (admin). But as soon as I want to switch an old phone for another used one I get “error login” when adding this with MAC adress or IP adress.
Normaly a technician should have configured asterisk to push the conf automaticaly without me going into the server. But it’s not working.
When I go into the phone configuration directly I can see that no configuration is pushed, no SIP user/password, no server.
I can still log into the telephone with the default admin password (admin), but I can’t add it using the asterisk web portal.
I have a bunch of phone that I can’t use right now because of that. Does anybody can give me the procedure to add/remove a phone?
How can I retrieve/reset the password? I have access to the CLI, but i’m not really used to it already.
; Auto provision the phone with res_phoneprov
;
;autoprov = yes
;
; Line Keys for hardphone
;
;LINEKEYS = 1
;
; Line number for hardphone
;
;linenumber = 1
;
; Local Caller ID number used with res_phoneprov and Asterisk GUI
;
;cid_number = 6000
;
; Remaining options are not specific to users.conf entries but are general.
;
callwaiting = yes
threewaycalling = yes
callwaitingcallerid = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
callgroup = 1
pickupgroup = 1
;nat = no
;[6000]
;fullname = Joe User
;description = Courtesy Phone In Lobby ; Used to provide a description of the
; peer in console output
;email = joe@foo.bar
;secret = 1234
;dahdichan = 1
;hasvoicemail = yes
;vmsecret = 1234
;hassip = yes
;hasiax = no
;hash323 = no
;hasmanager = no
;callwaiting = no
;context = international
;
; Some administrators choose alphanumeric extensions, but still want their
; users to be reachable by traditional numeric extensions, specified by the
; alternateexts entry.
;
;alternateexts = 7057,3249
;macaddress = 112233445566
;autoprov = yes
;LINEKEYS = 1
;linenumber = 1
;cid_number = 6000
manager.conf has nothing to do with sip peer configuration, but as you are using a GUI I assume it is used by the GUI client. Related to the user.conf file I’ve never used it, but based on the Wiki
The asterisk-gui sets up extensions, SIP/IAX2 peers, and a host of other settings. User-specific settings are stored in users.conf. If the asterisk-gui is not being used, manual entries to users.conf can be made.
The asterisk-gui project is dead, if you are planning to use GUI, try FreePBX
Hello everything is in production, I can’t change it right now. I’m planning to implement FreePBX in the future.
When I want to add a new phone, I’ll search for his mac adress using the GUI, add the phone number, associate to the user and that’s it. It’s working perfectly.
The problem occured when I’m trying to attribute an already registered phone to a new user, or when I restore the phone factory settings. Normaly it should push the SIP configuration from our SIP server. This is what I’ve paid for. But it’s not.
I’m pretty sure it’s not something too complicated. I just don’t know how it works, and I’m pretty much in a big hurry to get this done. Here is a thread that helps me : Wrong password - Registration Failed - #5 by Averell. But how to do that is beyond my knowledge for now. I’m reading all the documentation I can.
That’s a pull request from phone device to (probably) pbx server.
They can do this with tftp network address manually inputted on device or over dhcp via bootp option.
I think you have the first option once your device can’t pull settings after factory reset.