koolandrew Posted October 9 Report Share Posted October 9 i have a customer who has a bug with their outbound dial plan, i hope someone can lend a suggestion. They have 4 different DIDS and wish to present the appropriate DIDS depending upon where they are calling as they would like to be somewhat local to their customers etc. using 1855 caller id Local Didbox (Canadian prefixes) using 212 caller id Local Didbox NYC (New York State prefixes) using 313 caller id Local DIdbox USA( default remaining America only prefixes-no Carribbean) They are setup such that there are three trunks with 3 caller ids for the corresponding calling so that they use their 1212 to call New York numbers (Trunk , 1313 to call the rest of America, 1855 for Canada numbers and the ability to dial locally (7 digits) when they are in Belize as they have business there. The caller id is not part of this but thought i would mention it. No matter what i do in changing the dial plan, when i review the trunk logs, it uses: Dialplan: Simple match 7165041500 to 2xxxxxxxxx|3xxxxxxxxx|4xxxxxxxxx|5xxxxxxxxx|6xxxxxxxxx|7xxxxxxxxx|8xxxxxxxxx|9xxxxxxxxx which is line 102 of the dialpan Even when i disable the dial plan that uses that numbering, it will use it anyways. The weird thing is that this dialplan should show the 1313 caller id, but it doesnt, it shows the Canadian caller id. I also tried using the for The dial plan is below. I cannot figure this out. 60;-;;340xxxxxxx|268xxxxxxx|671xxxxxxx|684xxxxxxx|787xxxxxxx|939xxxxxxx|242xxxxxxx|246xxxxxxx|264xxxxxxx|284xxxxxxx|345xxxxxxx|441xxxxxxx|473xxxxxxx|649xxxxxxx|664xxxxxxx|721xxxxxxx|758xxxxxxx|767xxxxxxx|784xxxxxxx|809xxxxxxx|829xxxxxxx|849xxxxxxx|868xxxxxxx|869xxxxxxx|876xxxxxxx|;*;;false 60;-;;|01153([0-9]{5})|011213([0-9]{5})|011216([0-9]{5})|011220([0-9]{5})|011221([0-9]{5})|011231([0-9]{5})|011232([0-9]{5})|011234([0-9]{5})|011239([0-9]{5})|011240([0-9]{5})|011241([0-9]{5})|011243([0-9]{5})|011230([0-9]{5})|011247([0-9]{5})|011248([0-9]{5})|011252([0-9]{5})|011257([0-9]{5})|011262([0-9]{5})|011263([0-9]{5})|011291([0-9]{5})|011355([0-9]{5})|011357([0-9]{5})|011212([0-9]{5})|011359([0-9]{5})|011370([0-9]{5})|011371([0-9]{5})|011372([0-9]{5})|011378([0-9]{5})|011381([0-9]{5})|011387([0-9]{5})|011500([0-9]{5})|011670([0-9]{5})|011676([0-9]{5})|011682([0-9]{5})|011683([0-9]{5})|011692([0-9]{5})|011960([0-9]{5})|0119955([0-9]{5})|011686([0-9]{5})|011681([0-9]{5})|011684([0-9]{5})|011685([0-9]{5})|011687([0-9]{5})|011689([0-9]{5})|011690([0-9]{5})|011691([0-9]{5})|011237([0-9]{5})|011238([0-9]{5})|011235([0-9]{5})|011377([0-9]{5})|011423([0-9]{5})|011881([0-9]{5})|011882([0-9]{5})|011229([0-9]{5})|011228([0-9]{5})|011226([0-9]{5})|011225([0-9]{5})|011224([0-9]{5})|011290([0-9]{5})|011261([0-9]{5})|011386([0-9]{5})|011375([0-9]{5})|);*;;false 70;LocalDidbox;p;|1340xxxxxxx|1268xxxxxxx|1671xxxxxxx|1684xxxxxxx|1787xxxxxxx|1939xxxxxxx|1242xxxxxxx|1246xxxxxxx|1264xxxxxxx|1284xxxxxxx|1345xxxxxxx|1441xxxxxxx|1473xxxxxxx|1649xxxxxxx|1664xxxxxxx|1721xxxxxxx|1758xxxxxxx|1767xxxxxxx|1784xxxxxxx|1809xxxxxxx|1829xxxxxxx|1849xxxxxxx|1868xxxxxxx|1869xxxxxxx|1876xxxxxxx|;*;;false 71;LocalDidbox2;p;|1340xxxxxxx|1268xxxxxxx|1671xxxxxxx|1684xxxxxxx|1787xxxxxxx|1939xxxxxxx|1242xxxxxxx|1246xxxxxxx|1264xxxxxxx|1284xxxxxxx|1345xxxxxxx|1441xxxxxxx|1473xxxxxxx|1649xxxxxxx|1664xxxxxxx|1721xxxxxxx|1758xxxxxxx|1767xxxxxxx|1784xxxxxxx|1809xxxxxxx|1829xxxxxxx|1849xxxxxxx|1868xxxxxxx|1869xxxxxxx|1876xxxxxxx|;*;;false 76;LocalDidbox;;911;911;;false 88;LocalDidbox2;;911;911;;false 88;LocalDidbox;;411;9991411301411;;false 89;LocalDidbox2;;411;9991411301411;;false 99;LocalDidbox;;211;211;;false 100;LocalDidbox;p;011*;011*;;false 100;LocalDidbox;;1204xxxxxxx|1226xxxxxxx|1236xxxxxxx|1249xxxxxxx|1250xxxxxxx|1289xxxxxxx|1306xxxxxxx|1343xxxxxxx|1365xxxxxxx|1367xxxxxxx|1403xxxxxxx|1416xxxxxxx|1418xxxxxxx|1431xxxxxxx|1437xxxxxxx|1438xxxxxxx|1450xxxxxxx|1506xxxxxxx|1514xxxxxxx|1519xxxxxxx|1548xxxxxxx|1579xxxxxxx|1581xxxxxxx|1604xxxxxxx|1613xxxxxxx|1639xxxxxxx|1647xxxxxxx|1672xxxxxxx|1705xxxxxxx|1778xxxxxxx|1780xxxxxxx|1807xxxxxxx|1819xxxxxxx|1825xxxxxxx|1867xxxxxxx|1873xxxxxxx|1902xxxxxxx|1905xxxxxxx|;*;;false 101;LocalDidbox2;p;011*;011*;;false 101;LocalDidbox2;;1204xxxxxxx|1226xxxxxxx|1236xxxxxxx|1249xxxxxxx|1250xxxxxxx|1289xxxxxxx|1306xxxxxxx|1343xxxxxxx|1365xxxxxxx|1367xxxxxxx|1403xxxxxxx|1416xxxxxxx|1418xxxxxxx|1431xxxxxxx|1437xxxxxxx|1438xxxxxxx|1450xxxxxxx|1506xxxxxxx|1514xxxxxxx|1519xxxxxxx|1548xxxxxxx|1579xxxxxxx|1581xxxxxxx|1604xxxxxxx|1613xxxxxxx|1639xxxxxxx|1647xxxxxxx|1672xxxxxxx|1705xxxxxxx|1778xxxxxxx|1780xxxxxxx|1807xxxxxxx|1819xxxxxxx|1825xxxxxxx|1867xxxxxxx|1873xxxxxxx|1902xxxxxxx|1905xxxxxxx|;*;;false 102;LocalDidbox;;204xxxxxxx|226xxxxxxx|236xxxxxxx|249xxxxxxx|250xxxxxxx|289xxxxxxx|306xxxxxxx|343xxxxxxx|365xxxxxxx|367xxxxxxx|403xxxxxxx|416xxxxxxx|418xxxxxxx|431xxxxxxx|437xxxxxxx|438xxxxxxx|450xxxxxxx|506xxxxxxx|514xxxxxxx|519xxxxxxx|548xxxxxxx|579xxxxxxx|581xxxxxxx|604xxxxxxx|613xxxxxxx|639xxxxxxx|647xxxxxxx|672xxxxxxx|705xxxxxxx|778xxxxxxx|780xxxxxxx|807xxxxxxx|819xxxxxxx|825xxxxxxx|867xxxxxxx|873xxxxxxx|902xxxxxxx|905xxxxxxx|;1*;;false 103;LocalDidbox2;;204xxxxxxx|226xxxxxxx|236xxxxxxx|249xxxxxxx|250xxxxxxx|289xxxxxxx|306xxxxxxx|343xxxxxxx|365xxxxxxx|367xxxxxxx|403xxxxxxx|416xxxxxxx|418xxxxxxx|431xxxxxxx|437xxxxxxx|438xxxxxxx|450xxxxxxx|506xxxxxxx|514xxxxxxx|519xxxxxxx|548xxxxxxx|579xxxxxxx|581xxxxxxx|604xxxxxxx|613xxxxxxx|639xxxxxxx|647xxxxxxx|672xxxxxxx|705xxxxxxx|778xxxxxxx|780xxxxxxx|807xxxxxxx|819xxxxxxx|825xxxxxxx|867xxxxxxx|873xxxxxxx|902xxxxxxx|905xxxxxxx|;1*;;false 106;Local DID Box NYC;;212*|315*|332*|347*|516*|518*|585*|607*|631*|646*|680*|716*|718*|838*|845*|914*|917*|929*|934*;*;;false 107;Local Didbox2 NYC;;1212([0-9]{7})|1315([0-9]{7})|1332([0-9]{7})|1347([0-9]{7})|1516([0-9]{7})|1518([0-9]{7})|1585([0-9]{7})|1607([0-9]{7})|1631([0-9]{7})|1646([0-9]{7})|1680([0-9]{7})|1716([0-9]{7})|1718([0-9]{7})|1838([0-9]{7})|1845([0-9]{7})|1914([0-9]{7})|1917([0-9]{7})|1929([0-9]{7})|1934([0-9]{7});sip:1\@\r;;false 108;Local Didbox2 NYC;;212([0-9]{7})|315([0-9]{7})|332([0-9]{7})|347([0-9]{7})|516([0-9]{7})|518([0-9]{7})|585([0-9]{7})|607([0-9]{7})|631([0-9]{7})|646([0-9]{7})|680([0-9]{7})|716([0-9]{7})|718([0-9]{7})|838([0-9]{7})|845([0-9]{7})|914([0-9]{7})|917([0-9]{7})|929([0-9]{7})|934([0-9]{7});1*;;false 114;Local Didbox USA;;1xxxxxxxxxx|;*;;false 115;Local Didbox USA2;;1xxxxxxxxxx|;*;;false 116;Local Didbox USA;;2xxxxxxxxx|3xxxxxxxxx|4xxxxxxxxx|5xxxxxxxxx|6xxxxxxxxx|7xxxxxxxxx|8xxxxxxxxx|9xxxxxxxxx;1*;;true 117;Local Didbox USA2;;2xxxxxxxxx|3xxxxxxxxx|4xxxxxxxxx|5xxxxxxxxx|6xxxxxxxxx|7xxxxxxxxx|8xxxxxxxxx|9xxxxxxxxx;1*;;true 140;LocalDidbox;;|2([0-9]{6})|;0115012*;;false 141;LocalDidbox;;|3([0-9]{6})|;0115013*;;false 142;LocalDidbox;;|4([0-9]{6})|;0115014*;;false 143;LocalDidbox;;|5([0-9]{6})|;0115015*;;false 144;LocalDidbox;;|6([0-9]{6})|;0115016*;;false 145;LocalDidbox;;|7([0-9]{6})|;0115017*;;false 146;LocalDidbox;;|8([0-9]{6})|;0115018*;;false 150;LocalDidbox2;;|2([0-9]{6})|;0115012*;;false 151;LocalDidbox2;;|3([0-9]{6})|;0115013*;;false 152;LocalDidbox2;;|4([0-9]{6})|;0115014*;;false 153;LocalDidbox2;;|5([0-9]{6})|;0115015*;;false 154;LocalDidbox2;;|6([0-9]{6})|;0115016*;;false 155;LocalDidbox2;;|7([0-9]{6})|;0115017*;;false 156;LocalDidbox2;;|8([0-9]{6})|;0115018*;;false 1105;Local DID Box NYC;;1212([0-9]{7})|1315([0-9]{7})|1332([0-9]{7})|1347([0-9]{7})|1516([0-9]{7})|1518([0-9]{7})|1585([0-9]{7})|1607([0-9]{7})|1631([0-9]{7})|1646([0-9]{7})|1680([0-9]{7})|1716([0-9]{7})|1718([0-9]{7})|1838([0-9]{7})|1845([0-9]{7})|1914([0-9]{7})|1917([0-9]{7})|1929([0-9]{7})|1934([0-9]{7});*;;false Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted October 11 Report Share Posted October 11 The second entry for 60 looks wrong to me. First of all, it would match the empty string as the first alternative? Then the other strings are using the bracket, but the replacement will be the first bracket. Did you mean 60;-;;01153xxxxx|011213xxxxx|011216xxxxx|011220xxxxx|011221xxxxx|011231xxxxx|011232xxxxx|011234xxxxx|011239xxxxx|011240xxxxx|011241xxxxx|011243xxxxx|011230xxxxx|011247xxxxx|011248xxxxx|011252xxxxx|011257xxxxx|011262xxxxx|011263xxxxx|011291xxxxx|011355xxxxx|011357xxxxx|011212xxxxx|011359xxxxx|011370xxxxx|011371xxxxx|011372xxxxx|011378xxxxx|011381xxxxx|011387xxxxx|011500xxxxx|011670xxxxx|011676xxxxx|011682xxxxx|011683xxxxx|011692xxxxx|011960xxxxx|0119955xxxxx|011686xxxxx|011681xxxxx|011684xxxxx|011685xxxxx|011687xxxxx|011689xxxxx|011690xxxxx|011691xxxxx|011237xxxxx|011238xxxxx|011235xxxxx|011377xxxxx|011423xxxxx|011881xxxxx|011882xxxxx|011229xxxxx|011228xxxxx|011226xxxxx|011225xxxxx|011224xxxxx|011290xxxxx|011261xxxxx|011386xxxxx|011375xxxxx;*;;false There are other entries that also start with the |, this technically means that it would match the empty string. Same problem at the end. Maybe thats the problem? Also there is a file areacodes.xml that would be useful for setting such complex dial plans up. But I just saw that they are not in the template list, I guess we'll have to add this. Then you can essentially say [area1]xxxxxxx for finding the right prefix. Quote Link to comment Share on other sites More sharing options...
Vernon Posted October 11 Report Share Posted October 11 Maybe it would be simpler to teach them to use a prefix when they want to force a particular caller id? These dial plans seem super heavy, and if any of those cities/countries add area codes in the future, you'll have to go back into the dial plan to add them. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted October 11 Author Report Share Posted October 11 Hi , i see you mentioned file areacodes.xml that would be useful for setting such complex dial plans up. But I just saw that they are not in the template list, Could i please get this template as it seems like it would alot of help as you mentioned. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted Monday at 11:33 PM Report Share Posted Monday at 11:33 PM On 10/11/2024 at 2:06 PM, koolandrew said: Could i please get this template as it seems like it would alot of help as you mentioned. Just edit the template page in the browser (inspector) and rename something like ringtones.xml to areacodes.xml. We'll include it in the next build. Quote Link to comment Share on other sites More sharing options...
koolandrew Posted Tuesday at 12:42 AM Author Report Share Posted Tuesday at 12:42 AM i dont understand, what am i supposed to put in there...do you have a template or something. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.