Jul 17

New Zealand XML Dialplan for snom IP phones

This is a follow up post to my previous post from back in 2008. Andrew nicely sent me an email the other day saying that he had translated the regular expression based dial plan I created into the snom XML dialplan format. Here's what he cam up with below, thanks Andrew!

<?xml version="1.0" encoding="utf-8"?>
<dialplan>
 <TEMPLATE MATCH="3.." Timeout="1" User="Phone"/> 

 <!-- Emergency Services -->
 <TEMPLATE MATCH="1,1.." Timeout="1" User="Phone"/> 

 <!-- Local and national calling to landlines -->
 <TEMPLATE MATCH="1,[2-9]......" Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0[3-4][2-9]......" Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0[6-7][2-9]......" Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,09[2-9]......" Timeout="1" User="Phone"/> 

 <!-- Free calling (0800, 0508) and expensive (0900) services -->
 <TEMPLATE MATCH="1,0800......" Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0508......" Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0900....." Timeout="1" User="Phone"/> 

 <!-- Vodafone (021) -->
 <TEMPLATE MATCH="1,02102......" Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,021[3-4]....." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,021[6-9]....." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0210[0-1]....." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0210[3-9]....." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,021[1-9]......" Timeout="1" User="Phone"/> 

 <!-- 2Talk VoIP mobile numbers -->
 <TEMPLATE MATCH="1,02889...." Timeout="1" User="Phone"/> 

 <!-- All other mobile numbers -->
 <TEMPLATE MATCH="1,024......." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,027......." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,029......." Timeout="1" User="Phone"/> 

 <!-- Paging services -->
 <TEMPLATE MATCH="1,0261....." Timeout="1" User="Phone"/> 
 <TEMPLATE MATCH="1,0262......" Timeout="1" User="Phone"/> 

 <!-- Default -->
 <TEMPLATE MATCH="*" Timeout="15"/> 
</dialplan>

0 responses to "New Zealand XML Dialplan for snom IP phones"

Leave a comment