RE : [Asterisk-Users] Dialing part of the extension
Exten = 9XX,1,Dial(Zap/4/${EXTEN:1},40,r) Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 = 9XX,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 ___ --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
RE: [Asterisk-Users] Dialing part of the extension
Thanks, it works! -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Olivier.taylor Sent: Saturday, February 11, 2006 1:28 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE : [Asterisk-Users] Dialing part of the extension Exten = 9XX,1,Dial(Zap/4/${EXTEN:1},40,r) Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 = 9XX,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 ___ --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 ___ --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
Re: [Asterisk-Users] Dialing part of the extension
At 03:18 AM 02/11/2006, you wrote: Exten = 9XX,1,Dial(Zap/4/${SOMETHING},40,r) Ie: I want to dial all the XXX-es, but not the 9; Exten = 9XX,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
RE: [Asterisk-Users] Dialing part of the extension
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 = 9XX,1,Dial(Zap/4/${SOMETHING},40,r) Ie: I want to dial all the XXX-es, but not the 9; Exten = 9XX,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 ___ --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
Re: [Asterisk-Users] Dialing part of the extension
On Sat, Feb 11, 2006 at 03:26:26PM -0800, Michael Collins wrote: 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/ Or try http://www.voip-info.org/wiki/view/Asterisk+variables -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend ___ --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