SOLVED Digium Phone Installer for Asterisk 11

gob

New Member
Joined
Jan 6, 2012
Messages
7
Reaction score
0
Hi
I am trying to get some Digium D40 handsets working with the green spin of PIAF.

I am unsure whether or not I need to use OSS Endpoint Manager as well as the DPMA module.
I have DPMA and license key registered but the handset cannot find a configuration server when plugged into the same subnet.
Do I need to install mDNS (Avahi)?
If I use Option 66 it looks for a config file on the PBX but there isn't one in TFTPBOOT.

Do I need to install OSS Endpoint Manager to generate the config files or does the mDNS route not need them?

Also, I do not see the additional Digium options under Extensions.

Any assistance would be appreciated.
 

gob

New Member
Joined
Jan 6, 2012
Messages
7
Reaction score
0
thanks for the links.
I have installed OSS, detected my handset and built the config file for it but I am still not seeing any mDNS servers on the network.
Handset reports "no configuration servers available".

The config file has been dropped into TFTPboot but I read in some Digium documentation that the handsets do not support t*f*t*p?
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
Correct. We do HTTP(s), and FTP(s). Thanks for the pointer, briankelly63 to the Provisioning page. Everything should be laid out there.
 

gob

New Member
Joined
Jan 6, 2012
Messages
7
Reaction score
0
think I'm getting my head around it.
Added a link under www/html pointing to /tftpboot , added the HTTP address to my dhcp server and the handset now picks up the config file.
 

gob

New Member
Joined
Jan 6, 2012
Messages
7
Reaction score
0
DPMA just doesn't seem to work on PIAF!
Have tried on Green and Brown flavors.

Yes it will install and load but when you query dpma via CLI the settings do not match those configured through the FreePBX gui. Nor will a Digium hadset see the server, either using mDNS or Option 66 ("sip:[email protected]:5060")

It will work using OSS Endpoint Manager using config files and option 66 with an HTTP address but that's not DPMA.
I have just spun up Asterisk NOW 3.0 and within 5 mins my handsets could see the server via mDNS and can use all of the DPMA features.
I have spent 2 days and 6 clean installs trying to acheive that with PIAF :(
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
Trouble on green for me as well, but it was installing the module in the first place via install-digiphones. But, afaik, it's on us (Digium) to provide a -current link to Ward, so he can set it and forget it, before I'd be asking for any bandaids.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
gob: Can you document the steps that you're going through to install this when it fails? Is it the updated script provided here or some other procedure? Did you search the forum for DPMA before opening this thread??

NOTE: If you're using install-digiphones that is rolled into the ISO, that will fail 100% of the time and is the reason we put out an interim patch named install-digphones. You will note the two scripts have DIFFERENT NAMES! We're holding off on updating the built-in script until Digium and malcolmd release the permanent fix. As far as I know, the interim fix works just fine. :leaving:

Here is the PERMANENT, FIXED RELEASE. Thanks, malcolmd!

Code:
cd /root
wget http://incrediblepbx.com/install-digphones.tar.gz
tar zxvf install-digphones.tar.gz
./install-digphones
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
I can document the manual procedure.

1. Get res_digium_phone appropriate for your platform from http://downloads.digium.com/pub/telephony/res_digium_phone/. There are directories for Asterisk 1.8-cert (asterisk-1.8.11), Asterisk-10-digiumphones (asterisk-10.0) and Asterisk 11 (asterisk-11.0). Each directory contains a bitness subdirectory (x86-32 for 32-bit systems and x86-64 for 64-bit systems). Inside the bitness sub, you'll find the tarballs themselves. Grab the highest versioned one (currently 1.6.0).
e.g.
wget http://downloads.digium.com/pub/tel...-64/res_digium_phone-11.0_1.6.0-x86_64.tar.gz

2. Unpack it. It'll have several files (CHANGES, LICENSE, README, res_digium_phone.conf.sample,
res_digium_phone.so, and UPGRADE.txt).
e.g.
tar -zxvf res_digium_phone-11.0_1.6.0-x86_64.tar.gz

