Help with writing XML Dialplan

#1
I am trying to write an XML Dialplan which would automatically dial the area code if I enter digits starting with either 5 or 8.

My current dialplan is as follows, howerver for example dialing 5xxxxx does not work.

<?xml version="1.0" encoding="utf-8"?>
<!--
Version 1.2
Snom Voipfone UK Dialplan, 21 January 2016.
This file should be used with Snom devices using the Voipfone service only!
-->
<dialplan>
<template match="100" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="101" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="111" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="123" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="155" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="166" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="2.." timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="999" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="1471" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="1571" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="1572" timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="3......." timeout="4" scheme="sip" user="phone" rewrite="" />
<template match="3.......*..." timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="0[1-3]........." timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="0[7-9]........." timeout="0" scheme="sip" user="phone" rewrite="" />
<template match="00*" timeout="4" scheme="sip" user="phone" rewrite="" />
<template match="*" timeout="4" scheme="sip" user="phone" rewrite="" />
<template match="[5-8]....." prefix="01522" timeout="0" scheme="sip" user="phone" rewrite="" />
</dialplan>

Can someone provide the correct line for my XML file or explain what is wrong so that I can correct it ?

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright 2004 - 2017, iNet Telecoms® Ltd. All rights reserved.