Auto Pickup

From VoiceRDWiki

Jump to: navigation, search

Contents

Auto Pickup With Polycom phones

Some phones allow for automatic pickup by setting a configuration preference on your phone. For example, with the pro version of X-Lite from CounterPath, you can configure the phone to do automatic pickup for all incoming lines. The Polycom phones allow for a little more flexibility in determining which call should be set to auto pickup.

What to Dial

In VoiceRD, dialing *3XXXX, will attempt to auto pickup any SIP device that is configured as a line on a Polycom, assuming that the polycom is configured properly, we'll get to that next. Since it is difficult to dial letters on a phone, make sure that the XXXX in *3XXXX are numbers not letters(e,g,. configure a SIP device/line named 1234 and dial *31234).

The dialplan

This will call the app-intercom in the dialplan we run this command:

       SIPAddHeader(Alert-Info: Ring Answer)

If you are trying to do this with a phone other than Polycom, you may want to add:

       ChanIsAvail(...)

with the appropriate logic to make sure we don't barge into an existing phonecall.

Creating the Polycom configuration files

Now, make a copy of the /tftpboot/sip.cfg file(for the Polycom, not to be confused with sip.conf for asterisk) and name it something appropriately like: sip-autopickup.cfg. Make the appropriate modifications:

 <alertInfo voIpProt.SIP.alertInfo.1.value="Ring Answer" voIpProt.SIP.alertInfo.1.class="4"/>

the alertInfo.1.class matches the number in the ringType section:

 <ringType se.rt.enabled="1" se.rt.modification.enabled="1">
         <DEFAULT se.rt.1.name="Default" se.rt.1.type="ring" se.rt.1.ringer="2" se.rt.1.callWait="6" se.rt.1.mod="1"/>
         <VISUAL_ONLY se.rt.2.name="Visual" se.rt.2.type="visual"/>
         <AUTO_ANSWER se.rt.3.name="Auto Answer" se.rt.3.type="answer"/>
         <RING_ANSWER se.rt.4.name="Ring Answer" se.rt.4.type="ring-answer" se.rt.4.timeout="2000" se.rt.4.ringer="2" se.rt.4.callWait="6" se.rt.4.mod="1"/>
         <INTERNAL se.rt.5.name="Internal" se.rt.5.type="ring" se.rt.5.ringer="2" se.rt.5.callWait="6" se.rt.5.mod="1"/>
         <EXTERNAL se.rt.6.name="External" se.rt.6.type="ring" se.rt.6.ringer="2" se.rt.6.callWait="6" se.rt.6.mod="1"/>
         <EMERGENCY se.rt.7.name="Emergency" se.rt.7.type="ring" se.rt.7.ringer="2" se.rt.7.callWait="6" se.rt.7.mod="1"/>
         <CUSTOM_1 se.rt.8.name="Custom 1" se.rt.8.type="ring" se.rt.8.ringer="5" se.rt.8.callWait="7" se.rt.8.mod="1"/>
         <CUSTOM_2 se.rt.9.name="Custom 2" se.rt.9.type="ring" se.rt.9.ringer="7" se.rt.9.callWait="7" se.rt.9.mod="1"/>
         <CUSTOM_3 se.rt.10.name="Custom 3" se.rt.10.type="ring" se.rt.10.ringer="9" se.rt.10.callWait="7" se.rt.10.mod="1"/>
         <CUSTOM_4 se.rt.11.name="Custom 4" se.rt.11.type="ring" se.rt.11.ringer="11" se.rt.11.callWait="7" se.rt.11.mod="1"/>
 </ringType>
 

if it is set to 4, that refers to the RING_ANSWER ringType.

Configuring the Polycom phone in the Web interface

Go to the Configuration tab and navigate to User -> Phones page. Create a new phone and make sure to set the "Default Configuration File" to: sip-autopickup.cfg or whatever you named your modified sip.cfg file. Also, don't forget to add the line you configured under the User -> lines section.

Personal tools