Re: [asterisk-users] agi debug in Asterisk 1.6?

2010-02-13 Thread Barry Miller
On Sun, Feb 14, 2010 at 04:50:06AM +0100, Alejandro Recarey wrote: Much to my surprise I tried to debug an AGI script today with agi debug on the Asterisk CLI and it did not work. Plus, I could find no reference on lie of it being removed. Is there another name for that command? I scanned

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-08 Thread Olle E. Johansson
Net::DNS::Async is a fire-and-forget asynchronous DNS helper. That is, the user application adds DNS questions to the helper, and the callback will be called at some point in the future without further intervention from the user application. The application need not handle selects, timeouts,

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-08 Thread Olle E. Johansson
8 jan 2010 kl. 08.01 skrev Tilghman Lesher: On Thursday 07 January 2010 21:17:52 JR Richardson wrote: On Thu, 7 Jan 2010, Tilghman Lesher wrote: On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-08 Thread Scott L. Lykens
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users- boun...@lists.digium.com] On Behalf Of Steve Edwards Sent: Thursday, January 07, 2010 10:30 PM What about: 1) Fixing the slow responding DNS server? 2) Tweaking /etc/resolv.conf options?

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-08 Thread JR Richardson
What about: 1) Fixing the slow responding DNS server? 2) Tweaking /etc/resolv.conf options? 3) Setting up a caching name server on your Asterisk host? 4) Adding the AGI server host name and IP address to /etc/hosts? 5) Using the IP address of the AGI server in your dialplan? Ok, I

[asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread JR Richardson
Hi All, I'm running an AGI, calling a perl script the does number lookups to a remote server. I would like to put a timeout in the script. The problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan. I

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread Steve Edwards
On Thu, 7 Jan 2010, JR Richardson wrote: I'm running an AGI, calling a perl script the does number lookups to a remote server. I would like to put a timeout in the script. The problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread David Backeberg
On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson jmr.richard...@gmail.com wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan.  I would like a timeout of 1 second, then return. A few things...

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread Tilghman Lesher
On Thursday 07 January 2010 18:59:24 David Backeberg wrote: On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson jmr.richard...@gmail.com wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan.  I

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread Steve Edwards
On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson jmr.richard...@gmail.com wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan. ?I would like a timeout of 1 second, then return. On Thursday

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread JR Richardson
On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson jmr.richard...@gmail.com wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan. ?I would like a timeout of 1 second, then return. On

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread Steve Edwards
On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson jmr.richard...@gmail.com wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the Asterisk dialplan. ?I would like a timeout of 1 second, then return. On Thu, 7

Re: [asterisk-users] AGI perl script set timeout within script?

2010-01-07 Thread Tilghman Lesher
On Thursday 07 January 2010 21:17:52 JR Richardson wrote: On Thu, 7 Jan 2010, Tilghman Lesher wrote: On Thu, Jan 7, 2010 at 6:27 PM, JR Richardson wrote: problem I'm running into is if the DNS server is not responding, the script hangs and waits for 30 seconds before returning to the

[asterisk-users] AGI and embargeability

2010-01-04 Thread Quinn Weaver
Hi, This is a naive question, but is there a way in my AGI script to simultaneously play audio and listen for DTMF or voice responses? I've heard VOIP hackers call this inbargeability; it's the ability to barge in to a playing audio clip. I'm planning to use Lumenvox for the DTMF and voice

Re: [asterisk-users] AGI and embargeability

2010-01-04 Thread Alex Balashov
Sure, as long as you use whatever is equivalent to the Background() dial plan app, or Background() itself. On 01/04/2010 08:41 PM, Quinn Weaver wrote: Hi, This is a naive question, but is there a way in my AGI script to simultaneously play audio and listen for DTMF or voice responses? I've

Re: [asterisk-users] AGI and embargeability

2010-01-04 Thread Steve Edwards
On Mon, 4 Jan 2010, Quinn Weaver wrote: This is a naive question, but is there a way in my AGI script to simultaneously play audio and listen for DTMF or voice responses? t2:vtpv:18:04:59 show agi stream file Usage: STREAM FILE filename escape digits [sample offset] Send the given

[asterisk-users] AGI with PHP

2009-12-13 Thread David Klaverstyn
Hi All, I'm having problems getting results from a PHP file. This is what the CLI is showing. -- Executing [...@internal:1] AGI(Console/dsp, GoTalk.php) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/GoTalk.php [Dec 14 11:57:25] ERROR[20260]: utils.c:1019

Re: [asterisk-users] AGI with PHP

2009-12-13 Thread Steve Edwards
On Mon, 14 Dec 2009, David Klaverstyn wrote: I'm having problems getting results from a PHP file. This is what the CLI is showing. -- Executing [...@internal:1] AGI(Console/dsp, GoTalk.php) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/GoTalk.php [Dec 14 11:57:25]

[asterisk-users] AGI

2009-11-30 Thread Thomas Perron
I am trying to find an AGI script that runs via PHP and performs the send text application. Does anyone have any tools or scripts set up for this please? If so, kindly send some info or the code that performs this action. Thank you ___ -- Bandwidth

Re: [asterisk-users] AGI

2009-11-30 Thread andy rubies
Hi Thomas, Hope this will be helpful for you: http://www.voip-info.org/wiki/view/Asterisk+AGI+php On Tue, Dec 1, 2009 at 8:46 AM, Thomas Perron thomas.per...@gmail.comwrote: I am trying to find an AGI script that runs via PHP and performs the send text application. Does anyone have any

[asterisk-users] AGI stuff

2009-11-29 Thread Thomas Perron
How do I get to this prompt? #!/usr/bin/php -q ?php ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit:

Re: [asterisk-users] AGI stuff

2009-11-29 Thread Philipp Kempgen
Thomas Perron schrieb: How do I get to this prompt? #!/usr/bin/php -q ?php http://en.wikipedia.org/wiki/Shebang_%28Unix%29 Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998

Re: [asterisk-users] AGI stuff

2009-11-29 Thread Thomas Perron
Hallo Philipp, Wei Gehts ist Einen. Danke. I am in USA. Thanks. On Sun, Nov 29, 2009 at 8:49 PM, Philipp Kempgen philipp.kemp...@amooma.de wrote: Thomas Perron schrieb: How do I get to this prompt? #!/usr/bin/php -q ?php http://en.wikipedia.org/wiki/Shebang_%28Unix%29    Philipp

[asterisk-users] AGI and Music on hold

2009-11-26 Thread Jeff LaCoursiere
Hi, Happy Thanksgiving to those of us in the USA... Been trying to debug an AGI (in C) on 1.4.26.2. I blind transfer a call to this snippet of dialplan: exten = 00,1,DeadAGI(pq.agi,50) pq.agi then plays a prompt (which I hear just fine): [Nov 26 02:42:47] VERBOSE[28721] logger.c:

[asterisk-users] AGI and paging

2009-11-18 Thread Jeff LaCoursiere
Hello, I have an AGI (in C) on 1.4.26.3 that puts a caller on hold, does a few things, then blind transfers the call (with EXEC Dial...) to a parking space. This is working fine. Now I want to add an overhead page AFTER the transfer has happened, basically announcing that there is a caller

[asterisk-users] AGI STREAM FILE and not blocking execution

2009-10-22 Thread Patrick
Hello, I'm wondering if I can take benefits of long prompts to compute in the background the next step to be performed by Asterisk. Do you know what will be the behavior of asterisk if I send a STREAM FILE command immediately followed by another command ? Will asterisk stack commands or will it

Re: [asterisk-users] AGI STREAM FILE and not blocking execution

2009-10-22 Thread Steve Edwards
On Thu, 22 Oct 2009, Patrick wrote: I'm wondering if I can take benefits of long prompts to compute in the background the next step to be performed by Asterisk. I did this a few years ago so that I could process a credit card authorization request while the Please wait... prompt was playing.

Re: [asterisk-users] AGI STREAM FILE and not blocking execution

2009-10-22 Thread Jared Smith
On Thu, 2009-10-22 at 08:43 +0200, Patrick wrote: I'm wondering if I can take benefits of long prompts to compute in the background the next step to be performed by Asterisk. Do you know what will be the behavior of asterisk if I send a STREAM FILE command immediately followed by another

Re: [asterisk-users] AGI STREAM FILE and not blocking execution

2009-10-22 Thread Patrick
Hello guys, Thank you for your answers I've seen in the ExternalIVR command : If the child process dies, ExternalIVR() will notice this and hang up the channel immediately (and also send a message to the log). That's not what I'd like, I want that if the process finish gracefully that the AGI

[asterisk-users] AGI script

2009-09-28 Thread michel freiha
Dear All, I have a perl script running on my asterisk server...This script is running for all incoming calls...It checks if a user is registered on openSIPS server...Else it return a busy tone... I would like to ask you please about the syntax to call a dialplan defined on extensions.conf for a

[asterisk-users] AGI with queues status

2009-07-28 Thread Joao Gomes Pereira
Hello I'm trying to use an AGI that returns the queues status (numbers of available agents, etc ), but I'm having some problems with it (it's still very buggy). Is there any AGI repository with source code samples? Had anyone used an AGI to check queues and agents status? Thanks regards Joao

Re: [asterisk-users] AGI to announce temperature from weather.com XML file

2009-07-22 Thread Andrew Thomas
List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI to announce temperature from weather.com XML file Trevor Hammonds wrote: I would like to have the ability to have Asterisk announce the temperature -- not using TTS -- within the dialplan. For a non-Asterisk project, I have

Re: [asterisk-users] AGI to announce temperature from weather.com XML file

2009-07-17 Thread Leif Madsen
Trevor Hammonds wrote: I would like to have the ability to have Asterisk announce the temperature -- not using TTS -- within the dialplan. For a non-Asterisk project, I have a cron job that periodically pulls down an XML file from weather.com containing local weather data (TWC's user

[asterisk-users] AGI to announce temperature from weather.com XML file

2009-07-16 Thread Trevor Hammonds
I would like to have the ability to have Asterisk announce the temperature -- not using TTS -- within the dialplan. For a non-Asterisk project, I have a cron job that periodically pulls down an XML file from weather.com containing local weather data (TWC's user agreement requires that data be

Re: [asterisk-users] AGI to announce temperature from weather.com XMLfile

2009-07-16 Thread Andrew Thomas
-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Trevor Hammonds Sent: 16 July 2009 12:50 To: 'Asterisk Users List' Subject: [asterisk-users] AGI to announce temperature from weather.com XMLfile I would like to have the ability to have Asterisk announce

Re: [asterisk-users] AGI to announce temperature from weather.com XML file

2009-07-16 Thread John Novack
Check this one out. developed for AstLinux, it ought to be close to what you want. depending on your version, you may need to modify sound file references http://lonnie.abelbeck.com/astlinux/info/weather.php John Novack Trevor Hammonds wrote: I would like to have the ability to have Asterisk

Re: [asterisk-users] AGI to announce temperature from weather.com XML file

2009-07-16 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trevor Hammonds wrote: I am hoping someone on the list has an example of a lightweight AGI script that I may modify to either read the simple text file and set a dialplan variable to the current temperature, or hopefully a more-sophisticated one

Re: [asterisk-users] AGI to announce temperature from weather.com XML file

2009-07-16 Thread Jared Smith
On Thu, 2009-07-16 at 04:49 -0700, Trevor Hammonds wrote: I would like to have the ability to have Asterisk announce the temperature -- not using TTS -- within the dialplan. Chapter 9 of Asterisk: The Future of Telephony shows you how to build an AGI script to do just that. For a free

[asterisk-users] AGI Transfer?

2009-07-02 Thread J. G.
I've been trying to get an AGI transfer to work for several weeks now. It isn't error-ing out, but it isn't working either. I can't use dial in this case due to what I'm trying to accomplish. Does an AGI Transfer actually work? -= Info about application 'Transfer' =- [Synopsis] Transfer

Re: [asterisk-users] AGI Transfer?

2009-07-02 Thread Steve Edwards
On Thu, 2 Jul 2009, J. G. wrote: I've been trying to get an AGI transfer to work for several weeks now. It isn't error-ing out, but it isn't working either. Does an AGI Transfer actually work? Does executing the transfer application in an AGI using the AGI exec command work? Yes. I

[asterisk-users] AGI scripts in Groovy, JavaScript, JRuby or PHP running on the Java Virtual Machine

2009-05-13 Thread Stefan Reuter
Hi, We've just finished adding support for writing AGI scripts in a variety of popular scripting languages to Asterisk-Java. The FastAGI server in Asterisk-Java allows you to move your AGI scripts to a dedicated server and increases performance by eleminating the need to start the language

Re: [asterisk-users] AGI - Ways to create a call

2009-05-08 Thread David Backeberg
-Original Message- From: tiagodura...@gmail.com Sent: Fri, 1 May 2009 11:02:58 -0400 To: asterisk-users@lists.digium.com Subject: [asterisk-users] AGI - Ways to create a call On Fri, May 1, 2009 at 11:18 AM, Jimmy Godbout s...@inbox.com wrote: Well, my question is: do you guys have

Re: [asterisk-users] AGI - Ways to create a call

2009-05-08 Thread Steve Edwards
On Fri, 8 May 2009, David Backeberg wrote: On Fri, May 1, 2009 at 11:18 AM, Jimmy Godbout s...@inbox.com wrote: Well, my question is: do you guys have any tip in different ways to create a call in Asterisk using AGI + PHP? You may prefer AMI and the originate command as opposed to making

[asterisk-users] AGI PHP

2009-05-04 Thread James A. Shigley
I'm just trying to make a real simple Survey via php. Just want it to play the Question Files, wait for a response, save the response into the correct variable and then email it all. I have no issue playing the audio or emailing. But I can't get it to wait for digits or to properly capture

Re: [asterisk-users] AGI PHP

2009-05-04 Thread Danny Nicholas
Sent: Monday, May 04, 2009 3:17 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] AGI PHP I'm just trying to make a real simple Survey via php. Just want it to play the Question Files, wait for a response, save the response into the correct variable

Re: [asterisk-users] AGI PHP

2009-05-04 Thread Steve Edwards
On Mon, 4 May 2009, James A. Shigley wrote: I'm just trying to make a real simple Survey via php. Just want it to play the Question Files, wait for a response, save the response into the correct variable and then email it all. If it's real simple, maybe AGI is overkill. Any particular

Re: [asterisk-users] AGI PHP

2009-05-04 Thread Alan Lord (News)
On 04/05/09 21:17, James A. Shigley wrote: I’m just trying to make a real simple Survey via php. Just want it to play the Question Files, wait for a response, save the response into the correct variable and then email it all. Packt sent me a book to review recently: Asterisk AGI Programming.

[asterisk-users] AGI - Ways to create a call

2009-05-01 Thread Tiago Durante
Hi guys, I've being trying to create a 'click2call' for internal use in the place I work. The idea is pretty simple and actually I've a simple click2call working working already... Well, my question is: do you guys have any tip in different ways to create a call in Asterisk using AGI + PHP?

Re: [asterisk-users] AGI - Ways to create a call

2009-05-01 Thread Jimmy Godbout
@lists.digium.com Subject: [asterisk-users] AGI - Ways to create a call Hi guys, I've being trying to create a 'click2call' for internal use in the place I work. The idea is pretty simple and actually I've a simple click2call working working already... Well, my question is: do you guys have

[asterisk-users] AGI PHP script

2009-04-23 Thread James A. Shigley
I have the below script that doesn't seem to be working. I don't know if I have something in the script wrong that I am just missing. Or if I don't have the php.ini set correctly for emailing This is the CLI output -- Executing [4099xxx...@port3_real:1] Goto(DAHDI/50-1, newhire,s,1) in

Re: [asterisk-users] AGI PHP script

2009-04-23 Thread Geraint Lee
Check you can run the script from th ecommand line and successfully send email... have you considered using phpagi for your scripts? 2009/4/23 James A. Shigley j...@answeringserv.com I have the below script that doesn’t seem to be working. I don’t know if I have something in the script wrong

Re: [asterisk-users] AGI PHP script

2009-04-23 Thread Nhadie
you can try enabling agi debug on your console, you might be able to see if there's an error on your agi script. nhadie James A. Shigley wrote: I have the below script that doesn’t seem to be working. I don’t know if I have something in the script wrong that I am just missing. Or if I

Re: [asterisk-users] AGI PHP script

2009-04-23 Thread Ruddy Gbaguidi
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of James A. Shigley Sent: April-23-09 12:26 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] AGI PHP script I have the below script that doesn't seem to be working. I don't know if I have something in the script

Re: [asterisk-users] AGI PHP script

2009-04-23 Thread Mik Cheez
This is the right suggestion: Run something like the following: [h...@mouth tmp]# echo this is a test | newhire.php If the script runs, check your maillog (/var/log/maillog) to see if there's any evidence of what may have happened. Geraint Lee wrote: Check you can run the script from th

Re: [asterisk-users] AGI PHP script

2009-04-23 Thread James A. Shigley
of nothing From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Ruddy Gbaguidi Sent: Thursday, April 23, 2009 11:57 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] AGI PHP script First run /var

Re: [asterisk-users] AGI PHP script

2009-04-23 Thread Steve Edwards
Un-top-posting and de-crufting, with some comments cast inline... 2009/4/23 James A. Shigley j...@answeringserv.com mailto:j...@answeringserv.com I have the below script that doesn?t seem to be working. I don?t know if I have something in the script wrong that I am just missing.

[asterisk-users] AGI Programming

2009-04-16 Thread Alan Lord (News)
Hi all, This isn't meant to be spam I thought some of you might find it interesting. Packt Publishing approached me a few weeks ago and asked if I would like to review a book or two for them on my blog. The first one they sent me is called Asterisk Gateway Interface Programming and has only

Re: [asterisk-users] AGI Programming

2009-04-16 Thread randulo
On Thu, Apr 16, 2009 at 11:36 AM, Alan Lord (News) alansli...@gmail.com wrote: The first one they sent me is called Asterisk Gateway Interface Programming and has only just been released. It was written by Nir Simionovich. You can read my review here:

Re: [asterisk-users] agi no longer working with 1.4 svn 186229

2009-04-08 Thread Matt Riddell
On 4/04/2009 2:22 a.m., John covici wrote: The minute asterisk tries to execute an agi, it gets utils.c write error broken pipe and so hangs up the call. Anyone know what is going on? I am using kernel 2.6.27 with dahdi trunk if that makes a difference. thanks in advance for any ideas.

Re: [asterisk-users] agi no longer working with 1.4 svn 186229

2009-04-08 Thread John covici
If I revert back to my old version of asterisk, it works just fine. on Thursday 04/09/2009 Matt Riddell(li...@venturevoip.com) wrote On 4/04/2009 2:22 a.m., John covici wrote: The minute asterisk tries to execute an agi, it gets utils.c write error broken pipe and so hangs up the call.

[asterisk-users] agi no longer working with 1.4 svn 186229

2009-04-03 Thread John covici
The minute asterisk tries to execute an agi, it gets utils.c write error broken pipe and so hangs up the call. Anyone know what is going on? I am using kernel 2.6.27 with dahdi trunk if that makes a difference. thanks in advance for any ideas. -- Your life is like a penny. You're going to

Re: [asterisk-users] AGI problem using mono (.Net)

2009-03-03 Thread Luis Morales
Hi douglas, I made an AGI script with curl in my dial-plan. Take a look: [custom-login] exten = s,1,Set(LOGINOK=0) exten = s,2,Read(codigo|custom/codigo|4||3|3) exten = s,3,Read(clave|custom/clave|4||3|3) exten =

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-26 Thread Douglas Mortensen
Steve: = Thanks for the info on the agi debug command. We'll see what information we can garner with that. Thanks also for the advanced logging info. Unfortunately, we are pretty aware of how AGI works (at least at the level that you explained it). Thanks for the

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-26 Thread Douglas Mortensen
An update here. Yesterday's problem has been solved (partly). After looking closer at the results of my perl script, as well as looking at the documentation, I realized that we were leaving the escape character argument off of the STREAM FILE command in the mono application. After appending to

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-26 Thread Steve Edwards
On Thu, 26 Feb 2009, Douglas Mortensen wrote: New problem: == Although we see the following in our logs / asterisk console: [Feb 26 11:11:05] VERBOSE[9824] logger.c: -- Playing 'filename' (escape_digits=) (sample_offset 0) All that the caller hears is a very brief click. And

[asterisk-users] AGI problem using mono (.Net)

2009-02-25 Thread Douglas Mortensen
Hello. I have a software developer creating a .Net / mono program to use as an AGI script. We are having problems getting it to stream files. From what we can tell, it is talking to asterisk correctly when called from the dial plan. Its stderr output goes to the asterisk console. But asterisk

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-25 Thread Eric Wieling, Asteria Solutions Group
Douglas Mortensen wrote: I have a software developer creating a .Net / mono program to use as an AGI script. We are having problems getting it to stream files. From what we can tell, it is talking to asterisk correctly when called from the dial plan. Its stderr output goes to the asterisk

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-25 Thread Steve Edwards
On Wed, 25 Feb 2009, Douglas Mortensen wrote: I have a software developer creating a .Net / mono program to use as an AGI script. We are having problems getting it to stream files. From what we can tell, it is talking to asterisk correctly when called from the dial plan. Its stderr output

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-25 Thread Luis Morales
Suggest, Use .net to do an web services and use curl+agi scripts to integrate your solutions. Regards, Luis Morales On Wed, Feb 25, 2009 at 6:37 PM, Douglas Mortensen d...@impalanetworks.com wrote: Hello. I have a software developer creating a .Net / mono program to use as an AGI script.

Re: [asterisk-users] AGI problem using mono (.Net)

2009-02-25 Thread Steve Edwards
On Wed, 25 Feb 2009, Steve Edwards wrote: The AGI interface (is that redundant?) can be summarized as: 1) Asterisk sends a bunch of cruft (the AGI environment variables) to your program's STDIN. 1a) Your program must read all of the AGI environment variables. 2) Your program sends a

