Archived from groups: comp.dcom.voice-over-ip (
More info?)
Ian wrote:
|| "The Cable Guy" <nosmap@nospam.talk21.com> wrote in message
|| news:<xX3Sd.19385$8B3.19179@text.news.blueyonder.co.uk>...
||| Anyone any idea how I can write a dial plan that simply adds 01247
||| to any 6-
||| digit number dialled but leaves numbers starting with 0 to be
||| dialled as
||| entered?
|||
||| Thanks.
||
|| This seems to be the bit you need to set up
|| Looks fairly normal and far simpler that the Cisco ATA
||
|| Subsequence Substitution:
|| A subsequence of keys (possibly empty) can be automatically replaced
|| with a different subsequence
|| using an angle bracket notation: '<' dialed-subsequence ':'
|| transmitted-subsequence '>'. So, for
|| example, "<8:1650>xxxxxxx" would match "85551212" and transmit
|| "16505551212".
||
|| so in your case it would be
||
|| ( 0 xxxx xxxxxx |00 xxxxxx xxxxxx | <:01247> xxxxxx )
||
|| Or thats how it reads and how I woul expect it to work,
|| As the first entry says anything starting 0 with 10 digits to follow
|| send as dialed same for 00 but everything else dial 01247 before it.
|| if that doesnt substitute correctly you may have to do <2:012472>
|| xxxxx etc for 2 to 8
||
|| Good luck
||
|| Ian
(<:01247>[2-9]xxxxxS0|0[1-8]xxxxxxxxxS0|001[2-9]xx[2-9]xxxxxxS0|00[2-9]xxxxx)
The above is what I've ended up with. SO is the send now command. I've not
tested any international calls but the UK part works a treat.
Thanks for your input