I know this one must be easy but I'm an newbye so please help.
In my extensions.conf I want to have a line like:
Exten => 9XXXXXX,1,Dial(Zap/4/${SOMETHING},40,r)
Ie: I want to dial all the XXX-es, but not the 9;
How do I do that? What do I write in place of ${SOMETHING}? Navigating the
wiki didn't provide any usefull advice...
Thanks.
Exten => 9XXXXXX,1,Dial(Zap/4/${EXTEN:1},40,r)
Olivier
-----Message d'origine-----
De : asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] De la part de Cosmin
Prund
Envoy? : samedi 11 f?vrier 2006 12:19
? : asterisk-users@lists.digium.com
Objet : [Asterisk-Users] Dialing part of the extension
I know this one must be easy but I'm an newbye so please help. In my
extensions.conf I want to have a line like:
Exten => 9XXXXXX,1,Dial(Zap/4/${SOMETHING},40,r)
Ie: I want to dial all the XXX-es, but not the 9;
How do I do that? What do I write in place of ${SOMETHING}? Navigating
the wiki didn't provide any usefull advice...
Thanks.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
At 03:18 AM 02/11/2006, you wrote:>Exten => 9XXXXXX,1,Dial(Zap/4/${SOMETHING},40,r) > >Ie: I want to dial all the XXX-es, but not the 9;Exten => 9XXXXXX,1,Dial(Zap/4/${EXTEN:1},40,r) Ira -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 02/10/2006
FYI,
If you want to learn more about why ${EXTEN:1} works, check out the
Asterisk TFOT book, chapters 4 and 5. Page 95 of chapter 5 deals
specifically with the ${EXTEN} variable and the syntax of adding ":1"
(or ":2", ":3", etc.) - good stuff to know.
Check it out: http://www.speakup.nl/en/opensource/asterisktfot/
-MC
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ira
Sent: Saturday, February 11, 2006 12:26 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Dialing part of the extension
At 03:18 AM 02/11/2006, you wrote:>Exten => 9XXXXXX,1,Dial(Zap/4/${SOMETHING},40,r)
>
>Ie: I want to dial all the XXX-es, but not the 9;
Exten => 9XXXXXX,1,Dial(Zap/4/${EXTEN:1},40,r)
Ira
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date:
02/10/2006
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users