Difference between revisions of "PBX Function External DID"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 53: Line 53:
  asterisk -rx "dialplan reload"
  asterisk -rx "dialplan reload"


Once you diall 1234567890, you will hear the ''Echo'' test.
Once you dial 1234567890, you will hear the ''Echo'' test.


= See also =
= See also =
* [[PBX Functions Addon]]
* [[PBX Functions Addon]]
* [http://www.voip-info.org/wiki/view/Asterisk+cmd+Echo Asterisk cmd Echo]
* [http://www.voip-info.org/wiki/view/Asterisk+cmd+Echo Asterisk cmd Echo]

Revision as of 12:05, 28 July 2016

Description

!!WARNING - Deep Asterisk knowledge is a must before proceeding!!

External DID function allows you to implement different PBX (or other Asterisk related functions) into MOR.
When you assign some DID number pbxfunction External DID your call is forwarded to an extension file in Asterisk called:

/etc/asterisk/extensions_mor_external_did.conf

NOTE: changes to this file are permanent. E.g. update do not overwrite this file.

Prior to making configurations in that file, please keep in mind, that:

When call comes to DID, for example DID number 1234567890 it will be forwarded to the dial plan in that file with extension:

exten => 1234567890,1,...


Warning.pngDID number and PBX function Extension CANNOT be the same. So if your DID is 1234567890, your PBX function extension cannot be 1234567890, it can be any other number, like *235485.

In this file you can basically configure any function that Asterisk supports to handle your call, like:



Usage

Go to ADDON –> PBX functions –> External DIDs:

Pbx functions menu.png

Here you will see list off PBX function External DIDs

Pbx function external did.png

Click on Icon edit.png icon to make changes for existing settings or enter Extension and Dial Plan name, select PBX Pool and PBX Function name and click on Icon add.png icon to create new one.

  • Note: you can change the User who will be billed by pressing the edit button;

duplicate Extensions can not be created in same PBX Pool.

Echo test

Create External DID with PBX function name External DID and assign it to a DID. Let say DID is 1234567890.
Make changes in this file:

/etc/asterisk/extensions_mor_external_did.conf

Add:

exten => 1234567890,1,Answer
exten => 1234567890,2,Echo
exten => 1234567890,3,Hangup

Safe file and reload dial plan:

asterisk -rx "dialplan reload"

Once you dial 1234567890, you will hear the Echo test.

See also