Difference between revisions of "Example - Configuring DID to ring some Device"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(19 intermediate revisions by 2 users not shown)
Line 3: Line 3:
===We have:===
===We have:===


* DID - external number provided by some Provider: 02180995165
* DID - an external number (02180995165) provided by a Provider.
* Number is from UK
* The number is from the UK.
* Connection to provider is via IAX2, IP: 23.45.67.89:4569
* The connection to the provider is via IAX2, IP: 23.45.67.89:4569.
* Devices we have: SIP/201 and SIP/201
* Devices SIP/201 and SIP/202.


===We want:===
===We want:===


* Dial DID (02180995165) using our mobile phone and ring Device SIP/201
* To dial the DID 02180995165 using our mobile phone and ring Device SIP/201.


[[Image:dstrd1-1.png]]
[[Image:dstrd1-1.png]]


* Dial DID (02180995165) using local Device SIP/202 and ring Device SIP/201 (local SIP-SIP call not going to PSTN)
* To dial the DID 02180995165 using the local Device SIP/202 in order to ring Device SIP/201 (local SIP-SIP call not going to PSTN).


[[Image:dstrd1-2.png]]
[[Image:dstrd1-2.png]]


==Configuration==
==Configuration==
Line 23: Line 22:
===Plan===
===Plan===


# Configure Localization for Provider
# Configure Localization for Provider.
# Create Provider
# Create Provider.
# Register Provider
# Register Provider.
# Create Devices SIP/201 and SIP/202
# Create Devices SIP/201 and SIP/202.
# Create/Configure DID
# Create/Configure DID.
 




===Configure Localization for Provider===
===Configure Localization for Provider===


As DID is not in E164 format, we must configure MOR to handle that.
As the DID is not in E.164 format, we must configure MOR to handle this.
 
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
Since the DID 02180995165 does not come from the provider in E.164 format, we must create a Location for this provider and add a rule to it. We create Location: UK and add a rule to convert the non-E1.64 DID to E.164 DID: 02180995165 -> 4402180995165.


[[Image:dsfd3.png]]
[[Image:dsfd3.png]]
Line 45: Line 39:
===Create Provider===
===Create Provider===


Create Provider in MOR GUI '''(no need to edit any of .conf files!!!)'''
Create Provider in MOR GUI.


Do not forget to set Location: UK for this Provider.
Do not forget to set Location: UK for this Provider.


===Register 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).
IF your Provider asks you to register it, do so.


===Create Devices SIP/201 and SIP/202===
===Create Devices SIP/201 and SIP/202===


Create Devices as usual '''(no need to edit any of .conf files!!!)'''
Create Devices as usual '''(there is no need to edit any .conf files!)'''
 
DO NOT forget to set '''Location: UK''' for these Devices.


Do not forget to set Location: UK for these Devices.
<br><br>


===Create/Configure DID===
===Create/Configure DID===


Create DID in E164 format:
====Create DID in E164 format====


[[Image:dsfd4.png]]
[[Image:dsfd4.png]]


Reserve this DID to your User:
====Reserve this DID to your User====


[[Image:dsfd5.png]]
[[Image:dsfd5.png]]


Assign DID to Device SIP/201
====Assign DID to Device SIP/201====


[[Image:dsfd6.png]]
[[Image:dsfd6.png]]

Latest revision as of 12:37, 26 May 2010

Primary situation

We have:

  • DID - an external number (02180995165) provided by a Provider.
  • The number is from the UK.
  • The connection to the provider is via IAX2, IP: 23.45.67.89:4569.
  • Devices SIP/201 and SIP/202.

We want:

  • To dial the DID 02180995165 using our mobile phone and ring Device SIP/201.

Dstrd1-1.png

  • To dial the DID 02180995165 using the local Device SIP/202 in order to ring Device SIP/201 (local SIP-SIP call not going to PSTN).

Dstrd1-2.png

Configuration

Plan

  1. Configure Localization for Provider.
  2. Create Provider.
  3. Register Provider.
  4. Create Devices SIP/201 and SIP/202.
  5. Create/Configure DID.


Configure Localization for Provider

As the DID is not in E.164 format, we must configure MOR to handle this.

Since the DID 02180995165 does not come from the provider in E.164 format, we must create a Location for this provider and add a rule to it. We create Location: UK and add a rule to convert the non-E1.64 DID to E.164 DID: 02180995165 -> 4402180995165.

Dsfd3.png

Create Provider

Create Provider in MOR GUI.

Do not forget to set Location: UK for this Provider.

Register Provider

IF your Provider asks you to register it, do so.

Create Devices SIP/201 and SIP/202

Create Devices as usual (there is no need to edit any .conf files!)

DO NOT forget to set Location: UK for these Devices.



Create/Configure DID

Create DID in E164 format

Dsfd4.png

Reserve this DID to your User

Dsfd5.png

Assign DID to Device SIP/201

Dsfd6.png


That's it.