Re: [asterisk-users] AGI and AMI stuff.

2012-11-15 Thread David M. Lee
On Nov 15, 2012, at 10:54 AM, Ken D'Ambrosio wrote: Hey, all. I'm interested in doing some simple, very specific web pages for some of my users -- things like call groups, setting forwarding, and for the receptionist to transfer calls and see calls. Probably do this in Ruby or PHP,

Re: [asterisk-users] AGI and AMI stuff.

2012-11-15 Thread Ken D'Ambrosio
Heh. Shortly after I sent my e-mail, I bumped into the Adhearsion you mentioned, below. Boy, but that looks exactly like what I'm thinking of! Thanks much... -Ken On 2012-11-15 13:08, David M. Lee wrote: On Nov 15, 2012, at 10:54 AM, Ken D'Ambrosio wrote: Hey, all. I'm interested in

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread Hoggins!
Hello, I experience the same problem, and I would really appreciate if someone could give us a hint on that. Hoggins! Le 17/09/2012 19:22, Mehdi Rahimi a écrit : Hi all, I need to handle a problem from AGI please guide me in extensions_custom.conf : exten = s,1,Answer exten =

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread SamyGo
Hi, Just following this thread for few days, I've some basic troubleshooting questions for you. 1- What do you mean by calling from landline? How is your Landline /mobile reaching your asterisk box ? is there a Hardware card ! or a VoIP provider. 2- Enable SIP traces and keep an eye on the

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread Mehdi Rahimi
ِDear Sammy, Thank you for your following , 1- Land line i mean telco company which is calling to my server , i use FXO VOIP CARD (ATCOM 4 port) and test on a gateway too. 2-please explain me more about Enable SIP traces and keep an eye on the originating BYE request Regards, Mehdi On Tue, Sep

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread Tony Mountifield
In article caehsoweantztyoebdobjchoeszhfk_z9sigaujsij15xx-u...@mail.gmail.com, Mehdi Rahimi mrm.ci...@gmail.com wrote: Hi all, I need to handle a problem from AGI please guide me in extensions_custom.conf : exten = s,1,Answer exten = s,n,AGI(hang.php) exten = s,n,Hangup in

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread SamyGo
Hi, So basically the FXO cards configurations need to be tweaked i.e hanguponpolarityinverse=yes etc. Since this is a Hangup request initiated by the SIP client, Asterisk then atleast it should close all the media streams and channel should get deleted. Keeping an eye on BYE : *CLI sip set debug

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread Tony Mountifield
In article cajujwtig7yzk4+kb3c6sdu6zhb_+vwsg-oy0pibw0maeeed...@mail.gmail.com, SamyGo govoi...@gmail.com wrote: So basically the FXO cards configurations need to be tweaked i.e hanguponpolarityinverse=yes etc. Since this is a Hangup request initiated by the SIP client, Asterisk then atleast

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread Mehdi Rahimi
Hi Tony, Thank you for your attention , and appreciate your contribution . You are right we can not do anything till the caller hangup BUT how can we prevent to hearing DTMF when someone else is trying on another extension ? to clearance : someone calls (from landlines os mobile , no difference)

Re: [asterisk-users] AGI HANGUP PROBLEM

2012-09-18 Thread A J Stiles
On Tuesday 18 September 2012, Mehdi Rahimi wrote: Hi Tony, Thank you for your attention , and appreciate your contribution . You are right we can not do anything till the caller hangup BUT how can we prevent to hearing DTMF when someone else is trying on another extension ? to clearance :

[asterisk-users] AGI problem

2012-09-17 Thread Mehdi Rahimi
Hello All, I need to use agi to handle some issue , after finishing agi i want to hang up the channel , if i call from an extension there is no problem but i want to be the same for PSTN (outside) caller , if someone call asterisk show the hang up channel but the caller is not disconnected

[asterisk-users] AGI HANGUP PROBLEM

2012-09-17 Thread Mehdi Rahimi
Hi all, I need to handle a problem from AGI please guide me in extensions_custom.conf : exten = s,1,Answer exten = s,n,AGI(hang.php) exten = s,n,Hangup in hang.php : #!/usr/bin/php -q ? set_time_limit(30); require('phpagi.php'); error_reporting(E_ALL); $agi = new AGI();