Re: [asterisk-users] AGI script

2009-02-23 Thread michel freiha
Dear Sir, Kindly note that the problem is on command $AGI-get_variable(' variablename'); The AGI seems that it's not reading nothing from asterisk Regards On Mon, Feb 23, 2009 at 9:26 AM, Yawar Hadi yawarh...@gmail.com wrote: ohh got it...sorry for miss interpretation On Mon, Feb

Re: [asterisk-users] AGI script

2009-02-23 Thread Yawar Hadi
i got the problem. i am looking for a wrong variable. if u want to read variables from astersk with $AGI-get_variable() command then write the variable name as mentioned on voip-info site. so if u want to read extension then supplu variable name like $myno=$AGI-get_variable('EXTEN');

Re: [asterisk-users] AGI script

2009-02-23 Thread michel freiha
Hello Hadi, EXTEN is working fine and I can get the dialed number...Now suppose I need to fetche the extension username from where I'm dialing...What is the variable name here?Or where i can find Variables name...Can you give me a link where these variables are defined? Regards On Mon, Feb 23,

Re: [asterisk-users] AGI script

2009-02-23 Thread Steve Edwards
On Mon, 23 Feb 2009, michel freiha wrote: EXTEN is working fine and I can get the dialed number...Now suppose I need to fetche the extension username from where I'm dialing...What is the variable name here?Or where i can find Variables name...Can you give me a link where these variables

