Asterisk Project : Phone Provisioning, Putting it all together

Make sure that manager.conf has:

[general]
enabled = yes
webenabled = yes

and that http.conf has:

[general]
enabled = yes
bindaddr = 192.168.1.1 ; Your IP here
bindport = 8088 ; Or port 80 if it is the only http server running on the machine

With phoneprov.conf and users.conf in place, start Astersik. From the CLI, type "http show status". An example output:

HTTP Server Status: 
Prefix: /asterisk 
Server Enabled and Bound to 192.168.1.1:8088 

Enabled URI's:
/asterisk/httpstatus => Asterisk HTTP General Status
/asterisk/phoneprov/... => Asterisk HTTP Phone Provisioning Tool
/asterisk/manager => HTML Manager Event Interface 
/asterisk/rawman => Raw HTTP Manager Event Interface 
/asterisk/static/... => Asterisk HTTP Static Delivery 
/asterisk/mxml => XML Manager Event Interface 
Enabled Redirects: 
 None. 
POST mappings:
 None.

There should be a phoneprov URI listed. Next, from the CLI, type "phoneprov show routes" and verify that the information there is correct. An example output for Polycom phones woud look like:

Static routes

Relative URI Physical location
sip.ver configs/sip.ver
sip.ld configs/sip.ld
bootrom.ver configs/bootrom.ver
sip.cfg configs/sip.cfg
bootrom.ld configs/bootrom.ld
custom.cfg configs/custom.cfg
Dynamic routes
Relative URI Template
deadbeef4dad.cfg 000000000000.cfg
deadbeef4dad-directory.xml
000000000000-directory.xml
deadbeef4dad-phone.cfg
000000000000-phone.cfg
config/deadbeef4dad polycom.xml

With the above examples, the phones would be pointed to:

http://192.168.1.1:8080/asterisk/phoneprov

for pulling config files.

Templates would all be placed in AST_DATA_DIR/phoneprov and static files would be placed in AST_DATA_DIR/phoneprov/configs. Examples of valid URIs would be:

Attachments:

list.html (text/html)
list.html (text/html)

Comments:

I made a complete demonstration for the res_phoneprov on the issues.asterisk.org that may be a good demonstration of how things work. It will also show users of phones like the snom series about building complex config files for single file provisioning.

Posted by lathama at Dec 25, 2010 12:56

Drop that demonstration into your personal space here on the Wiki and ping Leif, Russell or myself and we'll get it moved into the mainline content - we'll have something going in the future to make this easier. (big grin)

Posted by mdavenport at Jan 03, 2011 14:38

Cool, I (we cjacobsen) have hacked up some more stuff like this so I will get it all in order on the ticket too.

Posted by lathama at Jan 03, 2011 14:44

Cool (smile)

Posted by mdavenport at Jan 04, 2011 09:20

Added as an attachment the user list.html file. I think it will take me some time to learn how to use Confluence. I have a history with mediawiki.

Posted by lathama at Sep 06, 2011 14:43

Very low learning curve for Confluence. Ping us on IRC if you run into any trouble.

Posted by mdavenport at Sep 06, 2011 16:00