[asterisk-users] $agi-hangup() Does not hang up the channel

2012-09-16 Thread Mehdi Rahimi
Hello All, I need to use agi to handle some issue , after finishing agi i want to hang up the channel , if i call from an extension there is no problem but i want to be the same for PSTN (outside) caller , if someone call asterisk show the hang up channel but the caller is not disconnected and if

Re: [asterisk-users] $agi-hangup() Does not hang up the channel

2012-09-16 Thread Raj Mathur (राज माथुर)
On Monday 17 Sep 2012, Mehdi Rahimi wrote: I need to use agi to handle some issue , after finishing agi i want to hang up the channel , if i call from an extension there is no problem but i want to be the same for PSTN (outside) caller , if someone call asterisk show the hang up channel but

Re: [asterisk-users] $agi-hangup() Does not hang up the channel

2012-09-16 Thread Mehdi Rahimi
Thank you for your reply i did it in both ways (AGI and DIALPLAN) but not working. so you mean it is because of telco ? what about digital lines such as E1 ? Regards, Mehdi On Mon, Sep 17, 2012 at 8:57 AM, Raj Mathur (राज माथुर) r...@linux-delhi.org wrote: On Monday 17 Sep 2012, Mehdi Rahimi

Re: [asterisk-users] $agi-hangup() Does not hang up the channel

2012-09-16 Thread Mehdi Rahimi
This is happen whenever caller calls from mobile phone and if the caller calls from analog line i can handle with : ;exten = s,n,Playtones(congestion) ; send the audio sequence that humans understand means congestion ;exten = s,n,Congestion(5) ; signal the other end of congestion. Wait for

Re: [asterisk-users] $agi-hangup() Does not hang up the channel

2012-09-16 Thread Raj Mathur (राज माथुर)
On Monday 17 Sep 2012, Mehdi Rahimi wrote: Thank you for your reply i did it in both ways (AGI and DIALPLAN) but not working. so you mean it is because of telco ? what about digital lines such as E1 ? From my experience: the call gets disconnected if the called party executes HangUp on a

[asterisk-users] AGI not generating sip 180/183 status

2012-07-31 Thread Marek Cervenka
hello, i have strange problem with AGI (asterisk 1.8.10.0) when i use Dial from dialplan everything is ok when i dial from AGI script there is missing SIP Status 180 ringing and 183 session progress any ideas? DIAL without AGI 196.356479 10.0.0.193 - 10.0.0.213 SIP/SDP Request: INVITE

Re: [asterisk-users] AGI variables being wrong

2012-03-30 Thread Mikhail Lischuk
Warren Selby wrote 29.03.2012 22:46: To do this, you change your features.conf setting like so: parse = *9,peer/both,Macro,Parse The same result when I changed to Macro. I believe that it's true that callerid on outgoing call is crap shoot. Here is output: -- Executing

Re: [asterisk-users] AGI variables being wrong

2012-03-30 Thread Warren Selby
On Fri, Mar 30, 2012 at 8:43 AM, Mikhail Lischuk mlisc...@itx.com.uawrote: ** Warren Selby wrote 29.03.2012 22:46: To do this, you change your features.conf setting like so: parse = *9,peer/both,Macro,Parse The same result when I changed to Macro. I believe that it's true that

Re: [asterisk-users] AGI variables being wrong

2012-03-30 Thread Mikhail Lischuk
Warren Selby wrote 30.03.2012 18:37: A couple things - what version of asterisk are you using? Are you actually using zaptel or do you have DAHDI as your interface to your TDM cards? Asterisk SVN-branch-1.4-r359615 I have to work with wicked Tormenta cards with weird chip which requires

[asterisk-users] AGI variables being wrong

2012-03-29 Thread Mikhail Lischuk
Greetings! I have the following line in features.conf: parse = *9,peer/both,AGI,/etc/asterisk/agi/map.pl What that script does is parsing AGI variables and doing some things based on them, nothing special. During outgoing call, those variables get messed up. Let's look at an example:

[asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread bilal ghayyad
Hi All; I know that I can use the AGI to call (run) a script (php or python or any other kind of scripts), but the question is: If I have information that I need to build a decision in the extensions.conf based on it, and these informations can be obtained using this script, so how I will

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Alex Balashov
Easiest thing is to have your AGI script set channel variables, which can be read in the dial plan. -- This message was painstakingly thumbed out on my mobile, so apologies for brevity and errors. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Atlanta, GA

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Eric Wieling
(VMCOUNT(1234@accounting)); $vmcount = $tmp[data]; -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bilal ghayyad Sent: Saturday, March 10, 2012 3:27 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Steve Edwards
On Sat, 10 Mar 2012, bilal ghayyad wrote: If I have information that I need to build a decision in the extensions.conf based on it, and these informations can be obtained using this script, so how I will read these informations? What is the method to read it from the database and store it in

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Steve Edwards
On Sat, 10 Mar 2012, Steve Edwards wrote: The retrieved row contains a bunch (up to about a hundred) of columns, most s/row/rows/ -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice:

[asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Chris Bagnall
Greetings list, I've done AGI scripting before, but in the past I've always wanted control to be returned to the dialplan as soon as possible. However, today I have a scenario where I want the script to remain running during the playback of a file so that I can read DTMF at the end of

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Zohair Raza
Try passing escape character GET DATA $filename $timeout $max_digits $escape_character Regards, Zohair Raza On Wed, Feb 22, 2012 at 6:40 PM, Chris Bagnall aster...@lists.minotaur.ccwrote: Greetings list, I've done AGI scripting before, but in the past I've always wanted control to be

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Danny Nicholas
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Zohair Raza Sent: Wednesday, February 22, 2012 8:50 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI: blocking script until playback complete Try passing escape character GET DATA $filename

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Chris Bagnall
On 22/2/12 2:55 pm, Danny Nicholas wrote: You don't state the Asterisk version you are running, but personal experience tells me you'd better invest in some Rogaine if you're depending on the built-in stuff from AGI for DTMF input. I have personally wasted weeks trying it. Sorry, should have

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Chris Bagnall
On 22/2/12 2:50 pm, Zohair Raza wrote: Try passing escape character GET DATA $filename $timeout $max_digits $escape_character Not sure I follow - according to the docs, there is no parameter $escape_character The problem seems to be that GET DATA returns control to the script before the

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Eric Wieling
Bagnall Sent: Wednesday, February 22, 2012 10:20 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] AGI: blocking script until playback complete On 22/2/12 2:50 pm, Zohair Raza wrote: Try passing escape character GET DATA $filename $timeout $max_digits $escape_character Not sure I

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Ron Bergin
Chris Bagnall wrote: Greetings list, I've done AGI scripting before, but in the past I've always wanted control to be returned to the dialplan as soon as possible. However, today I have a scenario where I want the script to remain running during the playback of a file so that I can read

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Danny Nicholas
22, 2012 9:14 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] AGI: blocking script until playback complete On 22/2/12 2:55 pm, Danny Nicholas wrote: You don't state the Asterisk version you are running, but personal experience tells me you'd better invest in some Rogaine

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Zohair Raza
I gave it from phpagi. It works for me using phpagi's function get_data http://phpagi.sourceforge.net/phpagi22/api-docs/phpAGI/AGI.html Regards, Zohair Raza On Wed, Feb 22, 2012 at 7:20 PM, Chris Bagnall aster...@lists.minotaur.ccwrote: The problem seems to be that GET DATA returns control

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Chris Bagnall
On 22/2/12 3:39 pm, Ron Bergin wrote: Have you tried increasing the timeout value in the command? To me, it appears to be too short. Try setting it to 5. Thanks for the suggestion - I tried 5, but no difference, it's not waiting at _all_ for the playback to complete. Just for

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Steve Edwards
On Wed, 22 Feb 2012, Chris Bagnall wrote: However, today I have a scenario where I want the script to remain running during the playback of a file so that I can read DTMF at the end of playback. If by 'remain running' you mean 'do other stuff while the file is playing' you can stream the

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Steve Edwards
On Wed, 22 Feb 2012, Zohair Raza wrote: Try passing escape character GET DATA $filename $timeout $max_digits $escape_character Why? Is this 'extra' parameter documented in your version of Asterisk? -- Thanks in advance,

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Steve Edwards
On Wed, 22 Feb 2012, Danny Nicholas wrote: So, in my opinion, you would be better off using the dialplan and two agi's if you need DTMF input between. I've written complete 'applications*' as single AGIs so the combination of STREAM FILE and WAIT FOR DIGIT works reliably for me. *)

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Eric Wieling
-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards Sent: Wednesday, February 22, 2012 4:25 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI: blocking script until playback complete On Wed, 22 Feb

