[asterisk-users] Setup DID

Feroz Ahmed faferos at gmail.com
Tue Jan 24 06:09:39 CST 2017


You would need to explicitly defined the registration string / DDI, else it
will always take the s precedence.

Thanks,
Feroz Ahmed

On Tue, Jan 24, 2017 at 5:16 PM, Zakir Mahomedy <zmm at mayfair2000.com> wrote:

> Hi I am trying to setup DDI for one of our servers
>
> Our Provider has given us one DDI for use for eg 0800111111.
>
> On my main server  A,  I use an IAX trunk to connect to Client Server B.
> When calls come in from the outside world on main server A for 0800111111
> In the dial plan, I pattern match and connect with IAX2 truck named
> 087XXXXXX
>
> eg) SERVER A DIALPLAN
> exten => 0800111111,1, Verbose( 3, " **** INCOMING CALLS  SERVER B ****)
> same => n,Dial(IAX2/087XXXXXX,,r)
>
> On server B
> I have an incoming context in which I have both a general IVR and the
> 0800111111 pattern
> to route the DDI number to a particular extension.
>
> [incoming]
>
> exten =>0800111111.,1,Answer()
> same => n,Dial(PJSIP/200)
> same => n,Hangup()
>
> exten => s,1,Answer()
> same => n,Goto(main_ivr,7777,1)
> same => n,Hangup()
>
> I cant seem to get a match on 087, it always go to the s context in
> incoming
> Any ideas on how I can get DDI to work
> thanks
>
> Zakir
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170124/acd6dc5c/attachment.html>


More information about the asterisk-users mailing list