How can I use Alexa “calling by name” to call a contact whose number is an office extension rather than a PSTN or a mobile number?
To start with, you put the contact in your Alexa App’s Contacts with his/her extension number. However, the Alexa app always needs a country code and the default country code is ‘+1’ – so any stored number gets a ‘1’ put in front if no country code (e.g., +44 for U.K.) is specified. For example, suppose you set up a contact with phone number ‘5403’ on the Alexa app (and then synch up the Mobile App’s Contacts with Alexa App’s Contacts), then the number dialed is ‘15403’. This will not work as your IP-PBX system will not be able to route ‘15403’ to the right destination whose number is ‘5403’.
This can be handled by stripping the ‘1’ from ‘15403’using the BT110 Digitmap and Digit Replacement Rules (DRR): you use Digitmap to match the number delivered to the BuddyTalk SIP Stack by the Alexa Communication (ACM) module, and then use the corresponding DRR rule to manipulate the number before sending it out to the IP-PBX system.
The following Digitmap and DRR pair example allows you to call 4-digit extensions either by dialing from an analog phone connected to the BT110 FXS/RJ11 port, using Alexa voice commands, or through the Mobile App:
Digit Replacement Rules: /|1/
Please see Dialing Plan, Digitmap, and Digit Replacement Rules for details about Digitmap and Digit Replacement Rules.