[asterisk-users] Re: AEL2 and the variables

Steve Murphy murf at parsetree.com
Tue Oct 31 18:58:27 MST 2006


On Sun, 2006-10-29 at 22:41 +0100, Dominique Dartois <dom at dartois.org>
wrote:
>         Hi,
>         I am using Asterisk 1.2.12.1 + the AEL2 patch.
>         If I use a variable instead of the extension itself, an
>         incoming call cannot
>         be connected.
>         ${ID-FST1} => Dial(SIP/gs|15|r);   <====== NON ok
>         sip debug shows :
>              Looking for 6674262730 in interne (domain 192.168.1.14)
>              SIP/2.0 404 Not Found
>         Is it a bug or am I doing something wrong?
>         
>         Thank you.

I believe that extension numbers are not meant to be variable
references. Asterisk
provides no mechanism to evaluate the extension number.

However, you **can** use patterns like _667426XXX to activate the
extension
for such numbers. To activate on ANY number, use "_." as a pattern.

I hope this helps.

murf

>         
>         //===============================
>         // extensions.ael2
>         globals {
>             ID-FST1=6674262730;
>             GS=SIP/gs;
>         }
>         
>         context entrant {
>         //    6674262730 => Dial(SIP/gs,15,r);  <====== OK
>             ${ID-FST1} => Dial(SIP/gs|15|r);   <====== NON ok
>         }
>         
>         context interne {
>             includes {
>                 entrant;
>             }
>         }
>         
>         -----
>         Dominique Dartois
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3239 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20061031/849c2e6f/smime.bin


More information about the asterisk-users mailing list