Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-08, 07:35 AM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Aastra Plug-and-Play Phones
After recently enduring almost an hour of the trixbox sales pitch for phones that get auto-detected and provisioned when you plug them into your commercial PBX, Nerd Vittles has embarked upon building the same functionality for Aastra phones with PBX in a Flash and, yes, even other Asterisk-compatible LAMP distributions.

So here is a brief summary of how we envision this would work. If there is something we've missed or something you think would be a worthy addition, please chime in... soon!

Prerequisites: With PBX in a Flash, you're all set. With other distributions, you'll need a recent version of FreePBX, PHP, curl, dhcpd, tftp, and the other usual CentOS utilities.

How It Works:
The design assumes you're using PBX in a Flash behind a router/firewall on a private network. You'll need to turn off the DHCP server on your router/firewall and use the one in PBX in a Flash because we need its functionality to hand out the location of the tftp server as part of the DHCP lease process. We'll walk you through how to set this up. See also our original article on setting up the Aastra 57i. It explains how to get tftp working on your system as well.

Once dhcpd and tftpd are running on your server, then there will be a PHP script that gets run each minute or two to check for new DHCP leases. So... someone plugs in an Aastra phone. When the program detects that a new lease has been handed out, it will check to see if the MAC address matches the Aastra phone MAC address profile. Then it will check to see if an existing config file exists for this MAC address. This will tell it whether a new Aastra phone has been plugged into the private network.

When a new phone is detected, the program will create a new extension with voicemail for that phone using some code from Philippe Lindheimer of FreePBX fame. Then it will generate a MAC address-specific Aastra config file assigning this new extension to the phone. Then it will reboot the phone to force a load of the new config file settings.

And, presto, we have a plug-and-play Aastra phone in about a minute.

Last edited by wardmundy : 04-20-08 at 07:46 AM.
Reply With Quote
  #2  
Old 04-20-08, 11:10 AM
grumpy grumpy is offline
Senior Member
 
Join Date: Mar 2008
Posts: 123
How It Works:

For hosted PBX?

My 57i will be in tomorrow. Please tell me there is an easy way.
Reply With Quote
  #3  
Old 04-20-08, 12:01 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Oooh, sorry. Hosted won't work unless the phone is going to be registered with DHCP on the hosted server which isn't likely. Remember, this setup will require a private network with a DHCP server behind a hardware-based firewall/router.

Actually setting up Aastra phones for remote access is very easy through the web interface on the phone. Stun is NOT required. In addition to the usual settings...

Just enter the NAT IP address (outside address of your hosted server) in Network settings. And remember, this IP address cannot be a FQDN, i.e. it has to be numbers.
Reply With Quote
  #4  
Old 04-20-08, 05:09 PM
andygee andygee is offline
Member
 
Join Date: Oct 2007
Posts: 93
Would the same not also be possible with other DHCP servers as long as you set the tftp to the piaf box?

Andy
Reply With Quote
  #5  
Old 04-20-08, 06:25 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Only if your DHCP server supports Option umpty-ump or Option umpty-ump depending upon the type of phone. Tom will fill in the umpty-ump's.
Reply With Quote
  #6  
Old 04-20-08, 08:06 PM
andygee andygee is offline
Member
 
Join Date: Oct 2007
Posts: 93
Originally Posted by wardmundy View Post
Only if your DHCP server supports Option umpty-ump or Option umpty-ump depending upon the type of phone. Tom will fill in the umpty-ump's.
Option 66?
Reply With Quote
  #7  
Old 04-21-08, 05:04 AM
mat.phillips mat.phillips is offline
Member
 
Join Date: Mar 2008
Posts: 56
This provisioning is pretty standard and is well documented in Aastras own guides. That said, it is nice to have.

I run a windows 2003 domain and one of the Windows servers runs the DCHP service, it works just fine with the aastra phones, (and polycom etc) I have option 66 in the Scope Options set to the IP address of the TFTP server holding the configs (the PiaF server in this instance) To make the polycom's happy, you need to set option 150 also.
Reply With Quote
  #8  
Old 04-21-08, 05:17 AM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Originally Posted by mat.phillips View Post
This provisioning is pretty standard and is well documented in Aastras own guides. That said, it is nice to have.
We're actually going a step beyond provisioning. The new software will actually generate extensions in FreePBX and assign them to your new phones, hence the catchy name Plug-and-Play. It also adds a DHCP reservation for the assigned IP address so you can track them all down in one place. But all of this Magic™ does require that you use the PBX in a Flash system as your DHCP server.
Reply With Quote
  #9  
Old 04-21-08, 12:50 PM
foneman foneman is offline
Guru
 
Join Date: Oct 2007
Location: Tennessee
Posts: 296
Wow
This is very exciting stuff. I am anxiously awaiting this for sure.
__________________
Authorized PiAF Distributor

Reply With Quote
  #10  
Old 04-21-08, 04:07 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Nerd Vittles introduces Plug-and-Play Aastra Phones for Asterisk and FreePBX...

http://nerdvittles.com/index.php?p=212

Last edited by wardmundy : 04-22-08 at 04:14 AM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:00 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates