Difference between revisions of "Example - Configuring DID to ring some Device"
Line 42: | Line 42: | ||
[[Image:dsfd3.png]] | [[Image:dsfd3.png]] | ||
===Create Provider=== | ===Create Provider=== | ||
Line 48: | Line 50: | ||
Do not forget to set Location: UK for this Provider. | Do not forget to set Location: UK for this Provider. | ||
Line 53: | Line 56: | ||
IF your Provider asks you to register, register it in '''/etc/asterisk/iax.conf''' (or sip.conf if you connect to your Provider via SIP). | IF your Provider asks you to register, register it in '''/etc/asterisk/iax.conf''' (or sip.conf if you connect to your Provider via SIP). | ||
===Create Devices SIP/201 and SIP/202=== | ===Create Devices SIP/201 and SIP/202=== | ||
Line 59: | Line 64: | ||
Do not forget to set Location: UK for these Devices. | Do not forget to set Location: UK for these Devices. | ||
===Create/Configure DID=== | ===Create/Configure DID=== |
Revision as of 12:27, 12 April 2008
Primary situation
We have:
- DID - external number provided by some Provider: 02180995165
- Number is from UK
- Connection to provider is via IAX2, IP: 23.45.67.89:4569
- Devices we have: SIP/201 and SIP/201
We want:
- Dial DID (02180995165) using our mobile phone and ring Device SIP/201
- Dial DID (02180995165) using local Device SIP/202 and ring Device SIP/201 (local SIP-SIP call not going to PSTN)
Configuration
Plan
- Configure Localization for Provider
- Create Provider
- Register Provider
- Create Devices SIP/201 and SIP/202
- Create/Configure DID
Configure Localization for Provider
As DID is not in E164 format, we must configure MOR to handle that.
That means that DID from provider comes in non-E164 format: 02180995165
We must create Location for this provider and add rule to it.
We create Location: UK and add rule to convert non-E164 DID to E164 DID: 02180995165 -> 4402180995165
Create Provider
Create Provider in MOR GUI (no need to edit any of .conf files!!!)
Do not forget to set Location: UK for this Provider.
Register Provider
IF your Provider asks you to register, register it in /etc/asterisk/iax.conf (or sip.conf if you connect to your Provider via SIP).
Create Devices SIP/201 and SIP/202
Create Devices as usual (no need to edit any of .conf files!!!)
Do not forget to set Location: UK for these Devices.
Create/Configure DID
Create DID in E164 format:
Reserve this DID to your User:
Assign DID to Device SIP/201
That's it.