Re: [asterisk-users] AGI script

2009-02-23 Thread Steve Edwards
On Mon, 23 Feb 2009, Yawar Hadi wrote: so if u want to read extension then supplu variable name like $myno=$AGI-get_variable('EXTEN'); hope u get it I think passing the variable on the command line is more flexible than a fixed variable, particularly the much more limiting ${EXTEN}. My

Re: [asterisk-users] AGI script

2009-02-23 Thread michel freiha
Dear All, I would really need to thank you all for the great help that I got here from all of you and specially Mr. Yawar hadi for his great assist and professionalism Thanks On Mon, Feb 23, 2009 at 6:48 PM, Steve Edwards asterisk@sedwards.comwrote: On Mon, 23 Feb 2009, Yawar Hadi wrote:

Re: [asterisk-users] AGI script

2009-02-23 Thread Yawar Hadi
,must visit this site for more info http://www.voip-info.org/wiki-Asterisk+AGI and also take help from google its a good source On Tue, Feb 24, 2009 at 5:08 AM, michel freiha mich...@gmail.com wrote: Dear All, I would really need to thank you all for the great help that I got here from all

Re: [asterisk-users] AGI script

2009-02-22 Thread Yawar Hadi
dear steve any issue u havent replied.? On Sat, Feb 21, 2009 at 6:17 PM, Luis Morales faston...@gmail.com wrote: Done, There is no problem to do it. Did you pay for this script or you need support to do it ? Have an nice day, Luis Morales. On Fri, Feb 20, 2009 at

