[asterisk-users] command-line dialplan compiler
Hello listers, Still plodding along in the 1.4 tree, though I've started to dabble in 1.6 land. Today's adventure involves a 2600 line dialplan. My friend Google only points me to an antique java script and a bunch of GUI dialplan creators. What is out there that will point out dialplan errors/problems besides just watching the CLI output and trying to figure out with line out of 90 that my ast_yyerror actually occurred in? Regards, Danny Nicholas -- _ -- 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] Command line
Hi Im pretty new to using Asterisk and have searched to find an answer to my question but have failed to. I was wondering if you can use Asterisk from the command line to make it make an outgoing call and issue other commands whilst its in the call? Sort of like when you use Minicom with a modem connected to a serial port and send it AT commands. Thanks Tony -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/11/2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/11/2005 ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Command line
On Nov 25, 2005, at 7:33 AM, Tony Spencer wrote: Hi I’m pretty new to using Asterisk and have searched to find an answer to my question but have failed to. I was wondering if you can use Asterisk from the command line to make it make an outgoing call and issue other commands whilst it’s in the call? Sort of like when you use Minicom with a modem connected to a serial port and send it AT commands. Thanks Tony Tony, If you have a sound card installed and properly configured in your Asterisk server, then you can plug in a microphone and headset and make calls from the CLI using the dial command. If you want to automate having the system make phone calls, google and search voip-info.org for info on .call files. Basically, you create a file that specifies to asterisk where to call, using which channel, and what to do once the call is connnected. You then copy the file to /var/spool/asterisk/outgoing and the call is executed as defined. Tom Tom Rymes Cascade Link Systems www.cascadelinksystems.com (603) 375-1414 Intelligent technology solutions for small businesses. ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Command line
For an example here is what I setup to call out, we have a job that runs on our mainframe, when the job completes it ftps flag1.txt to ourasterisk server, the .bash program is run from the crontabat a certain time and notifiy staff if the job is not complete at that time. It will keep calling (using phoneme[1-3].call until someone acknowleges the alert by pressing 1. There might bea betterway of doing this using AGI (or another way), but this is what I came up with. --- extensions.conf --- [phonehome] exten = t,1,Playback(connection-timed-out)exten = t,2,Playback(goodbye)exten = t,3,Hangup() exten = ,1,Playback(something-terribly-wrong)exten = ,2,Playback(to-confirm-wakeup)exten = ,3,Playback(press)exten = ,4,SayDigits(1)exten = ,5,Read(ACCEPTCALL|1-yes-2-no|1) ; (repeatoptions) exten = ,6,GotoIf($[${ACCEPTCALL} = ] ?,9)exten = ,7,GotoIf($[${ACCEPTCALL} = 2] ?,9)exten = ,8,GotoIf($[${ACCEPTCALL} = 1] ?,96:,1)exten = ,9,Playback(auth-thankyou) exten = ,10,Playback(goodbye)exten = ,11,Hangup() exten = ,96,System(/bin/touch /phonehome/ack.flag)exten = ,97,Playback(auth-thankyou)exten = ,98,Playback(goodbye)exten = ,99,Hangup() --- phoneme1.call --- Channel: Zap/g2/5551212MaxRetries: 0RetryTime: 60WaitTime: 30Context: phonehomeExtension: Priority: 1 --- phonehome.bash --- if [ -e /home/mainframe/flag1.txt ] then echo job completed exit;firm -f /phonehome/ack.flagwhile truedo cp -f /phonehome/phoneme1.call /var/spool/asterisk/outgoing while [ -e /var/spool/asterisk/outgoing/phoneme1.call ] do sleep 5 done if [ -e /phonehome/ack.flag ] then echo ack!! exit; else echo no ack fi cp -f /phonehome/phoneme2.call /var/spool/asterisk/outgoing while [ -e /var/spool/asterisk/outgoing/phoneme2.call ] do sleep 5 done if [ -e /phonehome/ack.flag ] then echo ack!! exit; else echo no ack fi cp -f /phonehome/phoneme3.call /var/spool/asterisk/outgoing while [ -e /var/spool/asterisk/outgoing/phoneme3.call ] do sleep 5 done if [ -e /phonehome/ack.flag ] then echo ack!! exit; else echo no ack fidone On 11/25/05, Tom Rymes [EMAIL PROTECTED] wrote: On Nov 25, 2005, at 7:33 AM, Tony Spencer wrote: Hi I'm pretty new to using Asterisk and have searched to find an answer to my question but have failed to. I was wondering if you can use Asterisk from the command line to make it make an outgoing call and issue other commands whilst it's in the call? Sort of like when you use Minicom with a modem connected to a serial port and send it AT commands.Thanks TonyTony,If you have a sound card installed and properly configured in your Asterisk server, then you can plug in a microphone and headset andmake calls from the CLI using the dial command.If you want to automate having the system make phone calls, googleand search voip-info.org for info on .call files. Basically, youcreate a file that specifies to asterisk where to call, using whichchannel, and what to do once the call is connnected. You then copythe file to /var/spool/asterisk/outgoing and the call is executed as defined.TomTom RymesCascade Link Systemswww.cascadelinksystems.com(603) 375-1414Intelligent technology solutions for small businesses. ___--Bandwidth and Colocation sponsored by Easynews.com --Asterisk-Users mailing list Asterisk-Users@lists.digium.comhttp://lists.digium.com/mailman/listinfo/asterisk-usersTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Command line
I was wondering if you can use Asterisk from the command line to make it make an outgoing call and issue other commands whilst it's in the call? Sort of like when you use Minicom with a modem connected to a serial port and send it AT commands. I would suggest call files or the manager api, depending on what you are trying to do. Call files are probably easier to work with for quick and dirty jobs. Using the manager api lets you make the call and monitor it also from a separate program otuside of asterisk. Chris ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Command-line dialer/recorder for asterisk?
I'm somewhat new to Asterisk and am tasked with having it perform some automated functions. Is there a way with the current system (and/or extra modules out there to:) 1. Launch something from a command line (on the Asterisk server) to: 2. Dial an extension 3. Issue some DTMF sequences, 4. Record the output to a WAV (or GSM) file, and 5. exit Any quick pointers would be greatly appreciated, Brent ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Command-line dialer/recorder for asterisk?
On Mon, 27 Dec 2004, Brent Goran wrote: I'm somewhat new to Asterisk and am tasked with having it perform some automated functions. Is there a way with the current system (and/or extra modules out there to:) 1. Launch something from a command line (on the Asterisk server) to: 2. Dial an extension 3. Issue some DTMF sequences, 4. Record the output to a WAV (or GSM) file, and 5. exit Any quick pointers would be greatly appreciated, The information in http://www.voip-info.org/wiki-Asterisk+auto-dial+out combined with a bit of extension logic should do the trick. Peter ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users