Re: [asterisk-users] AGI: blocking script until playback complete

2012-02-22 Thread Danny Nicholas
, 2012 4:02 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI: blocking script until playback complete Yes, but it doesn't seem to indicate if the timeout is in seconds of milliseconds

[asterisk-users] AGI with wrong ${AGISTATUS} Value

2012-02-09 Thread Antônio Theóphilo
Hi everybody We're facing a strange problem with Asterisk (1.8.2.3) executing an AGI. The script (python) is updated and after a invocation by the dialplan, the new code is executed but the ${AGISTATUS} variable shows the wrong value. The right value only appears if a 'core reload' is executed

[asterisk-users] AGI script that uses google's text to speech engine

2011-12-13 Thread Lefteris Zafiris
Hello, version 0.3 of the asterisk-googletts AGI script just got released, most noticeable changes are: The script can now be used to easily build IVRs. Fixed compatibility with asterisk 1.4 and older. Fixed compatibility with older perl versions(5.8.8). Better input handling. The latest

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread bakko
:42 PM Subject: [asterisk-users] AGI script that uses google's text to speech engine Hello, I have written an AGI script for asterisk that uses google translate for text to speech synthesis. It supports a variety of different languages, local caching for the voice data and wideband audio

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Kingsley Tart
Hi. Aside from converting spaces to plus signs, you don't encode any special characters before putting them in the URL. It might be safer to run $line through some sort of encoding before calling Google with it, even if most special characters probably don't result in any sound. Google say and if

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Lefteris Zafiris
On Thu, 1 Dec 2011 09:43:29 -0500 bakko asannu...@gmail.com wrote: Hello, when I use the Agi, sometimes not play the phrase: WARNING[30391]: file.c:650 ast_openstream_full: File ggl_U0sBo0 does not exist in any format Regards Seems like the script failed to convert the mp3 data that

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Danny Nicholas
Of Kingsley Tart Sent: Thursday, December 01, 2011 11:24 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI script that uses google's text to speech engine Hi. Aside from converting spaces to plus signs, you don't encode any special characters before

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Lefteris Zafiris
On Thu, 01 Dec 2011 17:23:59 + Kingsley Tart kings...@skymarket.co.uk wrote: Hi. Aside from converting spaces to plus signs, you don't encode any special characters before putting them in the URL. It might be safer to run $line through some sort of encoding before calling Google with it,

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Lefteris Zafiris
On Thu, 1 Dec 2011 11:35:21 -0600 Danny Nicholas da...@debsinc.com wrote: I personally don't like the use of mpg123 for playback - would prefer use of the internal Playback/background functions. Still seems to be a nice effort though. mpg123 used to convert the mp3 data that we get from

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Torbjörn Abrahamsson
with asterisk 1.2...) BR, Torbjörn Abrahamsson -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lefteris Zafiris Sent: den 1 december 2011 18:34 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Lefteris Zafiris
On Thu, 1 Dec 2011 21:51:21 +0100 Torbjörn Abrahamsson torbjorn.abrahams...@gmail.com wrote: This is because you need to add /tmp to the STREAM command, ie: print STREAM FILE /tmp/$tmpname \$intkey\\n; $tmpname seems to not contain the path, so it will look in /var/lib/asterisk/sounds for

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Torbjörn Abrahamsson
:48 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] AGI script that uses google's text to speech engine On Thu, 1 Dec 2011 21:51:21 +0100 Torbjörn Abrahamsson torbjorn.abrahams...@gmail.com wrote: This is because you need to add /tmp to the STREAM command, ie: print STREAM