Re: [asterisk-users] AGI script

2009-02-22 Thread Steve Edwards
On Mon, 23 Feb 2009, Yawar Hadi wrote: dear steve any issue u havent replied.? You have me confused with michel freiha. Thanks in advance, Steve Edwards sedwa...@sedwards.com Voice:

Re: [asterisk-users] AGI script

2009-02-22 Thread michel freiha
Dear Yawar, I need please some help from you regarding the script tha you already provided to me...It seems that the perl script is not reading correctly variables from asterisk server..Can you please help in that? Regards On Mon, Feb 23, 2009 at 8:28 AM, Yawar Hadi yawarh...@gmail.com wrote:

Re: [asterisk-users] AGI script

2009-02-22 Thread Yawar Hadi
How ? On Mon, Feb 23, 2009 at 12:09 PM, Steve Edwards asterisk@sedwards.comwrote: On Mon, 23 Feb 2009, Yawar Hadi wrote: dear steve any issue u havent replied.? You have me confused with michel freiha. Thanks in advance,

Re: [asterisk-users] AGI script

2009-02-22 Thread Yawar Hadi
ohh got it...sorry for miss interpretation On Mon, Feb 23, 2009 at 12:23 PM, Yawar Hadi yawarh...@gmail.com wrote: How ? On Mon, Feb 23, 2009 at 12:09 PM, Steve Edwards asterisk@sedwards.com wrote: On Mon, 23 Feb 2009, Yawar Hadi wrote: dear steve any issue u

