[asterisk-users] Syntax highlight in emacs for editing extensions.ael
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 it? Leandro -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 = 4,n,GotoIfTime(*,*,23,may?holiday,s,1) exten = 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day exten = 4,n,GotoIfTime(*,*,1,aug?holiday,s,1) ; long weekend ... Today is May 1, so why is it going to holiday extension? Is there another dial plan that holidays are defined? I'm using asterisk 1.8.10 -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 = 4,1,GotoIfTime(*,*,1,jan?holiday,s,1) ; new years day exten = 4,n,GotoIfTime(*,*,6,apr?holiday,s,1) ; easter holiday exten = 4,n,GotoIfTime(*,*,23,may?holiday,s,1) exten = 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day exten = 4,n,GotoIfTime(*,*,1,aug?holiday,s,1) ; long weekend ... Today is May 1, so why is it going to holiday extension? Is there another dial plan that holidays are defined? I'm using asterisk 1.8.10 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 List - Non-Commercial Discussion Subject: Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined 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 = 4,1,GotoIfTime(*,*,1,jan?holiday,s,1) ; new years day exten = 4,n,GotoIfTime(*,*,6,apr?holiday,s,1) ; easter holiday exten = 4,n,GotoIfTime(*,*,23,may?holiday,s,1) exten = 4,n,GotoIfTime(*,*,1,|jul?holiday,s,1) ; canada day exten = 4,n,GotoIfTime(*,*,1,aug?holiday,s,1) ; long weekend ... Today is May 1, so why is it going to holiday extension? Is there another dial plan that holidays are defined? I'm using asterisk 1.8.10 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 nor Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 = 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 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] FW: Auto answer Asterisk ; Unable to create channel of type
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 have to use this command #pulseaudio - Restart asterisk and it worked but if pulseaudio is not on asterisk won't work, I'm in the process of fixing this issue. Thanks, -Original Message- From: motty.cruz [mailto:motty.c...@gmail.com] Sent: Thursday, April 19, 2012 2:30 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Auto answer Asterisk ; Unable to create channel of type Hello, I'm trying to get s extensions to autoanswer to Centos computer speakers, the computer is a Dell Optiplex 170L embeded sound card. I'm running Centos 6.2 i386 with Asterisk 1.8.10 Does anybody know how to fix error below? -- Executing [s@default:1] Dial(SIP/publicip-0001, console/sda1,20,A(trek)) in new stack [Apr 19 14:25:25] WARNING[2966]: chan_oss.c:377 find_desc: could not find sda1 [Apr 19 14:25:25] WARNING[2966]: chan_oss.c:850 oss_request: oss_request ty console data 0x0xb6a448e8 sda1 [Apr 19 14:25:25] NOTICE[2966]: chan_oss.c:852 oss_request: Device sda1 not found [Apr 19 14:25:25] WARNING[2966]: app_dial.c:2218 dial_exec_full: Unable to create channel of type 'console' (cause 0 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) -- Executing [s@default:2] Hangup(SIP/publicip-0001, ) in new stack == Spawn extension (default, s, 2) exited non-zero on 'SIP/publicip-0001' #lspci -v 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02) Subsystem: Dell Device 017a Flags: bus master, medium devsel, latency 0, IRQ 17 I/O ports at ee00 [size=256] I/O ports at edc0 [size=64] Memory at feb7fa00 (32-bit, non-prefetchable) [size=512] Memory at feb7f900 (32-bit, non-prefetchable) [size=256] Capabilities: [50] Power Management version 2 Kernel driver in use: Intel ICH Kernel modules: snd-intel8x0 Thanks, -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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 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 = 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 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk go to holiday extension but hoiday is not defined
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. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] FUNC_ODBC expr must be non-null
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 = s,n,Set(ARRAY(torture.phone,torture.calls,torture.name)=${ODBC_TORTURE_QUERY(${CALLERID(number)})}) exten = s,n,Set(torture.calls=${IF($[ ${torture.calls} = 1]?2:1)}) exten = s,n,Return() The problem line is the 3rd Set. What this line does (At least under 1.4.x) is, if the variable ${torture.calls} = 1, then change it to 2, if it has any other value, then change it to 1. I initialize the torture.calls at the beginning of the subroutine, but when the query runs and there is no database entry, it returns null. At that point, it fails. Any suggestions on how to get func_odbc to either leave the initial value alone or is there a better way of handling this? func_odbc.conf entry: [TORTURE_QUERY] dsn=MySQL-torture readsql=SELECT phone, calls, name FROM TMP WHERE phone = ${ARG1} Thanks! Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] FUNC_ODBC expr must be non-null
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 Sent: Tuesday, May 01, 2012 1:56 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] FUNC_ODBC expr must be non-null 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 = s,n,Set(ARRAY(torture.phone,torture.calls,torture.name)=${ODBC_TORTURE_QUERY(${CALLERID(number)})}) exten = s,n,Set(torture.calls=${IF($[ ${torture.calls} = 1]?2:1)}) exten = s,n,Return() The problem line is the 3rd Set. What this line does (At least under 1.4.x) is, if the variable ${torture.calls} = 1, then change it to 2, if it has any other value, then change it to 1. I initialize the torture.calls at the beginning of the subroutine, but when the query runs and there is no database entry, it returns null. At that point, it fails. Any suggestions on how to get func_odbc to either leave the initial value alone or is there a better way of handling this? func_odbc.conf entry: [TORTURE_QUERY] dsn=MySQL-torture readsql=SELECT phone, calls, name FROM TMP WHERE phone = ${ARG1} Thanks! Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] FUNC_ODBC expr must be non-null
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 Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] FUNC_ODBC expr must be non-null
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 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Doug Lytle Sent: Tuesday, May 01, 2012 2:08 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] FUNC_ODBC expr must be non-null 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 Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users