Re: [asterisk-users] Point a Digium phone to a configuration URL using mDNS without DPMA or DHCP option 66

2013-02-28 Thread A J Stiles
On Wednesday 27 February 2013, Alex Villací­s Lasso wrote:
 I have the following scenario. A small network has DHCP but does not
 publish option 66. An Asterisk server is on the network, but the Asterisk
 version does not support DPMA and it is hard to switch the version.
 However, there is a possibility to have a web server and an mDNS (Avahi)
 server. I have been reading about provisioning Digium phones without DPMA,
 and it mentions that option 66 can specify the URL prefix to use for the
 XML configuration. Is there a way to specify the same through Avahi mDNS?
 Something along the lines of this (of course this does not work, but gives
 an idea of what I am looking for):

DPMA is proprietary and toxic, so you are quite right not to use it.

If you add a line like
options tftp-server-name 10.0.0.145
to your DHCP server's /etc/dhcp/dhcpd.conf , then this will give you the 
option 66 you need. And note that even although it's advertised as a TFTP 
server, the Digium phones actually put out a HTTP request aot a TFTP request  
(that took some head-scratching to figure out).  So you will need to have 
Apache running on 10.0.0.145; and a bunch of configuration files named like
000fd300.cfg
where the digits of the filename are the MAC address of the phone, in the web 
server's default document root  (/var/www/ on Debian systems).

-- 
AJS

Answers come *after* questions.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Point a Digium phone to a configuration URL using mDNS without DPMA or DHCP option 66

2013-02-28 Thread Alex Villací­s Lasso

El 28/02/13 08:40, A J Stiles escribió:

On Wednesday 27 February 2013, Alex Villací­s Lasso wrote:

I have the following scenario. A small network has DHCP but does not
publish option 66. An Asterisk server is on the network, but the Asterisk
version does not support DPMA and it is hard to switch the version.
However, there is a possibility to have a web server and an mDNS (Avahi)
server. I have been reading about provisioning Digium phones without DPMA,
and it mentions that option 66 can specify the URL prefix to use for the
XML configuration. Is there a way to specify the same through Avahi mDNS?
Something along the lines of this (of course this does not work, but gives
an idea of what I am looking for):

DPMA is proprietary and toxic, so you are quite right not to use it.

If you add a line like
options tftp-server-name 10.0.0.145
to your DHCP server's /etc/dhcp/dhcpd.conf , then this will give you the
option 66 you need. And note that even although it's advertised as a TFTP
server, the Digium phones actually put out a HTTP request aot a TFTP request
(that took some head-scratching to figure out).  So you will need to have
Apache running on 10.0.0.145; and a bunch of configuration files named like
000fd300.cfg
where the digits of the filename are the MAC address of the phone, in the web
server's default document root  (/var/www/ on Debian systems).

I forgot to point out that in my scenario, I may not have any administrative control over the DHCP server. Otherwise, the way you indicate would be obvious. Anyway, I received an email saying that mDNS cannot support pointing a Digium phone to anything 
other than a DPMA-enabled Asterisk.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Point a Digium phone to a configuration URL using mDNS without DPMA or DHCP option 66

2013-02-27 Thread Alex Villací­s Lasso
I have the following scenario. A small network has DHCP but does not publish option 66. An Asterisk server is on the network, but the Asterisk version does not support DPMA and it is hard to switch the version. However, there is a possibility to have a web 
server and an mDNS (Avahi) server. I have been reading about provisioning Digium phones without DPMA, and it mentions that option 66 can specify the URL prefix to use for the XML configuration. Is there a way to specify the same through Avahi mDNS? 
Something along the lines of this (of course this does not work, but gives an idea of what I am looking for):


?xml version=1.0 standalone='no'?
!DOCTYPE service-group SYSTEM avahi-service.dtd
service-group
nameDigium Phone Configuration Server/name
service
type_digiumproxy._udp/type
port443/port
txt-recordconfig_server_url=https://10.0.0.145/provisioning_scripts/http_provisioning.php?authhash=Xamp;filename=/txt-record
txt-recordserviceType=configuration/txt-record
/service
/service-group

I want the phone to request 
https://10.0.0.145/provisioning_scripts/http_provisioning.php?authhash=Xamp;filename=/001915abcdef.cfg;.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users