Re: [asterisk-users] AGI script

2009-02-22 Thread Yawar Hadi
Sure, can u plz point out where script is not reading variables correctly.from commnad line argument or from command $AGI-get_variable('variablename'); feel free to coneect. u can add me on msn yawarh...@hotmail.com bye On Mon, Feb 23, 2009 at 12:22 PM, michel freiha mich...@gmail.com

Re: [asterisk-users] AGI script

2009-02-21 Thread michel freiha
Dear yawar, Can you help in that please one more time in order to finish the issue? Thanks a lot Regards On Sat, Feb 21, 2009 at 9:51 AM, Yawar Hadi yawarh...@gmail.com wrote: sure shift not pressed. it #!/usr/bin/perl On Sat, Feb 21, 2009 at 12:43 PM, Darren Murphy

Re: [asterisk-users] AGI script

2009-02-21 Thread Luis Morales
Done, There is no problem to do it. Did you pay for this script or you need support to do it ? Have an nice day, Luis Morales. On Fri, Feb 20, 2009 at 7:24 PM, michel freiha mich...@gmail.com wrote: Dear Sir, I need the followingA customer will dial a specific number like 112,this will

Re: [asterisk-users] AGI script

2009-02-20 Thread michel freiha
Dear Yawar, I'll appreciate a lot if you send to me these scripts in order to test Regards On Fri, Feb 20, 2009 at 5:58 AM, Yawar Hadi yawarh...@gmail.com wrote: i have in perl AGI script if u want then let me know ...? On Fri, Feb 20, 2009 at 4:59 AM, Steve Edwards

