Re: [asterisk-users] Newbie AEL2: Syntax for Hint
Lee, John (Sydney) wrote: > I am struggling to find out how to code hint in AEL2. > > I did hint(Custom:light1) and it keeps complaining about the : (colon). > It works fine for SIP device like hint(SIP/439). > > Anyone who has tried it before? > I just whipped this up to test and it works for me in 1.4.21.2: context nightmode { // When you dial 1000, toggle the state of Custom:nightmode hint(Custom:nightmode) 1000 => { NoOP(${DEVSTATE(Custom:nightmode)}); if (${DEVSTATE(Custom:nightmode)}==UNKNOWN || ${DEVSTATE(Custom:nightmode)}==NOT_INUSE) Set(DEVSTATE(Custom:nightmode)=BUSY); else Set(DEVSTATE(Custom:nightmode)=NOT_INUSE); } } You'll need the DEVSTATE backport in order to use this example. See the links at the bottom of this page: http://www.voip-info.org/wiki/view/Asterisk+func+Devstate -Dave ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Newbie AEL2: Syntax for Hint
> context BLF { > hint(Sip/1000) 1000 => NoOp(); > }; > > Works for me Thanks Eric. I did not experience any problem in hint with SIP. The problem is if you use it with Custom. <>___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Newbie AEL2: Syntax for Hint
On Thu, 2008-09-11 at 17:41 +1000, Lee, John (Sydney) wrote: > Steve, I downloaded the latest Asterisk version (see below). > > *CLI> core show version > Asterisk 1.4.21.2 built by root @ machine1 on a i686 running Linux on > 2008-09-11 06:10:06 UTC > > If I code: > > Hint(Custom:light1) > > It will pass aelparse but when it runs, it says Hint is an unknown > application on the console. > Try : context BLF { hint(Sip/1000) 1000 => NoOp(); }; Works for me Eric Dantie ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Newbie AEL2: Syntax for Hint
Steve, I downloaded the latest Asterisk version (see below). *CLI> core show version Asterisk 1.4.21.2 built by root @ machine1 on a i686 running Linux on 2008-09-11 06:10:06 UTC If I code: Hint(Custom:light1) It will pass aelparse but when it runs, it says Hint is an unknown application on the console. > -Original Message- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Steve Murphy > Sent: Thursday, 11 September 2008 2:13 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Newbie AEL2: Syntax for Hint > > On Wed, 2008-09-10 at 18:10 +1000, Lee, John (Sydney) wrote: > > I am struggling to find out how to code hint in AEL2. > > > > I did hint(Custom:light1) and it keeps complaining about the : (colon). > > It works fine for SIP device like hint(SIP/439). > > > > Anyone who has tried it before? > > Yes, a while back I upgraded AEL to handle both ':' and '&' inside > the hint parens. This should work on 1.4 on up. What version of > asterisk are you using? 1.2? > > murf > > > -- > Steve Murphy > Software Developer > Digium ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Newbie AEL2: Syntax for Hint
*CLI> core show version Asterisk 1.4.13 built by root @ machine1 on a i686 running Linux on 2008-09-10 06:46:17 UTC Thanks Steve. What syntax should I use then? > -Original Message- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Steve Murphy > Sent: Thursday, 11 September 2008 2:13 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Newbie AEL2: Syntax for Hint > > On Wed, 2008-09-10 at 18:10 +1000, Lee, John (Sydney) wrote: > > I am struggling to find out how to code hint in AEL2. > > > > I did hint(Custom:light1) and it keeps complaining about the : (colon). > > It works fine for SIP device like hint(SIP/439). > > > > Anyone who has tried it before? > > Yes, a while back I upgraded AEL to handle both ':' and '&' inside > the hint parens. This should work on 1.4 on up. What version of > asterisk are you using? 1.2? > > murf > > > -- > Steve Murphy > Software Developer > Digium ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Newbie AEL2: Syntax for Hint
On Wed, 2008-09-10 at 18:10 +1000, Lee, John (Sydney) wrote: > I am struggling to find out how to code hint in AEL2. > > I did hint(Custom:light1) and it keeps complaining about the : (colon). > It works fine for SIP device like hint(SIP/439). > > Anyone who has tried it before? Yes, a while back I upgraded AEL to handle both ':' and '&' inside the hint parens. This should work on 1.4 on up. What version of asterisk are you using? 1.2? murf -- Steve Murphy Software Developer Digium smime.p7s Description: S/MIME cryptographic signature ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Newbie AEL2: Syntax for Hint
I am struggling to find out how to code hint in AEL2. I did hint(Custom:light1) and it keeps complaining about the : (colon). It works fine for SIP device like hint(SIP/439). Anyone who has tried it before? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users