3. Now, we'll copy the binary itself into the Asterisk modules directory.
e.g.
cp res_digium_phone-11.0_1.6.0-x86_64/res_digium_phone.so /usr/lib/asterisk/modules

4. Get a key (it's free) for DPMA from http://www.digium.com/en/products/software/digium-phone-module-for-asterisk
You'll get an e-mail in your inbox with a key like DPMA-ABC123ETC. You'll need that.

5. Download the register utility (to register DPMA) from:
http://downloads.digium.com/pub/register/
You'll see subs for x86-32 and x86-64. Choose the one that's appropriate for your system. Inside the sub, you'll see the "register" binary. Download it.
e.g.
wget http://downloads.digium.com/pub/register/x86-64/register

6. Mark the register utility executable
chmod a+x register

7. Run the register utility.
./register
Choose 1 - Digium Products
Choose 11 - Digium Phone Module for Asterisk
plug in the key you got earlier in your e-mail along with the required information that it asks for in order to perform the registration. If everything went well, you'll see "Wrote license to /var/lib/asterisk/licenses/DPMA-ABC123ETC.lic"

8. Now, log onto the Asterisk CLI and load the res_digium_phone module to make sure. You'll probably see a number of WARNINGs. It's okay. Don't panic.
asterisk -vvvr
asterisk-cli> module load res_digium_phone.so

9. Check your license status from the Asterisk CLI to make sure things are a-okay:
asterisk-cli> digium_phones license status
You should see:
OK, Valid product license found
If you don't, ring up our Support people (http://www.digium.com/support)

10. Back out out of the Asterisk CLI
asterisk-CLI> quit

11. Download the Digium Phones addon for FreePBX from http://downloads.asterisk.org/pub/telephony/freepbx/modules/release/2.10/. It works with 2.11, don't worry.
e.g.
wget http://downloads.asterisk.org/pub/telephony/freepbx/modules/release/2.10/digium_phones-current.tgz

12. Unpack it.
e.g.
tar -zxvf digium_phones-current.tgz

13. Take the contents and drop them into the FreePBX modules directory.
e.g.
mv digium_phones /var/www/html/admin/modules

14. Set the permissions properly so that the addon tool can write files for firmware, logos, apps, etc.
e.g.
chown -R asterisk:asterisk /var/www/html/admin/modules/digium_phones

15. Visit your FreePBX modules admin page under Admin -> Module Admin. You'll see "Digium Phones Config" under Connectivity.

16. Install it, then Apply config (red button).

17. Visit the Digium Phones addon under the Connectivity drop-down menu. You'll see the red button again. Press it.

18. You're all set.
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
Gimmie a bit and I'll try the updated script and will see / report what happens...
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
install-digphones gave me the same problem that gob experienced. Weird...more digging tomorrow
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
Sorry. I'd try to help but I'm in Bumfork, NC where the tin can and string still rulez.
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
Got it. There's some kind of permissions issue when doing install-digphones. The files that got created in /etc/asterisk, the res_digium_xyz files, ended up with root:root permissions instead of asterisk:asterisk permissions. So, gob, that should fix you up.
 

malcolmd

Guru
Joined
Aug 12, 2010
Messages
101
Reaction score
7
No, thank you :)

There's one minor ticky-tack thing still - the res_digium_phone.conf link to /var/www/html/admin/modules/digium_phones/etc/res_digium_phone.conf is root:root. It *should* be asterisk:asterisk also, but it probably won't affect anyone (until we need to add an additional #include..no plans at the current time, so no near-term danger).
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
malcolmd: We just chown'd everything we could find which should catch it:
Code:
chown -R asterisk:asterisk /var/www/html/admin/modules/digium_phones
chown asterisk:asterisk /etc/asterisk/res_digium*
 

Members online

No members online now.

Forum statistics

Threads
25,819
Messages
167,800
Members
19,247
Latest member
abuhyder
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top