Re: [asterisk-users] AGI script

2009-02-20 Thread Yawar Hadi
okay this is the dial plan u can test it and let me know if u want more information ... and script is attached. exten=112,1,AGI(DialNumber.pl|${EXTEN}); exten=112,2,Dial(SIP/Terminator/${DestNo}|); exten=112,3,Hangup(); on second in place of termeinator u have to use the ip of terminator to

Re: [asterisk-users] AGI pdf book

2009-02-20 Thread Andrew Thomas
Message- -- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users- -- boun...@lists.digium.com] On Behalf Of Jared Smith -- Sent: 18 February 2009 15:57 -- To: Asterisk Users Mailing List - Non-Commercial Discussion -- Subject: Re: [asterisk-users] AGI pdf book -- -- On Wed

Re: [asterisk-users] AGI script

2009-02-20 Thread Steve Edwards
On Fri, 20 Feb 2009, Yawar Hadi wrote: this is the dial plan u can test it and let me know if u want more information ... and script is attached. exten=112,1,AGI(DialNumber.pl|${EXTEN}); You pass ${EXTEN} but you use $AGI-get_variable('extension') in your script. Thanks in advance,

Re: [asterisk-users] AGI script

2009-02-20 Thread michel freiha
Dear Sir, I'm facing the below problem: -- Executing [...@did:1] AGI(SIP/123456-08f44c00, dial.pl|112) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dial.pl == dial.pl|112: Failed to execute '/var/lib/asterisk/agi-bin/dial.pl': No such file or directory == Auto

