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

James Steven jsteven at redlinesoftware.co.uk
Tue Nov 1 02:55:55 MST 2005


Hi

That seems to work fine now using Z for the last line.  Thanks very much for
your help and explanations.  

Incidentally, we are using VoipTalk but are looking to trial another
provider as have been experiencing the occasional call cut out and quality
issues.  Out of interest, do you have experience of VoipTalk's service or
know of their reputation for service quality?

Regards
James

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Chris Bagnall
Sent: 31 October 2005 15:53
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Dial with 44 and +44 prefix

> 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?

The syntax is {EXTEN:initial offset:length}

So EXTEN:3 chops off the first three digits and has no length, so it goes to
the end of the number.
EXTEN::2 has no offset, so starts from the beginning of the number, but only
has a length of 2 (so you get the first 2 digits) By putting the 2 together
you *should* get the first 2 digits, skip one, then the rest of the number.

> 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})

You're using Voiptalk I see :-)

It may be the sort order of extensions that's catching you out here. If _44.
is matched before _440. then you'll still get the zero in there. Try this
for your last line:

exten => _44N.,1,Dial(IAX2/12345 at XXXX/${EXTEN})
(N should be the same as [1-9] I think)

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
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


This message has been scanned for unacceptable content by 'VITANIUM'
the industry leading email virus and content management service from 
Vitanium Systems. Contact details are available at www.vitanium.com.







More information about the asterisk-users mailing list