[asterisk-users] How to handle "+" prefix
Steve Murphy
murf at digium.com
Sat Sep 1 19:49:17 CDT 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070901/1920bc45/attachment.bin
More information about the asterisk-users
mailing list