[Asterisk-Users] Re: Dial with 44 and +44 prefix

Tony Mountifield tony at softins.clara.co.uk
Mon Oct 31 09:00:58 MST 2005


In article <20051031153412.2CE293C1C2 at lists.digium.com>,
James Steven <jsteven at redlinesoftware.co.uk> wrote:
> Hi 
> 
> I have inserted the lines you suggested but Asterisk keeps the 0 when
> dialling with all alternatives.  Also, I am unsure what the phrase
> "${EXTEN::2}${EXTEN:3}" does?  Could you explain this abit?
> 
> My extensions.conf is:
> 
> [default] 
> exten => _0[1-9].,1,Dial(IAX2/12345 at XXXX/44${EXTEN:1})
> exten => _00.,1,Dial(IAX2/12345 at XXXX/${EXTEN:2})
> exten => _440.,1,Dial(IAX2/12345 at XXXX/44${EXTEN:3})
> exten => _09XX,1,Dial(IAX2/12345 at XXXX/${EXTEN})
> exten => _44.,1,Dial(IAX2/12345 at XXXX/${EXTEN})

That last line needs to be:

exten => _44[1-9].,1,Dial(IAX2/12345 at XXXX/${EXTEN})

otherwise it could be overriding the _440. line.

Also, Z is a shorter equivalent to [1-9]

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list