How to configure DID in analog gateways
Unlike SIP or ISDN PRI the concept of DID (Direct Inward dialing) or Dialed Number does not exist in the analog telephony world.
When you receive a call from the PSTN the only information that is being sent by your telco is the Caller ID name and number of the person who is calling on the line.Â
However, there is a way to workaround this.
Technically speaking each analog line that you have is associated with one particular phone number. If you know the phones numbers associated with each line, you could use this information and have the gateway insert the number depending on the port that you received the call.Â
It's important to mention that this workaround does not work well when you have a hunt group or hunt number as this telco feature enables a single phone number to use multiple lines, therefore the number dialed may not match the number that is associated with a particular line.
If you are unsure if your lines are using hunt groups, please contact your Analog Line provider for assistance, Digium Technical Support cannot confirm this information using the gateway.Â
If you want to implement the workaround. Please follow these steps:
When configuring your Gateway with Switchvox
Factory default your gateway
Use the interconnect feature of your gateway and connect the gateway appliance with the Switchvox. Click HERE for step to use interconnect.
Log into your gateway and go to the Call Routing Rules tab
Edit one of the rules that control how calls from the ports are handle (*1)Â
Disable Simple Entry Mode
In the Manipulate Matched Call add the phone number or DID on the section Append the Digits to the number
Click Call Routing Rules
Repeat on all of the ports that you would like to add the DID. (*2)
When Configuring with Asterisk or Any other third party PBX.
Edit one of the rules that control how calls from the ports are handle (*1)Â
Disable Simple Entry Mode
In the Manipulate Matched Call add the phone number or DID on the section Append the Digits to the number
Click Call Routing Rules
Repeat on all of the ports that you would like to add the DID. (*2)
(*1) Note: After the interconnect the gateway will add many rules that controls how calls are handle. Not all rules are needed to be edited in order to achieve the desired configuration. Please use the name of the rule as guidance to locate the correct rules, usually rules that control how calls from the ports are handle begins with "port#". You can also double check looking into the configuration of the rule and confirm that Match Incoming Call section says: Call comes in from port#
(*2) Usually only FXO ports are needed to be edited, if your gateway has FXO and FXS ports, please check the appliance, all ports that has red LED in the analog port connection are FXO while FXS has green LED.