YealinkT28は、低価格ながら非常に多機能なIP電話機です。
この電話機にパーク保留ボタンとピックアップボタンを設定する方法を解説します。
1:trixboxPro側の設定
Asteriskのhint機能を利用しますが、trixboxPro Ver4はパーク保留のhint機能がありません。
このガイドは次期バージョンのtrixboxPro Ver5でこの機能を実現する方法を解説します。
Hint adds the ability for FONcore to report the status of that extension and allow you to reflect this status on a programmable key for virtually any IP Phone available.
First, you need to hand-edit some stuff on your system.
- SSH to your server as root
- cd /etc/asterisk/fonality
- There is a file here called "external.conf" - it lists all the extensions which are available to outside callers to dial (as in "if you know your party's extension - dial it at any time"). The way I do Park-Hold, I create a new file called "external_additional.conf"
- vi external_additional.conf => this creates a new file
- Using vi, you may need a cheat sheet for commands, but you can press the i key to enter "insert" mode and start typing. Copy and paste the following:
[park-hints]
; include => park-hints-custom
exten => 9001,1,parkinglot(9001)
exten => 9001,hint,park:9001@parkinglot
exten => 9002,1,parkinglot(9002)
exten => 9002,hint,park:9002@parkinglot
exten => 9003,1,parkinglot(9003)
exten => 9003,hint,park:9003@parkinglot
exten => 9004,1,parkinglot(9004)
exten => 9004,hint,park:9004@parkinglot
exten => 9005,1,parkinglot(9005)
exten => 9005,hint,park:9005@parkinglot
- This will setup hints for the first 5 Parking slots - you could take the above and repeat for 9006, 9007, etc up to 9050 if you wanted all 50 slots to report their status. But unless you have an environment where you're literally parking 50 people at a time - this is quite overkill.
- Save your changes and quit (:wq!)
- Now edit a file called includes.conf (vi includes.conf)
- You can insert the following line pretty much anywhere you want, but I group it alphabetically for clarity and put it after external.conf:
#include "/etc/asterisk/fonality/external.conf"
#include "/etc/asterisk/fonality/external_additional.conf"
- So now you are telling FONcore to include your newly created file into the running dial plans loaded into FONcore - you will need to reload FONcore once you are done with any changes to this file.
- Now you need to edit the internal.conf dial plan to expose these Parking extensions to the phones:
[internal]
include => international
include => internal-invisible ; Extensions not visible to the GUI
include => external
include => link-internal
include => internal-conference
include => parkinglot
include => pageusers
include => directvm
include => park-hints
- Once you've edited all four of these files and added your lines - you need to reload FONcore: asterisk -rx reload
- So now the Parking lot extensions should report their status. Make sure that parking.conf has context=parkinglot in it (it does by default)
- You can protect these files from changes by setting the immutable bit on the files - but you will see the "configuration failure" banner in the CP when we try to sync changes - this is fine, you made the files immutable so it's not an error.
- Now all that's left is to configure your phones. Most IP phones have a "BLF" option when you are configuring them through their web GUI or through their configuration file. It varies from phone to phone, but you're basically looking for a "BLF" setting or an Extension setting. Experiment with your phone.
- Once you find the setting - you want to subscribe that key to the parking slot for status. This means you type in "9001" (without quotes) for some phones or "sip:9001@sXXXXXX.trixbox.fonality.com" for other phones - it depends on the phone; consult the documentation.
- Once you have set the phone up properly - test your new functionality by transferring a call to 9001 and watch the key light up - when you want to grab the caller - just press the lit key and it should speed dial 9001. Viola! Park-Hold aka "Line Keys" (fake it) aka "Key System Functions"
Check out the video of this function in action:
http://ops.fonality.com/videos/IMG_1514.MOV