Wednesday, April 27, 2011

How to setup Elastix SIP trunk with ZONETEL's DID service.

There are increasing number of Elastix customers connecting to ZONE's DID service.  Here below highlights the major steps.


First, we need to define the SIP trunk for inbound/outbound calls.


1.    Basic>Trunks>Add Trunk

General Settings


Outbound callerid = 5804xxxx


Outgoing Settings


Peer details at least contains below:





We also need to define the register information for incoming call.


Incoming Settings


Register string has to contains:

5804xxxx:your sip


Then we need to define a route to use the outbound SIP trunk.

2.    Basic>Outbound Routes>Add Routes

;; if you dial 9 to call out via sip, etc.

Dial Patterns=


Trunk Sequence=<the trunk created in 1>


And a route for incoming call.

3.Inbound Call Control>Inbound Routes>Add Incoming Route

DID number=5804xxxx

Extensions=<the extension to answer inbound call from 5804xxxx>


Monday, April 18, 2011

Local Channel

Asterisk provides an easy way to turn any extension into a device such that we can Dial to and therefore can make use of the dial plan processing.
One example use is with call file.  We can create callfiles to telebroadcast a range of numbers with some processing (eg least cost routing).
Applcation:    Playback
in our context [lcr],  we can choose different sip/dahdi routes depending on the destination.
exten => _852XXXXXXXX, 1, Dial(SIP/${EXTEN},S(10))
exten => _853XXXXXXXX, 1, Dial(DAHDI/g1/${EXTEN},S(10))
Under many circumstances, we include '/n' in the local channel.  This switch instructs the local channel NOT to optimize out from the call path, otherwise, the channel variables and parameters used in the destination Dial() would not be available.  As in the case above, if '/n' is not used, the 'S(10)' is not effective.