Re: [asterisk-users] AGI script that uses google's text to speech engine

2011-12-01 Thread Lefteris Zafiris
On Thu, 1 Dec 2011 23:23:56 +0100 Torbjörn Abrahamsson torbjorn.abrahams...@gmail.com wrote: This was run on an Fedora 8 machine, with perl 5.8.8. I also found it odd that the path was not included... // T It seems this is an issue with older versions of perl or at least with 5.8.8. Since

[asterisk-users] AGI script that uses google's text to speech engine

2011-11-30 Thread Lefteris Zafiris
Hello, I have written an AGI script for asterisk that uses google translate for text to speech synthesis. It supports a variety of different languages, local caching for the voice data and wideband audio. The voice in most languages is female and the quality of the synthesized speech is very high.

[asterisk-users] AGI not Installed?

2011-10-12 Thread Nick Khamis
Hello Everyone, I am trying to get AGI going. The command agi show commands yields: DeadCommand Description No answer Not available Yes asyncagi break Not available No channel status Not available

Re: [asterisk-users] AGI not Installed?

2011-10-12 Thread Tarek Sawah
: sym...@gmail.com To: asterisk-users@lists.digium.com Subject: [asterisk-users] AGI not Installed? Hello Everyone, I am trying to get AGI going. The command agi show commands yields: DeadCommand Description No answer Not available

Re: [asterisk-users] AGI Problem

2011-09-27 Thread Mehmet Avcioglu
Danny's suggestion of using System instead of AGI was correct, it was wrong of me to use AGI here as there is no communication. The same script does communicate with asterisk when executed with different options, so I had just kept the same line using different options at different places.

Re: [asterisk-users] AGI Problem

2011-09-27 Thread Steve Edwards
On Tue, 27 Sep 2011, Mehmet Avcioglu wrote: Today I changed the AGI calls to System at places where there is no response back to asterisk. Kept everything the same, instead of AGI(script.php,var1,var2) made it System(/path/script.php var1 var2) and it worked without a problem. This way I have

Re: [asterisk-users] AGI Problem

2011-09-26 Thread Mehmet Avcioglu
Thanks for the response. Although I had already gone thorough a lot of these types of QAs during my own problem solving, your suggestions did bring a couple that I had not. In no particular order... Earlier, you suspected receiving a signal was causing your problem. Instead of ignoring

Re: [asterisk-users] AGI Problem

2011-09-26 Thread Steve Edwards
On Sat, 24 Sep 2011, Steve Edwards wrote: Instead of ignoring the signal, how setting up a handler and logging the reception? On Mon, 26 Sep 2011, Mehmet Avcioglu wrote: The program is written in a very top to bottom way (himm stateless? non-oo? not sure what to call it) and would be really

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Mehmet Avcioglu
On Sep 23, 2011, at 8:01 PM, Mehmet Avcioglu wrote: I have an AGI script that occasionally disappears without completing its action and asterisk logs the following. Local/0123456@context-f46e;1AGI Script script.php completed, returning 4 Spawn extension (context, 0123456, 2) exited

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Sam Govind
How much time your AGI is taking? Check if it is completing its task and not killed by asterisk. I guess we've 6~7 seconds before asterisk kills all call channel and related tasks. On Sat, Sep 24, 2011 at 3:21 PM, Mehmet Avcioglu meh...@activecom.netwrote: On Sep 23, 2011, at 8:01 PM, Mehmet

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Mehmet Avcioglu
Thanks for the response. Asterisk logs the execution of the AGI and script completed messages within the same second, so less than a second. -- Mehmet On Sep 24, 2011, at 3:34 PM, Sam Govind wrote: How much time your AGI is taking? Check if it is completing its task and not killed by

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Sam Govind
Thats wicked !! hmmm stop your asterisk (if u can afford) and run it like asterisk -cvg and then make a call.. see whats your AGI doing in there !! On Sat, Sep 24, 2011 at 5:43 PM, Mehmet Avcioglu meh...@activecom.netwrote: Thanks for the response. Asterisk logs the execution of the AGI

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Mehmet Avcioglu
Out of about 18000 instances this problem occurred 48 times yesterday. So it has been pretty much impossible for me to replicate it under test conditions. Thanks -- Mehmet On Sep 24, 2011, at 4:00 PM, Sam Govind wrote: Thats wicked !! hmmm stop your asterisk (if u can afford) and run it

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Sam Govind
Should we consider it ignorable or you are still interested in resolving ! Best of Luck in any case ! On Sat, Sep 24, 2011 at 6:16 PM, Mehmet Avcioglu meh...@activecom.netwrote: Out of about 18000 instances this problem occurred 48 times yesterday. So it has been pretty much impossible for me

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Mehmet Avcioglu
Thanks for the help. 48 times out of 18000 should be ignorable in most cases but it required human intervention 48 times.:) Obviously if there is no other way I'll find a way to automate that human intervention somehow.. Thanks again. -- Mehmet On Sep 24, 2011, at 4:34 PM, Sam Govind wrote:

