[Asterisk-Users] Dial with 44 and +44 prefix
Chris Bagnall
asterisk at minotaur.cc
Mon Oct 31 05:13:03 MST 2005
> One further question, how can I set up a
> line so that if 440 is dialled before a number the 0 is taken
> out so only 44 is actually used?
exten => _440.,1,Dial(IAX2/12345 at XXXX/44${EXTEN:3})
You could probably do it by playing around with different offets as well:
exten => _440.,1,Dial(IAX2/12345 at XXXX/${EXTEN::2}${EXTEN:3})
This would be more flexible if you wanted to do the same for different
country codes, for example:
exten => _NX0.,1,Dial(IAX2/12345 at XXXX/${EXTEN::2}${EXTEN:3})
That would remove the zero from any 2-digit country code.
exten => _NXX0.,1,Dial(IAX2/12345 at XXXX/${EXTEN::3}${EXTEN:4})
That'd do the same thing for a 3-digit country code.
Regards,
Chris
--
C.M. Bagnall, Director, Minotaur I.T. Limited
This email is made from 100% recycled electrons
More information about the asterisk-users
mailing list