Andre Courchesne - Consultant
2006-Oct-22 05:29 UTC
[asterisk-users] Using variable as a context extension ?
Hi, Is it possible to use a variable as a context extension? For exemple: [some-context] exten => s,1,Background(some_prompt) exten => ${key1},1,Noop(User pressed ${key1}) exten => ${key2},1,Noop(User pressed ${key2}) If now anyone can suggest how I could achieve this? -- ---- Andre Courchesne
It should because it is a variable however you would have to set it some where. Either by creating an extension that sets it or by setting it staticly. ----- Original Message ----- From: "Andre Courchesne - Consultant" <courchea@net-forces.com> To: "Asterisk Users List" <asterisk-users@lists.digium.com> Sent: Sunday, October 22, 2006 2:29 PM Subject: [asterisk-users] Using variable as a context extension ?> Hi, > > Is it possible to use a variable as a context extension? For exemple: > > [some-context] > exten => s,1,Background(some_prompt) > exten => ${key1},1,Noop(User pressed ${key1}) > exten => ${key2},1,Noop(User pressed ${key2}) > > If now anyone can suggest how I could achieve this? > > -- > ---- > Andre Courchesne > _______________________________________________ > --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 >
Andre Courchesne - Consultant
2006-Oct-22 10:22 UTC
[asterisk-users] Using variable as a context extension ?
Actually that would be using call files. Will try it and let everyone know. ------------------------------ Message: 25 Date: Sun, 22 Oct 2006 15:01:41 +0200 From: "Dovid B" <asteriskusers@dovid.net> Subject: Re: [asterisk-users] Using variable as a context extension ? To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Message-ID: <000e01c6f5da$52f10280$16bb11ac@DovidLaptop> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response It should because it is a variable however you would have to set it some where. Either by creating an extension that sets it or by setting it staticly. ----- Original Message ----- From: "Andre Courchesne - Consultant" <courchea@net-forces.com> To: "Asterisk Users List" <asterisk-users@lists.digium.com> Sent: Sunday, October 22, 2006 2:29 PM Subject: [asterisk-users] Using variable as a context extension ?> > Hi, > > > > Is it possible to use a variable as a context extension? For exemple: > > > > [some-context] > > exten => s,1,Background(some_prompt) > > exten => ${key1},1,Noop(User pressed ${key1}) > > exten => ${key2},1,Noop(User pressed ${key2}) > > > > If now anyone can suggest how I could achieve this? > > > > -- > > ---- > > Andre Courchesne > > _______________________________________________ > > --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 > > >