Re: [asterisk-users] AGI Problem

2011-09-24 Thread Steve Edwards
On Sat, 24 Sep 2011, Mehmet Avcioglu wrote: Thanks for the help. 48 times out of 18000 should be ignorable in most cases but it required human intervention 48 times.:) Obviously if there is no other way I'll find a way to automate that human intervention somehow.. Thanks again. In no

[asterisk-users] AGI Problem

2011-09-23 Thread Mehmet Avcioglu
Hello, I have an AGI script that occasionally disappears without completing its action and asterisk logs the following. Local/0123456@context-f46e;1AGI Script script.php completed, returning 4 Spawn extension (context, 0123456, 2) exited non-zero on 'Local/0123456@context-f46e;1' I

Re: [asterisk-users] AGI Problem

2011-09-23 Thread Danny Nicholas
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mehmet Avcioglu Sent: Friday, September 23, 2011 12:02 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] AGI Problem Hello, I have an AGI script

Re: [asterisk-users] AGI Problem

2011-09-23 Thread Mehmet Avcioglu
On Sep 23, 2011, at 8:07 PM, Danny Nicholas wrote: Just a WAG - 4 is the error level returned by your php script, where it normally returns 0. Yes would thing so. But at no place in my script I intentionally exit with 4. I believe 4 is SIGILL (Illegal Instruction) so my script might be seg

Re: [asterisk-users] AGI Problem

2011-09-23 Thread Kevin P. Fleming
On 09/23/2011 12:16 PM, Mehmet Avcioglu wrote: On Sep 23, 2011, at 8:07 PM, Danny Nicholas wrote: Just a WAG - 4 is the error level returned by your php script, where it normally returns 0. Yes would thing so. But at no place in my script I intentionally exit with 4. I believe 4 is SIGILL

[asterisk-users] AGI dialplan

