On Sun, 2006-10-29 at 22:41 +0100, Dominique Dartois <[EMAIL PROTECTED]>
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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ --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
