> 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/[EMAIL PROTECTED]/44${EXTEN:3})

You could probably do it by playing around with different offets as well:

exten => _440.,1,Dial(IAX2/[EMAIL PROTECTED]/${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/[EMAIL PROTECTED]/${EXTEN::2}${EXTEN:3})

That would remove the zero from any 2-digit country code.

exten => _NXX0.,1,Dial(IAX2/[EMAIL PROTECTED]/${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


_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to