Archive for the ‘Asterisk’ Category
Digium D40 and D70 Phone Unboxing
Today I received a couple of phones from Digium; the D40 and D70. I’ll be using these phones for testing and documentation in the 4th edition of Asterisk: The Definitive Guide (which Jim Van Meggelen, Russell Bryant and myself are working on right now).
Here is my unboxing of the phones and some commentary about my initial impressions of the hardware itself.
Phones arrived in some nice looking boxes.
Digium D40
Comes with a little pamphlet to help you get the phones setup on your network.


Comes with all the little things you need to get the phone up and running, including a network cable. I was just using POE to power the phone, so I didn’t end up with the 5VDC power adapter.

Nice looking base. Easy to put onto the phone. Just uses friction to hold the phones on the base. Not sure how well that’ll work over time, but this isn’t something that should be getting attached and detached a lot. The space for cables in the base is also quite large.

Holes to mount to wall. Requires adapter.
Lots of space for my hand to plug in cables. Much nicer than any of the Polycom bases where I usually give up and just remove it.
Booting up with the Digium logo.
The tab on the back here is well designed so that you don’t require a tool to pull out and flip around. I prefer to have the hook for the handset so it doesn’t fall off the base easily. On the Polycoms (which have the same type of setup) it’s nearly impossible to remove with your fingers
.Size comparison between the D40 and IP335.
Digium D70
I don’t quite get the base with the wall mount holes, but impossible mounting angles on the base. Must have something to do with the manufacturing process and not having separate molds for footing.
Update: Michael pointed out that the A-frame is actually two separate pieces, so with a (separately purchased) piece, you can attach it to the base and make the system wall mountable. With the number of phones I’ve actually wall mounted in deployments (I think the number is only one or two), I think I prefer the 2 options for steep and shallow angles. Neat idea.

Side cut outs for cables that I didn’t even notice the first time through. Michael pointed out they are for cable management. Nice!
Oh my! So much space! Very roomy ![]()
Side by side comparison of the D70 vs the IP650 w/ sidecar.
Front to back comparison of the D70 vs IP650 w/ sidecar.
Converting multiple exten => lines to using same => in Asterisk dialplan
Last week I wanted to start changing some 1.4 based Asterisk dialplan to a 1.8 based Asterisk system, and in that process wanted to convert lines like:
exten => _NXXNXXXXXX,1,NoOp()
exten => _NXXNXXXXXX,2,GotoIf($[...]?reject,1)
exten => _NXXNXXXXXX,3,Dial(SIP/foo/${EXTEN})
...
into using the same => prefix:
exten => _NXXNXXXXXX,1,NoOp()
same => n,GotoIf($[...]?reject,1)
same => n,Dial(SIP/foo/${EXTEN})
In order to do that, Mike King helped me out with the following regular expressing which I used in vim:
%s/exten\s*=>\s*[^,]\+,\s*[n2-9]/ same => n/g
Now working with CoreDial
As of January 3rd, I’m now working with the CoreDial team full time. I’ve worked with them as a consultant on their infrastructure over the last few years but now will be spending significantly more time working with the engineering team
From the announcement,
“CoreDial is pleased to announce the addition of Leif Madsen to the CoreDial team,” said Alan Rihm, CEO at CoreDial. “Leif is a well known Asterisk consultant who specializes in distributed telephony deployments and database integration. In addition, Leif is co-author of several O’Reilly published books on Asterisk, including Asterisk: The Definitive Guide (3rd edition). We’re pleased to be adding Leif to our team, and look forward to the exciting opportunity to work together.”
The entire announcement can be found at http://coredial.com/asterisk-consultant-leif-madsen-joins-coredial-team/
I’m really excited to be working with these guys, and to see what we’ll develop over the coming months! I’ll keep you informed here on my blog, and will continue to post Asterisk tidbits and snippets as I go.
Cooking With Asterisk (Video)
And I found the Cooking With Asterisk presentation as well! Apologies for the low quality on the video (as this one has a lot more text than the Distributed Call Centre video), but you can follow along with the presentation on your screen as available on my website at:
http://leifmadsen.com/sites/default/files/AstriCon%202011%20-%20Cooking%20With%20Asterisk.pdf
The video presentation is available here:
http://www.tmcnet.com/tmc/videos/default.aspx?vid=5741&title=Cooking+with+Asterisk#
Asterisk Powered Distributed Call Centres (Video)
Looks like TMC has posted my presentation from AstriCon 2011! You can see the presentation in its entirety over here:
And the presentation along with the demo configuration files is available on my website at:

















