United Kingdom Dial Plan XML for Cisco Phones

United Kingdom Dial Plan XML for Cisco Phones

Being too cheap to pay for the Cisco support contract for our Cisco 7961 series phones and thus not being able to download the dialplan.xml, we’ve constructed one based on this Wikipedia page. The UK telephone numbering plan is seemingly moderately complex and not entirely possible to make a perfect dialplan from. For example, you can have 10 and 11 digit 0800 numbers meaning that the 10 digit ones will have to wait on the timeout of the “Anything else” rule.

The below UK dialplan.xml is tested and shown to work though tweaks and corrections are definitely welcome.

  1. <DIALTEMPLATE>
  2. <TEMPLATE MATCH="999" Timeout="0"/> <!-- Emergency -->
  3. <TEMPLATE MATCH="112" Timeout="0"/> <!-- Emergency -->
  4. <TEMPLATE MATCH="101" Timeout="0"/> <!-- Almost an Emergency -->
  5.  
  6. <TEMPLATE MATCH="100" Timeout="0"/> <!-- Operator -->
  7. <TEMPLATE MATCH="155" Timeout="0"/> <!-- International Operator -->
  8. <TEMPLATE MATCH="123" Timeout="0"/> <!-- Speaking Clock -->
  9.  
  10. <TEMPLATE MATCH="118..." Timeout="0"/> <!-- Men with moustaches et al -->
  11. <TEMPLATE MATCH="116..." Timeout="0"/> <!-- Pan-European Social Help -->
  12.  
  13. <TEMPLATE MATCH="08001111" Timeout="0"/> <!-- Childline. lol -->
  14. <TEMPLATE MATCH="0845464." Timeout="0"/> <!-- NHS Direct et al -->
  15. <TEMPLATE MATCH="0500......" Timeout="0"/> <!-- Apparently 0500 is always 10 digits -->
  16.  
  17. <!-- Uncomment if you care about this one. Worst case, you'll wait 5 seconds -->
  18. <!-- <TEMPLATE MATCH="016977...." Timeout="0"/> --> <!-- Brampton, Carlisle. Also 10 digits -->
  19.  
  20. <TEMPLATE MATCH="00*" Timeout="5"/> <!-- International, 00 prefixed. No fixed length -->
  21. <TEMPLATE MATCH="0.........." Timeout="0"/> <!-- UK 11 digit, 0 prefixed -->
  22.  
  23. <TEMPLATE MATCH="\*.." Timeout="0"/> <!-- Asterisk *.. codes -->
  24.  
  25. <TEMPLATE MATCH="1.." Timeout="0"/> <!-- 1 prefixed 3 digit (internal extensions) -->
  26. <TEMPLATE MATCH="2.." Timeout="0"/> <!-- 2 prefixed 3 digit (internal extensions) -->
  27. <TEMPLATE MATCH="3.." Timeout="0"/> <!-- 3 prefixed 3 digit (internal extensions) -->
  28. <TEMPLATE MATCH="4.." Timeout="0"/> <!-- 4 prefixed 3 digit (internal extensions) -->
  29. <TEMPLATE MATCH="5.." Timeout="0"/> <!-- 5 prefixed 3 digit (internal extensions) -->
  30. <TEMPLATE MATCH="6.." Timeout="0"/> <!-- 6 prefixed 3 digit (internal extensions) -->
  31. <TEMPLATE MATCH="7.." Timeout="0"/> <!-- 7 prefixed 3 digit (internal extensions) -->
  32. <TEMPLATE MATCH="8.." Timeout="0"/> <!-- 8 prefixed 3 digit (internal extensions) -->
  33. <TEMPLATE MATCH="9.." Timeout="0"/> <!-- 9 prefixed 3 digit (internal extensions) -->
  34.  
  35. <TEMPLATE MATCH="*" Timeout="5"/> <!-- Anything else -->
  36. </DIALTEMPLATE>

 

You can also get it at dialplan.xml.