2011-08-16 Thread Khaled W. Chehab
{\rtf1\ansi\ansicpg1252\fromhtml1 \fbidis \deff0{\fonttbl {\f0\fswiss\fcharset0 Arial;} {\f1\fmodern Courier New;} {\f2\fnil\fcharset2 Symbol;} {\f3\fmodern\fcharset0 Courier New;}} {\colortbl\red0\green0\blue0;\red0\green0\blue255;} \uc1\pard\plain\deftab360 \f0\fs24 {\*\htmltag19 html

[asterisk-users] Agi script for working hours PBX

2011-06-27 Thread mahesh katta
Hi , can you any buddy provide agi script in perl or php for, only working hours incomming calls forward to his cellno., and after working hours should be play one playback msg then forward voicemail to his extension. working hours(sun - thu, 9:00 to 19:00) ex: dialplan exten =

Re: [asterisk-users] Agi script for working hours PBX

2011-06-27 Thread Alex Balashov
On 06/27/2011 05:30 AM, mahesh katta wrote: can you any buddy provide agi script in perl or php for, only working hours incomming calls forward to his cellno., and after working hours should be play one playback msg then forward voicemail to his extension. working hours(sun - thu, 9:00 to

Re: [asterisk-users] Agi script for working hours PBX

2011-06-27 Thread Satish Barot
Wasn't that helpful? http://lists.digium.com/pipermail/asterisk-users/2011-June/264082.html Use GotoIfTime in agi of your choice with condition part being calculated dynamically as per your requirement. But I really don't see any usefulness of AGI if your working hours are fixed i.e. Mon - Thu,

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread mahesh katta
On Mon, Jun 6, 2011 at 9:42 AM, A E [Gmail] all.efor...@gmail.com wrote: Hello, using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n' dialplan: exten = 5150,1,Answer() same = n,Set(CHANNEL(language)=en_AU) same

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread Steve Edwards
On Mon, 6 Jun 2011, A E [Gmail] wrote: Hello,using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n' What gives? spent 2 hrs Googling but nothing! :( Maybe 1.5 hrs should have been spent reading :) One line does not an

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread A E [Gmail]
On Mon, Jun 6, 2011 at 12:12 AM, A E [Gmail] all.efor...@gmail.com wrote: Hello, using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n' dialplan: exten = 5150,1,Answer() same = n,Set(CHANNEL(language)=en_AU) same

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread A E [Gmail]
On Mon, Jun 6, 2011 at 2:06 AM, mahesh katta maheshka...@flexydial.comwrote: On Mon, Jun 6, 2011 at 9:42 AM, A E [Gmail] all.efor...@gmail.com wrote: Hello, using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n'

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread A E [Gmail]
On Mon, Jun 6, 2011 at 2:06 AM, Steve Edwards asterisk@sedwards.comwrote: On Mon, 6 Jun 2011, A E [Gmail] wrote: Hello,using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n' What gives? spent 2 hrs Googling but

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread Steve Edwards
On Mon, Jun 6, 2011 at 2:06 AM, Steve Edwards asterisk@sedwards.com wrote: AGI is an interface. It consists of reading the AGI environment from STDIN and then, writing requests on STDOUT and reading the response from STDIN. On Mon, 6 Jun 2011, A E [Gmail] wrote: Right! I did read that,

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread A E [Gmail]
On Mon, Jun 6, 2011 at 2:26 AM, Steve Edwards asterisk@sedwards.comwrote: On Mon, Jun 6, 2011 at 2:06 AM, Steve Edwards asterisk@sedwards.com wrote: AGI is an interface. It consists of reading the AGI environment from STDIN and then, writing requests on STDOUT and reading the

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread Steve Edwards
On Mon, Jun 6, 2011 at 2:26 AM, Steve Edwards asterisk@sedwards.com wrote: I strongly suggest using an existing library for the language of your choice. On Mon, 6 Jun 2011, A E [Gmail] wrote: Copy that. Not planning to write an AGI script in bash actually...it will be written in C#

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread Tony Mountifield
In article banlktikpxc_jk5xvhyx9akakltvl0v6...@mail.gmail.com, A E [Gmail] all.efor...@gmail.com wrote: Hello, using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n' dialplan: exten = 5150,1,Answer() same =

Re: [asterisk-users] AGI STREAM FILE not working?

2011-06-06 Thread A E [Gmail]
On Mon, Jun 6, 2011 at 10:39 AM, Tony Mountifield t...@mountifield.orgwrote: In article banlktikpxc_jk5xvhyx9akakltvl0v6...@mail.gmail.com, A E [Gmail] all.efor...@gmail.com wrote: Hello, using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e

[asterisk-users] AGI STREAM FILE not working?

2011-06-05 Thread A E [Gmail]
Hello, using 1.8.4. using a very simple local AGI script in bash which has only one line in it: echo -e 'STREAM FILE welcome 123 \n' dialplan: exten = 5150,1,Answer() same = n,Set(CHANNEL(language)=en_AU) same = n,AGI(testagi.sh) same = n,Hangup console output: -- Executing

Re: [asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command

2011-04-30 Thread Pezhman Lali
Dear try phpagi. it has a lot of useful functions. in this scenario you will lose your digit, set a check point between each digit gathering best On Wed, Apr 27, 2011 at 6:17 PM, David asterisk@spam.lublink.netwrote: Hi, Consider the following situation : SIP/asterisk-001dAGI Rx

[asterisk-users] AGI WAIT FOR DIGIT - key press BEFORE command

2011-04-27 Thread David
Hi, Consider the following situation : SIP/asterisk-001dAGI Rx WAIT FOR DIGIT 3000 SIP/asterisk-001dAGI Tx 200 result=48 SIP/asterisk-001dAGI Rx WAIT FOR DIGIT 3000 SIP/asterisk-001dAGI Tx 200 result=48 SIP/asterisk-001dAGI Rx WAIT FOR DIGIT 3000

Re: [asterisk-users] AGI and forking

2011-04-14 Thread A J Stiles
On Wednesday 13 Apr 2011, Thorsten Göllner wrote: It should work - I think. BUT I am not really sure what will happen, if the child process exits. The child works with a copy of all asterisk ressources given to it, when forking. So when the child dies, perhaps asterisk will do a hangup or

[asterisk-users] AGI and forking

2011-04-13 Thread A J Stiles
Hi. I just want to make sure I understand this before doing something that might break things spectacularly for our users and customers :) We are using Asterisk 1.6.2.9 and my programming language of choice is Perl. I want, when a call comes in on someone's DDI number (which the person who

Re: [asterisk-users] AGI and forking

2011-04-13 Thread Thorsten Göllner
Am 13.04.2011 15:08, schrieb A J Stiles: Hi. I just want to make sure I understand this before doing something that might break things spectacularly for our users and customers :) We are using Asterisk 1.6.2.9 and my programming language of choice is Perl. I want, when a call comes in on

Re: [asterisk-users] AGI and forking

2011-04-13 Thread Steve Edwards
On Wed, 13 Apr 2011, A J Stiles wrote: I want, when a call comes in on someone's DDI number (which the person who dialled it can only possibly have obtained by dialling 1471 after we called them), to be able to look up the caller's details from one of our databases (where the number ought to

Re: [asterisk-users] AGI and forking

2011-04-13 Thread Tilghman Lesher
On Wednesday 13 April 2011 08:08:03 A J Stiles wrote: Hi. I just want to make sure I understand this before doing something that might break things spectacularly for our users and customers :) We are using Asterisk 1.6.2.9 and my programming language of choice is Perl. I want, when a

Re: [asterisk-users] agi voicemail callback

2011-04-06 Thread Thorsten Göllner
Am 05.04.2011 18:50, schrieb vip killa: I'm wondering if there is a simply way to perform a voicemail callback feature using AGI. For instance, a caller leaves a voicemail, the voicemail will then call the owner of the voicemailbox determined by a database look up. One possibility: look via

Re: [asterisk-users] agi voicemail callback

2011-04-06 Thread vip killa
What about a executing an AGI script with: [general] externnotify = /some_agi_script.agi Would that work? On Wed, Apr 6, 2011 at 3:20 AM, Thorsten Göllner t...@ovm-group.com wrote: Am 05.04.2011 18:50, schrieb vip killa: I'm wondering if there is a simply way to perform a voicemail callback

Re: [asterisk-users] agi voicemail callback

2011-04-06 Thread DHAVAL INDRODIYA
try this!!! http://www.voip-info.org/wiki/view/Asterisk+tips+callback On Wed, Apr 6, 2011 at 5:30 PM, vip killa vipki...@gmail.com wrote: What about a executing an AGI script with: [general] externnotify = /some_agi_script.agi Would that work? On Wed, Apr 6, 2011 at 3:20 AM, Thorsten

Re: [asterisk-users] agi voicemail callback

2011-04-06 Thread Steve Edwards
On Wed, 6 Apr 2011, vip killa wrote: What about a executing an AGI script with: [general] externnotify = /some_agi_script.agi Would that work? No. What makes a program (compiled or interpreted script) an AGI is that it follows the AGI protocol. Very simplistically, the AGI protocol

Re: [asterisk-users] agi voicemail callback

2011-04-06 Thread Danny Nicholas
To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] agi voicemail callback like a perl script? could you originate a call using Perl and AMI ? On Wed, Apr 6, 2011 at 9:13 AM, Steve Edwards asterisk@sedwards.com wrote: On Wed, 6 Apr 2011, vip killa wrote

<    1   2   3   4   5   6   7   8   9   10   >