<html><head></head><body><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="yui_3_16_0_ym19_1_1485257111025_10238">Hi I am trying to setup DDI for one of our servers</div><div id="yui_3_16_0_ym19_1_1485257111025_10239"><br></div><div id="yui_3_16_0_ym19_1_1485257111025_10240">Our Provider has given us one DDI for use for eg 0800111111.</div><div id="yui_3_16_0_ym19_1_1485257111025_10240"><br></div><div id="yui_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="yui_3_16_0_ym19_1_1485257111025_10240">When calls come in from the outside world on main server A for 0800111111</div><div id="yui_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="yui_3_16_0_ym19_1_1485257111025_10240" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1485257111025_10240" dir="ltr">eg) SERVER A DIALPLAN</div><div id="yui_3_16_0_ym19_1_1485257111025_19578" dir="ltr">exten => 0800111111,1, Verbose( 3, " **** INCOMING CALLS SERVER B ****)</div><div id="yui_3_16_0_ym19_1_1485257111025_19580" dir="ltr">same => n,Dial(IAX2/087XXXXXX,,r) </div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_19581"><br id="yui_3_16_0_ym19_1_1485257111025_19582"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_19581">On server B </div><div dir="ltr" id="yui_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="yui_3_16_0_ym19_1_1485257111025_19581">to route the DDI number to a particular extension.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_19581"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_19581"><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24319">[incoming]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24320"><br id="yui_3_16_0_ym19_1_1485257111025_24321"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24322">exten =>0800111111.,1,Answer()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24326">same => n,Dial(PJSIP/200)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24327">same => n,Hangup()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24328"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24332">exten => s,1,Answer()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24338">same => n,Goto(main_ivr,7777,1)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24339">same => n,Hangup()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24339"><br></div><div dir="ltr" id="yui_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="yui_3_16_0_ym19_1_1485257111025_24339">Any ideas on how I can get DDI to work </div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24339">thanks</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24339"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24339">Zakir</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24339"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485257111025_24340"><br id="yui_3_16_0_ym19_1_1485257111025_24341"></div></div></div></body></html>