Auto provisioning on non-hosted Kazoo

443 views
Skip to first unread message

ALMA

unread,
Feb 3, 2016, 11:00:49 AM2/3/16
to 2600hz-dev
Hello,

I've a single server kazoo and all works.
I would like to know how to setup the auto provisioning with Kazoo. I've seen this page https://2600hz.atlassian.net/wiki/pages/viewpage.action?pageId=27066376 but in my own Kazoo-platform, which url do I have to insert?
And also: in the page "edit/new sip device", I don't see "*model name* [customize]" fields because I haven't setted the API url for provisioning (monster-ui/js/config.js > api.provisioner).
Which url do I have to set? If I write my default url for api, it doesn't work (API not found).

Thank you

Sky Mime

unread,
Feb 3, 2016, 5:13:05 PM2/3/16
to 2600hz-dev
There is a community solution https://github.com/urueedi/kazoo-provision that works with monster-ui and read carefully the README

Sky

JesusTovar

unread,
Feb 17, 2016, 4:36:07 AM2/17/16
to 2600hz-dev

Hi, 
I finally got  this somehow working on Monster-ui, however, when I click on Add new SIP Device nothing happens . By checking the logs in the webserver I found it is looking for a folder called "phones"


File does not exist: /var/www/html/provisioner/phones
"GET /provisioner/phones?_=1455688988359 HTTP/1.1" 404 296


"phones" is not part of the folders in this repo. is there something missing? Can you please give me some clues?.

ALMA

unread,
Feb 26, 2016, 5:15:04 PM2/26/16
to 2600hz-dev
Have you installed correctly this? https://github.com/urueedi/kazoo-provision
I've installed it but not all works (now I think yes because the developer has committed new updates) so I've customized the code and now work; I've made some scripts for generating the provisioning file dinamically without save the .cfg file (one script for each brand).
The script simply print in the body of the packets the cfg file generated retrieving data from CouchDB; for doing this, I've created a database where is the association mac-account and a view for retrieving all the info of device by mac, so I can do simply "GET couchdb.kazoo/account/views/getByMac?key=MACADDRESS". But actually works only for one SIP line per device and only in HTTP, not TFTP. In case of TFTP I think that you must generate the configuration file when device is saved.
In pratic, I'm using the community solution only for showing the GUI; it have the APIs for requesting devices and it shows they on the "SmartPBX" app or lists they on "Callflow > Devices".
P.S. MAC is case-sensitive so if the user write "Ab:cD:Ef:GH..." but you try to retrieve the device with mac "ABCDEFGH", CouchDB doesn't find the device. So you have to edit opt/kazoo/crossbar/src/modules_v2/cb_devices_v2.erl" in a way that the MAC is saved in lower or upper case.
Reply all
Reply to author
Forward
0 new messages