<div dir="ltr">You would need to explicitly defined the registration string / DDI, else it will always take the s precedence.<div><br></div><div>Thanks,</div><div>Feroz Ahmed</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 24, 2017 at 5:16 PM, Zakir Mahomedy <span dir="ltr"><<a href="mailto:zmm@mayfair2000.com" target="_blank">zmm@mayfair2000.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10238">Hi I am trying to setup DDI for one of our servers</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10239"><br></div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240">Our Provider has given us one DDI for use for eg 0800111111.</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240"><br></div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240">On my main server A, I use an IAX trunk to connect to Client Server B.</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240">When calls come in from the outside world on main server A for 0800111111</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240" dir="ltr">In the dial plan, I pattern match and connect with IAX2 truck named 087XXXXXX</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240" dir="ltr"><br></div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_10240" dir="ltr">eg) SERVER A DIALPLAN</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19578" dir="ltr">exten => 0800111111,1, Verbose( 3, " **** INCOMING CALLS SERVER B ****)</div><div id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19580" dir="ltr">same => n,Dial(IAX2/087XXXXXX,,r) </div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19581"><br id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19582"></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19581">On server B </div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19581">I have an incoming context in which I have both a general IVR and the 0800111111 pattern</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19581">to route the DDI number to a particular extension.</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19581"><br></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_19581"><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24319">[incoming]</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24320"><br id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24321"></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24322">exten =>0800111111.,1,Answer()</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24326">same => n,Dial(PJSIP/200)</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24327">same => n,Hangup()</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24328"><br></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24332">exten => s,1,Answer()</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24338">same => n,Goto(main_ivr,7777,1)</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339">same => n,Hangup()</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339"><br></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339">I cant seem to get a match on 087, it always go to the s context in incoming</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339">Any ideas on how I can get DDI to work </div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339">thanks</div><span class="HOEnZb"><font color="#888888"><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339"><br></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339">Zakir</div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24339"><br></div><div dir="ltr" id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24340"><br id="m_2687412107192788581yui_3_16_0_ym19_1_1485257111025_24341"></div></font></span></div></div></div><br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br></div>