Re: [asterisk-users] AGI script

2009-02-20 Thread Danny Nicholas
Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI script Dear Sir, I'm facing the below problem: -- Executing [...@did:1] AGI(SIP/123456-08f44c00, dial.pl|112) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dial.pl == dial.pl|112: Failed

Re: [asterisk-users] AGI script

2009-02-20 Thread Steve Edwards
On Fri, 20 Feb 2009, Danny Nicholas wrote: Dial.pl is 1.executable 2.owned by asterisk 1 2 should be Can be executed by the user running Asterisk. Thanks in advance, Steve Edwards sedwa...@sedwards.com

Re: [asterisk-users] AGI script

2009-02-20 Thread Danny Nicholas
-Commercial Discussion Subject: Re: [asterisk-users] AGI script On Fri, 20 Feb 2009, Danny Nicholas wrote: Dial.pl is 1.executable 2.owned by asterisk 1 2 should be Can be executed by the user running Asterisk. Thanks in advance

Re: [asterisk-users] AGI script

2009-02-20 Thread michel freiha
] *On Behalf Of *michel freiha *Sent:* Friday, February 20, 2009 1:41 PM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* Re: [asterisk-users] AGI script Dear Sir, I'm facing the below problem: -- Executing [...@did:1] AGI(SIP/123456-08f44c00, dial.pl|112) in new stack

Re: [asterisk-users] AGI script

2009-02-20 Thread michel freiha
-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *michel freiha *Sent:* Friday, February 20, 2009 1:41 PM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* Re: [asterisk-users] AGI script Dear Sir, I'm facing the below

Re: [asterisk-users] AGI script

2009-02-20 Thread michel freiha
-Commercial Discussion *Subject:* Re: [asterisk-users] AGI script Dear Sir, I'm facing the below problem: -- Executing [...@did:1] AGI(SIP/123456-08f44c00, dial.pl|112) in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dial.pl == dial.pl|112: Failed to execute '/var

Re: [asterisk-users] AGI script

2009-02-20 Thread Steve Edwards
On Fri, 20 Feb 2009, michel freiha wrote: I'm facing the below problem: == dial.pl|112: Failed to execute '/var/lib/asterisk/agi-bin/dial.pl': No such file or directory What could be the issue here? These commands may point you in the right direction: 1) ps -aef | grep asterisk | grep -v

Re: [asterisk-users] AGI script

2009-02-20 Thread Steve Edwards
On Fri, 20 Feb 2009, michel freiha wrote: The file dial.pl is executable and own by root as you can see below ls -lrt -rwxrwxrwx 1 root root 1865 Feb 20 21:18 dial.pl Using the very large hammer (AKA chmod 777) to solve permissions problems indicates a very large gap in understanding the

Re: [asterisk-users] AGI script

2009-02-20 Thread Danny Nicholas
_ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of michel freiha Sent: Friday, February 20, 2009 2:12 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI script Dear Sir, The file

Re: [asterisk-users] AGI script

2009-02-20 Thread Steve Edwards
On Fri, 20 Feb 2009, Danny Nicholas wrote: You will need to download AGI from www.cpan.org http://www.cpan.org/ and install it. Here it is in simple steps Cd /usr/src Wget http://search.cpan.org/CPAN/authors/id/J/JA/JAMESGOL/asterisk-perl-0.10.tar. gz Tar xvf asterisk-perl-0.10.tar.gz

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