[asterisk-users] Syntax highlight in emacs for editing extensions.ael

2012-05-01 Thread Leandro Dardini
Hello, I was tired of manually aligning ael files in emacs, so I downloaded the .el file on http://www.voip-info.org/wiki/view/EMacs+Asterisk+Syntax+Highlighting Unfortunately there is a problem with switch statement. Do you know of a better .el file or are you good in writing .el files to fix

[asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Joseph
When a call comes in asterisk is forwarding the call to holiday extension, even though the holiday is not defined. Here is my dial plan exten = 4,1,GotoIfTime(*,*,1,jan?holiday,s,1) ; new years day exten = 4,n,GotoIfTime(*,*,6,apr?holiday,s,1) ; easter holiday exten =

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Syco
what is the pipe before jul I don't understand the utility of that | from the doc. On 01/05/2012 17:15, Joseph wrote: When a call comes in asterisk is forwarding the call to holiday extension, even though the holiday is not defined. Here is my dial plan exten =

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Danny Nicholas
Not sure about 1.8 but on 10.X I seem to recall that the Gotoiftime might be case sensitive? -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Syco Sent: Tuesday, May 01, 2012 11:21 AM To: Asterisk Users Mailing

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Doug Lytle
exten = 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day I don't use gotoiftime for holiday matching, but the COMMA PIPE stands out on your example. Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Syco
they say daynames and monthnames are not case-sensitive. the pipe should be used to concatenate several values, it could get the |jul as everything|jul since an empty value before the pipe doesn't have sense? On 01/05/2012 17:23, Doug Lytle wrote: exten =

[asterisk-users] FW: Auto answer Asterisk ; Unable to create channel of type

2012-05-01 Thread motty.cruz
To fix the issue below, Edit /etc/asterisk/modules.conf load = chan_alsa.so noload = chan_oss.so load = chan_console.so Edit /etc/asterisk/extensions.conf exten = s,1,Dial(Console/snd/controlC0,20,A(trek)) exten = s,2,Hangup It worked perfect; one little issue that I have not fix is that I

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Joseph
On 05/01/12 12:23, Doug Lytle wrote: exten = 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day I don't use gotoiftime for holiday matching, but the COMMA PIPE stands out on your example. Doug Thanks, how could I miss that one :-/ What do you use for holiday matching ? -- Joseph --

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Joseph
It should be comma, not pipe. Pipe was used in asterisk 1.4 exten = 4,n,GotoIfTime(*,*,1,jul?holiday,s,1) ; canada day now it is working :-) -- Joseph On 05/01/12 17:26, Syco wrote: they say daynames and monthnames are not case-sensitive. the pipe should be used to concatenate several

Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined

2012-05-01 Thread Doug Lytle
What do you use for holiday matching ? Mysql for the holidays database and Func_ODBC to read it. Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. --

[asterisk-users] FUNC_ODBC expr must be non-null

2012-05-01 Thread Doug Lytle
I'm slowly, but surely converting a 1.4.x dial-plan to an Asterisk 10.3.1 dial-plan, while also converting from mysql to func_odbc. The part of my dial plan that handles the blacklisting of phone numbers reads as: [tele_query] exten = s,1,Set(torture.calls=0) exten =

Re: [asterisk-users] FUNC_ODBC expr must be non-null

2012-05-01 Thread Eric Wieling
If a value can EVER be empty, then you want to use quotes in your expressions. exten = s,n,Set(torture.calls=${IF($[${torture.calls} = 1]?2:1)}) -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Doug Lytle

Re: [asterisk-users] FUNC_ODBC expr must be non-null

2012-05-01 Thread Doug Lytle
If a value can EVER be empty, then you want to use quotes in your expressions. Thanks Eric! It's working great now, I've learned something today. Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor

Re: [asterisk-users] FUNC_ODBC expr must be non-null

2012-05-01 Thread Eric Wieling
You should make sure to read the UPGRADE*.TXT files for 1.4.x on, they are included in your Asterisk source code. I re-read them every couple of months to keep the information fresh. -Original Message- From: asterisk-users-boun...@lists.digium.com