Yeah, thanks, that was the way I was leaning to. Just was wanting to know if it was a syntax I was getting wrong, or if there is no other way of doing this.

Julian.

Mojo with Horan & Company, LLC wrote:
I guess you could do this, but it would be a little cumbersome:

context incoming {
    s => {
            if ("${CALLERID(num)}" = "8005551212")
        {
            NoOp("Dir. Asst. calling");
        }
        else if ("${CALLERID(num)}" = "8004444444")
        {
            NoOp("ANI calling");
        }
    }
}



Douglas Garstang wrote:
Yikes! I'm glad I didn't take the plunge into AEL2. Get #include functionality, but lose cid in the dialplan. Hmmm.

-----Original Message-----
From: Julian Lyndon-Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 1:21 PM
To: [email protected]
Subject: [Asterisk-Users] AEL2 and CID


Does anyone know how to get CID working in AEL2 ?

In extensions.conf you can do:

exten => 111/666,1,PlayBack(demo-congrats)
exten => 111/666,2,Hangup()

exten => 111,1,PlayBack(demo-moreinfo)
exten => 111,2,Hangup()

and if callerid 666 dialed 111, they would get demo-congrats, everyone else gets demo-moreinfo.

In AEL:

  111 => {
                 Playback(demo-moreinfo);
                 Hangup();
         };

  111/666 => {
                 Playback(demo-congrats);
                 Hangup();
         };

does not work. It always plays demo-moreinfo.

I cannot find and docs on how to do this.

Anyone got any idea ?

Many thanks.

Julian


_______________________________________________
--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

_______________________________________________
--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



_______________________________________________
--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

Reply via email to