On Thu, 2007-08-30 at 10:17 -0500, Brian West wrote:
> On Aug 30, 2007, at 10:11 AM, Jared Smith wrote:
>
> > On Thu, 2007-08-30 at 15:42 +0100, Adrian Marsh wrote:
> >> Is there a way of using variables within the dialplan, eg:
> >>
> >> [globals]
> >> SOMEVAR=0179344
> >>
> >> [local]
> >> exten => _${SOMEVAR}.,1,NoOp(Dialled own number)
> >
> > No, unfortunately you can't use variables as part of the extension
> > name
> > or pattern match.
> >
>
>
> Since when? I knew you couldn't use them for pattern matches but in
> 1.2 you could at one point I tested this personally.Brian's right. But, the variable has to be a global, and is evaluated at the time the extensions.conf file is read in; so, really, it's a constant, and isn't evaluated at all at dial time. So, if you do one of those "dialplan show" things, you'll see that the variable has been substituted. Just had to fix a bug where AEL didn't provide the same service. murf -- Steve Murphy Software Developer Digium
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
