I thought I’d give a little update on what’s going on in my Asterisk installation as some of the stuff might be useful for you:
Speed Dial
If you have Snom Phones and want to program the function keys to dial a certain number, be sure to select “Speed Dial” and not “Destination” when entering the number.
Destination was used in earlier firmwares but it now used to not only make the phone dial that number, but also subscribe to the line to make the LED light up when the line is used.
This obviously makes no sense at all with external numbers and requires some configuration for internal ones (see below). The additional benefit is that buttons with “Speed Dial” assigned don’t turn on the LED.
Dial by click
You can dial a number from the Mac OS X address book aswell. Asterisk will make your phone ring and redirect the call once you pick up (just like AstTapi on Windows). I had the best experience with app_notify. I don’t quite like the way how it notifies clients of incoming calls (hard-coding IP-Addresses of clients is NOT how I want my network to operate), but maybe there will be a better solution later on. Currently, I’m not using this feature.
Dialing works though.
You don’t have to modify manager.conf, btw, if you already have the entry for the AstTapi-Solution. app_notify will ask for username (manager context) and password when it launches the first time.
Subscription
As noted above, your Snom Phone can be advised to monitor a line. The corresponding LED will blink (asterisk 1.2+) when it’s ringing and light up when the line is busy.
Snom-wise, you’ll have to configure a function key to a “Destination” and enter the extension you like to monitor.
Asterisk-wise you have to make various changes:
sip.conf
- Add subscribecontext=[context], where context is the context in extensions.conf where the corresponding SNOM phone is configured in. I’ve put this to the [general]-Section because all phones are sharing the same context (internal).
- Add notifyringing=yes if you have Asterisk >= 1.2 and want to make the LEDs blink when the line is ringing.
extensions.conf
This is a bit hacky: In the sip-context add a notify extension for every line you want to be allowed to be monitored. Unfortunately, you can’t use macros or variables here, so it’s messy.
On my configuration it’s:
[internal]
exten => 61,hint,SIP/61
exten => 62,hint,SIP/62
exten => 63,hint,SIP/63
exten => 64,hint,SIP/64
exten => _6[1-9],1,Dial(SIP/${EXTEN},,tWw)
While I would have preferred
[internal]
exten => _6[1-9],hint,SIP/${EXTEN}
exten => _6[1-9],1,Dial(SIP/${EXTEN},,tWw)
Though this may have been fixed with 1.2.2, but I’m not sure just yet.
You may have to reboot your phone after making the configuration change there. To check the registration in asterisk use SIP show subscriptions.
You should get something like this:
asterisk*CLI> SIP show subscriptions
Peer User Call ID Extension Last state Type
192.168.2.152 62 3c26700b57e 61 Idle dialog-info+xml
1 active SIP subscription
This is not quite tested as of yet because the guy at extension 61 is currently in his office and I don’t want to bother him ;-)
Update while editing/correcting this text: It works. They guy has left and I checked it.