Re: [Asterisk-Users] AGI ?

2006-05-23 Thread Jon Scottorn
I'm sure it could be but taking the agi route I think would be simpler. I thought I should be able to get the variable DIALSTATUS from Asterisk. Is this not true. I have tried these different ways to get it but none have worked yet. $AGI-get_variable(DIALSTATUS);

Re: [Asterisk-Users] AGI ?

2006-05-23 Thread Jon Scottorn
On Tue, 2006-05-23 at 19:44 +0100, Thomas Kenyon wrote: Jon Scottorn wrote: Hi All, I have been attempting to get an AGI LCRdialout script to work. Basically what I need to have happen is when someone dials out a number the script check to see if it is local if so, go out the ZAP

Re: [Asterisk-Users] AGI ?

2006-05-23 Thread Freddi Hansen
From: Jon Scottorn [EMAIL PROTECTED] Date: Tue, 23 May 2006 12:52:02 -0600 To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com On Tue, 2006-05-23 at 19:44 +0100, Thomas Kenyon wrote: Jon Scottorn wrote: Hi All, I have been attempting to get an

Re: [Asterisk-Users] AGI and incoming call

2006-04-27 Thread picciuX
Dial(10) and so on with apppriate extension.Thanks,--You don't have any choice, you already made it before you came here. -Original Message-From: [EMAIL PROTECTED]Sent: Wed, 26 Apr 2006 08:47:03 +0200To: asterisk-users@lists.digium.comSubject: [Asterisk-Users] AGI and incoming callHello,I

Re: [Asterisk-Users] AGI and incoming call

2006-04-27 Thread Olivier Saulnier
@lists.digium.com Subject: [Asterisk-Users] AGI and incoming call Hello, I would like to intercept each incoming call and with an awk script, search the internal phone number ask. For example: I have a text database as this: External phone Internal Phone 12345678

[Asterisk-Users] AGI and incoming call

2006-04-26 Thread Olivier Saulnier
Hello, I would like to intercept each incoming call and with an awk script, search the internal phone number ask. For example: I have a text database as this: External phone Internal Phone 12345678 10 45874521 11 32544884 12 When the client 45874521 call,

Re: [Asterisk-Users] AGI and incoming call

2006-04-26 Thread Steve Totaro
Thats how I do it. AGI makes a call to a MSSQL server. A stored proc returns an extension based on ANI and DNIS and the call continues. Thanks, Steve Totaro Olivier Saulnier wrote: Hello, I would like to intercept each incoming call and with an awk script, search the internal phone number

Re: [Asterisk-Users] AGI and incoming call

2006-04-26 Thread Olivier Saulnier
Could you help me for AGI script and interface with asterisk server, please? Best regards, OLS Steve Totaro a écrit : Thats how I do it. AGI makes a call to a MSSQL server. A stored proc returns an extension based on ANI and DNIS and the call continues. Thanks, Steve Totaro Olivier

RE: [Asterisk-Users] AGI and incoming call

2006-04-26 Thread Innocent Evil
: [EMAIL PROTECTED] Sent: Wed, 26 Apr 2006 08:47:03 +0200 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] AGI and incoming call Hello, I would like to intercept each incoming call and with an awk script, search the internal phone number ask. For example: I have a text

Re: [Asterisk-Users] AGI and incoming call

2006-04-26 Thread Olivier Saulnier
) replace Dial(10) and so on with apppriate extension. Thanks, -- You don't have any choice, you already made it before you came here. -Original Message- From: [EMAIL PROTECTED] Sent: Wed, 26 Apr 2006 08:47:03 +0200 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] AGI

[Asterisk-Users] AGI hangup problem

2006-04-01 Thread Branko Samardzic
I have problem with Asterisk. [sendCommand]=EXEC DIAL IAX2/somehost/somenumber|10 [readReply]=200 result=-1 [sendCommand]=GET VARIABLE ANSWEREDTIME 1086422 [Thread-7] ERROR - establishConnection: exec encountered exception net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. This means

Re: [Asterisk-Users] AGI hangup problem

2006-04-01 Thread Stefan Reuter
Branko Samardzic wrote: I have problem with Asterisk. [sendCommand]=EXEC DIAL IAX2/somehost/somenumber|10 [readReply]=200 result=-1 [sendCommand]=GET VARIABLE ANSWEREDTIME 1086422 [Thread-7] ERROR - establishConnection: exec encountered exception net.sf.asterisk.fastagi.AGIHangupException:

RE: [Asterisk-Users] AGI hangup problem

2006-04-01 Thread Branko Samardzic
channel info after hangup). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stefan Reuter Sent: Saturday, April 01, 2006 2:04 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] AGI hangup problem Branko Samardzic wrote

[Asterisk-Users] agi channel status

2006-03-06 Thread Danish Samad
Hi, I have developed a custom agi and connect to it by placing a call through a sip phone. The agi issues the STREAM FILE command from a number of places in code to play out prerecorded messages. The problem is if the agi tries to play a file, using the STREAM FILE command, after the caller has

Re: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-28 Thread Craig Guy
@lists.digium.com Sent: Tuesday, February 28, 2006 10:09 AM Subject: Re: [Asterisk-Users] AGI Scripts Terminate too Soon In that case, asterisk sends -HUP to the agi script (I believe). Darren Michael Collins wrote: If that's true, why does dial() return control to the script when the callee hangs up

[Asterisk-Users] AGI Channel Status

2006-02-27 Thread Douglas Garstang
I'd like to use the AGI command CHANNEL STATUS to check the status of a channel. However, the dial() command doesn't return -1 until after the call has hung up. If that's the case, how is channel status supposed to return statuses like: status values: 0 Channel is down and available 1

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Michael Collins
I'd like to use the AGI command CHANNEL STATUS to check the status of a channel. However, the dial() command doesn't return -1 until after the call has hung up. If that's the case, how is channel status supposed to return statuses like: status values: 0 Channel is down and available 1

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Douglas Garstang
-Users] AGI Channel Status I'd like to use the AGI command CHANNEL STATUS to check the status of a channel. However, the dial() command doesn't return -1 until after the call has hung up. If that's the case, how is channel status supposed to return statuses like: status values: 0 Channel

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Douglas Garstang
Subject: RE: [Asterisk-Users] AGI Channel Status I'd like to use the AGI command CHANNEL STATUS to check the status of a channel. However, the dial() command doesn't return -1 until after the call has hung up. If that's the case, how is channel status supposed to return statuses like: status

[Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Douglas Garstang
Ok, here's a weird one. I have an AGI script where one user calls another. The call is answered. Everything is peachy. If the call is terminated by the CALLEE hanging up the call, then Asterisk returns control back to where the Dial() command left off, and I can check the return code of

Re: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Roger Schreiter
Douglas Garstang schrieb: If dial() doesn't return until after the call completes, it means the channel status AGI command is a waste of time. Hi, you are right, dial will block, so you won't get the channel status by that method when having an outbound call. You can use the manager. But

Re: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Roger Schreiter
Douglas Garstang schrieb: ... HOWEVER, if the CALLER hangs up the call, it seems Hi, did you try the dial command option g? I did not neither, but when I understand the voip-wiki right, it might help you. Roger. Voip-wiki page about dial: http://www.voip-info.org/wiki-Asterisk+cmd+Dial

RE: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Douglas Garstang
To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] AGI Scripts Terminate too Soon Douglas Garstang schrieb: ... HOWEVER, if the CALLER hangs up the call, it seems Hi, did you try the dial command option g? I did not neither, but when I understand

Re: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Jean-Michel Hiver
snip HOWEVER, if the CALLER hangs up the call, it seems as if Asterisk immediately kills the AGI script. My script seems to terminate immediately and therefore execution does not continue after the Dial() command. /snip http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+DeadAGI

RE: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Michael Collins
Douglas Garstang schrieb: ... HOWEVER, if the CALLER hangs up the call, it seems Hi, did you try the dial command option g? I did not neither, but when I understand the voip-wiki right, it might help you. Roger. I've used the 'g' option and as far as I can tell it works just

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Michael Collins
MC, I think I worked out that I need to use ${DIALSTATUS} anyway. Don't really see what 'channel status' is for... Doug, I think the channel status might be more useful for incoming calls, or possibly to monitor specific channels other than the 'current' channel. I can't think of a reason

RE: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Michael Collins
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+DeadAGI Cheers, Jean-Michel. I am red-faced! The TFOT book explicitly says this on page 158, on the box titled, AGI(), EAGI(), DeadAGI(), and FastAGI(): The DeadAGI() application is also just like AGI(), but it works correctly on

RE: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Douglas Garstang
If that's true, why does dial() return control to the script when the callee hangs up? -Original Message- From: Michael Collins [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 3:43 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] AGI

RE: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Michael Collins
If that's true, why does dial() return control to the script when the callee hangs up? Doug, if I understand the AGI limitation correctly, the 'dead' in DeadAGI() refers to the other end of a dial() connection. I *think*, but I'm not positive on that. Does anyone know the answer to this

Re: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Darren Wiebe
In that case, asterisk sends -HUP to the agi script (I believe). Darren Michael Collins wrote: If that's true, why does dial() return control to the script when the callee hangs up? Doug, if I understand the AGI limitation correctly, the 'dead' in DeadAGI() refers to the other end of

Re: [Asterisk-Users] AGI Scripts Terminate too Soon

2006-02-27 Thread Jean-Michel Hiver
I am red-faced! The TFOT book explicitly says this on page 158, on the box titled, AGI(), EAGI(), DeadAGI(), and FastAGI(): The DeadAGI() application is also just like AGI(), but it works correctly on a channel that is dead (i.e., a channel that has been hung up). As this implies, the

FW: [Asterisk-Users] AGI onAnswer function: does it exist?

2006-02-17 Thread Vlasis Hatzistavrou
PM To: asterisk-users@lists.digium.com Cc: 'Vlasis Hatzistavrou' Subject: [Asterisk-Users] AGI onAnswer function: does it exist? Hello, I am trying to write an AGI in Perl and I need to execute a function upon answer of a call. I know that there is the possibility to use the M() option

Re: FW: [Asterisk-Users] AGI onAnswer function: does it exist?

2006-02-17 Thread Michiel van Baak
On 12:17, Fri 17 Feb 06, Vlasis Hatzistavrou wrote: Hello, Does anyone know any solution to this? Or is Asterisk-Dev a more suitable list to ask this question? It's a -user question to begin with. Have your agi connect to the manager interface and get the answer info from there :) --

[Asterisk-Users] AGI onAnswer function: does it exist?

2006-02-16 Thread Vlasis Hatzistavrou
Hello, I am trying to write an AGI in Perl and I need to execute a function upon answer of a call. I know that there is the possibility to use the M() option in the Dial command in order to do what I need, but that would mean that I would have to incorporate the function's work in a

[Asterisk-Users] AGI Flakyness *sigh*

2006-02-16 Thread Douglas Garstang
Well, I'm about ready to throw Asterisk across the room. Can someone tell me WHY, when you've sent a Dial command to Asterisk via AGI, if the callee hangs up the call, Asterisk sends a return code, but if the caller hangs up, it does not??? This means if an agi script services a call, and

[Asterisk-Users] AGI Scripts Staying in Memory

2006-02-13 Thread Douglas Garstang
So, I'm noticing that when Asterisk executes an AGI script, that the AGI script keeps running until the call is complete. Is there any way to have the script terminate when the call is answered? Also noticed that when user makes a call to user B, if user B hangs up the call, then Asterisk

[Asterisk-Users] agi/cagi call limit using group_count

2006-02-01 Thread Raymond Chen
Dear all, Anyone has experience using group and group_count to limit outgoing calls in AGI/CAGI? SET VARIABLE GROUP(${CALLERIDNUM}) OUTBOUND_GROUP EXEC Gotoif $[${GROUP_COUNT([EMAIL PROTECTED])} 1]?BLOCK SET VARIABLE GROUP(${CALLERIDNUM}) OUTBOUND_GROUP But it doesnt work as

[Asterisk-Users] agi debug - unable to set normal priority

2006-01-29 Thread Carsten Bock
In my agi-debug i get the following error-message: AGI Rx Jan 16 14:45:52 WARNING[18299]: asterisk.c:788 ast_set_priority: I have the same problem with all (shell) AGIs. Not sure when it started (about two days ago) and why, i tried to restart asterisk and my server and also reinstalling

[Asterisk-Users] agi debug - unable to set normal priority

2006-01-29 Thread Carsten Bock
Carsten Bock wrote: In my agi-debug i get the following error-message: AGI Rx Jan 16 14:45:52 WARNING[18299]: asterisk.c:788 ast_set_priority: Oups there something missing, the complete error message is AGI Rx Jan 16 14:45:52 WARNING[18299]: asterisk.c:788 ast_set_priority: Unable to set

[Asterisk-Users] AGI Tx error 510

2006-01-19 Thread Colin Beckingham
My php script called from my extensions.conf is working fine, however each time I run it with agi debug mode on I see the message AGI Rx Done AGI Tx 510 Invalid or unknown command which does not come from my script, apart from the Rx Done where the 'Done' is the message from my exit()

[Asterisk-Users] AGI variables

2006-01-17 Thread Innocent Evil
When I read variables in AGI scripts, I see only the follwing 13 variables agi_request agi_channel agi_language agi_type agi_uniqueid agi_callerid agi_dnid agi_rdnis agi_context agi_extension agi_priority agi_enhanced agi_accountcode beside these, I found following variables documented on

Re: [Asterisk-Users] AGI variables

2006-01-17 Thread Vladimir Montealegre
, January 16, 2006 10:33 AM Subject: [Asterisk-Users] AGI variables When I read variables in AGI scripts, I see only the follwing 13 variables agi_request agi_channel agi_language agi_type agi_uniqueid agi_callerid agi_dnid agi_rdnis agi_context agi_extension agi_priority agi_enhanced

Re: [Asterisk-Users] AGI variables

2006-01-17 Thread Vladimir Montealegre
, January 16, 2006 10:33 AM Subject: [Asterisk-Users] AGI variables When I read variables in AGI scripts, I see only the follwing 13 variables agi_request agi_channel agi_language agi_type agi_uniqueid agi_callerid agi_dnid agi_rdnis agi_context agi_extension agi_priority agi_enhanced

[Asterisk-Users] agi debug - unable to set normal priority

2006-01-16 Thread Christian Benke
Hello! In my agi-debug i get the following error-message: AGI Rx Jan 16 14:45:52 WARNING[18299]: asterisk.c:788 ast_set_priority: Unable to set normal priority AGI Tx 510 Invalid or unknown command AGI Rx SET VARIABLE MODCLI 00434345452 the agi i call is a very simple shellscript that simply

[Asterisk-Users] Agi Perl Talk Time

2006-01-07 Thread Code Lover
Hi all, Can anyone tell me from where i can call my update query when the call is pickuped using AGI Perl. I writen the code to store active calls in MySQL DB. and display the real time call counter. i mean to insert record when the call is pickuped -- Thank You, Code Lover

[Asterisk-Users] AGI Variable

2005-12-30 Thread Code Lover
Hi All, Could any one please tell me the variable name of call cleared, reason, because i want to store it in MySQL Database so our client normally they can debug what is the disconnect reason. Cleard Reason like : 17 - User Busy, 42 - Temporary Failiur etc.. I tried using HANGUPCAUSE but it

[Asterisk-Users] AGI GET Variable Problem

2005-12-12 Thread Kenige Ho
Dear All, I am trying to get a variable via AGI GET VARIABLE , but using AGI DEBUG I actually do see the variable get return but somehow my retrieving the variable via php. I don't get the value of the variable. Below is my code and my results. Please help. thank you. Coding:

[Asterisk-Users] agi variables list

2005-12-10 Thread Olivier Taylor
Title: Message hello all, where can I find a list of agi variables that can be read by a external script? Thanks, Olivier ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options

RE: [Asterisk-Users] agi variables list

2005-12-10 Thread Steve Totaro
Is this what you mean? http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI -Original Message- From: Olivier Taylor [mailto:[EMAIL PROTECTED] Sent: Saturday, December 10, 2005 12:44 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] agi

RE : [Asterisk-Users] agi variables list

2005-12-10 Thread Olivier Taylor
Totaro Envoyé : samedi 10 décembre 2005 18:52 À : Asterisk Users Mailing List - Non-Commercial Discussion Objet : RE: [Asterisk-Users] agi variables list Is this what you mean? http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI -Original Message- From: Olivier Taylor [mailto

Re: [Asterisk-Users] agi variables list

2005-12-10 Thread Asterisk [Submusic]
agi_accountcode: Fred - Original Message - From: Olivier Taylor To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Sent: Saturday, December 10, 2005 6:44 PM Subject: [Asterisk-Users] agi variables list hello all, where can I find a list of agi

Re: [Asterisk-Users] AGI Problem

2005-12-05 Thread Giovanni Miano
part de GiovanniMianoEnvoyé: vendredi 2 décembre 2005 16:18À: Asterisk Users Mailing List - Non-Commercial Discussion Objet: Re: [Asterisk-Users] AGI ProblemI thing u cant use ChanIsAvail with exec command... as use EXEC DIAL(SIP/40) .. it isnt work2005/12/2, Cyrille Demaret [EMAIL PROTECTED]: Hi

[Asterisk-Users] AGI Problem

2005-12-02 Thread Cyrille Demaret
Hi, I'm running the last CVS asterisk version (I was running an older version before with the same problem) and I've a problem with agi scripts. Commands results are not always correct. I've made a small agi test script that execute ChanIsAvail on an inexistent extension:

Re: [Asterisk-Users] AGI Problem

2005-12-02 Thread Giovanni Miano
Try print EXEC ChanIsAvail IAX2/24\n; Channel type is IAX2 not IAX Cheers 2005/12/2, Cyrille Demaret [EMAIL PROTECTED]: Hi, I'm running the last CVS asterisk version (I was running an older version before with the same problem) and I've a problem with agi scripts. Commands results are not

RE: [Asterisk-Users] AGI Problem

2005-12-02 Thread Cyrille Demaret
 : Asterisk Users Mailing List - Non-Commercial Discussion Objet : Re: [Asterisk-Users] AGI Problem Try print EXEC ChanIsAvail IAX2/24\n; Channel type is IAX2 not IAX Cheers 2005/12/2, Cyrille Demaret [EMAIL PROTECTED]: Hi, I'm running the last CVS asterisk version (I was running an older version

Re: [Asterisk-Users] AGI Problem

2005-12-02 Thread Giovanni Miano
-Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Giovanni Miano Envoyé: vendredi 2 décembre 2005 12:52 À: Asterisk Users Mailing List - Non-Commercial Discussion Objet: Re: [Asterisk-Users] AGI Problem Try print EXEC ChanIsAvail IAX2/24\n; Channel type

Re: [Asterisk-Users] AGI Problem

2005-12-02 Thread Philipp von Klitzing
Hi! The first result is ok (-1) but not the second and the third. Why do I get different results for the same command? Hm... u might want to try this: # Check print EXEC ChanIsAvail IAX/24\n; $result = STDIN; print VERBOSE \$result\ 0\n; $result = STDIN; # Check print EXEC ChanIsAvail

RE: [Asterisk-Users] AGI Problem

2005-12-02 Thread Cyrille Demaret
-Commercial Discussion Objet : Re: [Asterisk-Users] AGI Problem I thing u cant use ChanIsAvail with exec command ... as use EXEC DIAL(SIP/40) .. it isnt work 2005/12/2, Cyrille Demaret [EMAIL PROTECTED]: Hi, I've changed that and it's the same problem. I've this problem with all applications

[Asterisk-Users] AGI script always returning 0

2005-11-28 Thread Benoît Mérouze
Hello, I've noticed my AGI, in Perl, was always returning 0 even if exit from it with something else than 0. On http://www.voip-info.org/wiki/view/Asterisk+cmd+AGI, it's said : [AGI] Returns -1 on hangup or if application requested hangup, or 0 on non-hangup exit. But I tried also to hang up

[Asterisk-Users] AGI + CDR

2005-11-28 Thread Innocent Evil
Hi, I have an AGI script that is called after receving a call on a channel. And my script executel AGI cmd Dial to make another call. Is there any reason not to have CDR record for the call that was initiated in the AGI script? Or I am just missing something basics . Thanks, -- You don't have

Re: [Asterisk-Users] AGI script always returning 0

2005-11-28 Thread Health Masters
I have that problem also when trying to use perl agi scripts.. although not with php scripts. What would the output be if problem with perl? Benoît Mérouze wrote: Hello, I've noticed my AGI, in Perl, was always returning 0 even if exit from it with something else than 0. On

RE: [Asterisk-Users] AGI and AUTOHANGUP

2005-11-22 Thread Innocent Evil
Comeo'n AGI guys.. Please say something. Hi, Using AUTOHANGUP, I can force a call duration within a time limit. I would like to playback a message before 1 minute of autohangup. How can I accomplish it? Would anybody please give me right direction. Thanks, You don't have any

Re: [Asterisk-Users] AGI and AUTOHANGUP

2005-11-22 Thread Darren Wiebe
This is easy. :-) How are you creating the call? From an AGI script? Here's how I do it. $maxtime = $timelimit * 1000; #$maxtime is maxlength in seconds $timelimit = |30|HL($maxtime:6:3); #This will provide a warning @ 60 and 30 seconds. return $timelimit; Append $timelimit

Re: [Asterisk-Users] AGI and AUTOHANGUP

2005-11-22 Thread Innocent Evil
thanks a lot, Darren. I opened up app_dial.c and learned more !! -Original Message- From: [EMAIL PROTECTED] Sent: Tue, 22 Nov 2005 22:18:14 -0700 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] AGI and AUTOHANGUP This is easy. :-) How are you creating

[Asterisk-Users] AGI and AUTOHANGUP

2005-11-21 Thread Innocent Evil
Hi, Using AUTOHANGUP, I can force a call duration within a time limit. I would like to playback a message before 1 minute of autohangup. How can I accomplish it? Would anybody please give me right direction. Thanks, You don't have any choice, you already made it before you came

[Asterisk-Users] AGI Dial command return status

2005-11-17 Thread Derek Conniffe
Hi all, I've written a billing application with AsteriskJava (a great package!!!) but I'm having a problem with identifying the call status (call completed, fail, etc) - kind of important for billing. My problem is that is seems like the return code from the exec(DIAL) command tells me if

Re: [Asterisk-Users] AGI Dial command return status

2005-11-17 Thread Stefan Reuter
Hi Derek, I don't think AGI-only is the best approach for billing. You can easily use the Manager API for that (there you get Link and Unlink or CDR events that you can process much better). Using Asterisk-Java you can quite easily combine AGI and the Manager API. =Stefan signature.asc

Re: [Asterisk-Users] AGI Dial command return status

2005-11-17 Thread Derek Conniffe
Thanks Stefan, This is what I'll do Derek Stefan Reuter wrote: Hi Derek, I don't think AGI-only is the best approach for billing. You can easily use the Manager API for that (there you get Link and Unlink or CDR events that you can process much better). Using Asterisk-Java you can quite

[Asterisk-Users] AGI Questions

2005-11-13 Thread Mustafa N. Deeb
Hi I'm trying to integrate Arabic numbering in asterisk I've been using agi-stream_file(FILENAME) , but it seems that it doesn't like to send the filename with path Like agi-stream_file(ar/filename) Anyone knows if it is built this way? Cheers

[Asterisk-Users] AGI environment dump callerid

2005-11-07 Thread bbench
Hi, Since * 1.2-beta1 (incl CVS HEAD) there is a change in the callerid's output to STDERR when an AGI environment dump is requested: Asterisk CVS HEAD built by root @ chick on a i686 running Linux on 2005-11-06 16:35:14 UTC AGI Environment Dump: -- accountcode = -- callerid = 1234689 --

[Asterisk-Users] AGI Dial hangup with *

2005-10-24 Thread Alexey Goloshubin
Hi! I have an AGI script (ala ASTCC) that is executed via DeadAGI. The script does exec Dial. The caller is allowed to press '*' to hangup the call. I want to distinguish between caller pressing *, callee hanging up and caller hanging up. In the first two situations the script should

[Asterisk-Users] AGI Problem

2005-10-17 Thread René Enskat [Teamware GmbH]
Hmm still have problems with the get variable with PHP i have this error now separated with a script: Sending string GET VARIABLE CALLERIDNUM\n to Asterisk... Wroten bytes to STDOUT: 25 Reading 80 bytes response from Asterisk... Received response: 510 Invalid or unknown command

Re: [Asterisk-Users] AGI Problem

2005-10-17 Thread Obelix
Quoting René Enskat [Teamware GmbH] [EMAIL PROTECTED]: In my experience most AGI problems I had came from other info sent to the terminal via verbose commands and other stdout output. There is some info on the voip-info wiki about using AGI. I use the phpagi 2 library, and carefully setting up

AW: [Asterisk-Users] AGI Problem

2005-10-17 Thread René Enskat [Teamware GmbH]
-Commercial Discussion Betreff: Re: [Asterisk-Users] AGI Problem Quoting René Enskat [Teamware GmbH] [EMAIL PROTECTED]: In my experience most AGI problems I had came from other info sent to the terminal via verbose commands and other stdout output. There is some info on the voip-info wiki about

Re: AW: [Asterisk-Users] AGI Problem

2005-10-17 Thread Obelix
. Oktober 2005 11:02 An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: [Asterisk-Users] AGI Problem Quoting René Enskat [Teamware GmbH] [EMAIL PROTECTED]: In my experience most AGI problems I had came from other info sent to the terminal via verbose commands

AW: AW: [Asterisk-Users] AGI Problem

2005-10-17 Thread René Enskat [Teamware GmbH]
An: Asterisk Users Mailing List - Non-Commercial Discussion Betreff: Re: AW: [Asterisk-Users] AGI Problem Quoting René Enskat [Teamware GmbH] [EMAIL PROTECTED]: What I normally do now with agi-verbose is to pass it a variable using print_r($outputvariable, true). thus if I want to output

Re: [Asterisk-Users] AGI Variable problem

2005-10-15 Thread Moises Silva
kind of difficutl to help you if you dont provide the script or relevant info about your php.ini configuration, stuff related to the output buffer. I used to do programming with phpagi class, but then i came up with something more simple and usefull for my purposes.

Re: [Asterisk-Users] AGI and set_callerid for number and name

2005-10-13 Thread Steve Daniels
What version are you using? Try SetCIDName(Fred) Check voip-info's wiki HTH Steve - Original Message - From: Serge Lhermitte [EMAIL PROTECTED] To: asterisk-users@lists.digium.com Sent: Wednesday, October 12, 2005 5:57 PM Subject: [Asterisk-Users] AGI and set_callerid for number

RE: [Asterisk-Users] AGI and set_callerid for number and name

2005-10-13 Thread Serge Lhermitte
Thanks a lot. S. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Nunes Sent: mercredi 12 octobre 2005 19:18 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] AGI and set_callerid for number and name Curse

[Asterisk-Users] AGI Variable problem

2005-10-13 Thread René Enskat [Teamware GmbH]
Hello all, I try to use a agi script to get a variable from * und put them into a script which gives me another variablke and put this in *. My problem is now it seems the var ID is empty coz i always jump into the result 0 loop. The $MSN should be in the SetCIDNum. #!/usr/bin/php -q ?php

Re: [Asterisk-Users] AGI Variable problem

2005-10-13 Thread Moises Silva
for some reason your script is not executing the get_var correctly, as you can see in the output, asterisk is saying: invalid or unknown command. check the internals of your script, the most common reason is that you are mispelling the command. best regardsOn 10/13/05, René Enskat [Teamware

Re: [Asterisk-Users] AGI Variable problem

2005-10-13 Thread René Enskat [Teamware GmbH]
The (/var/lib/asterisk/agi-bin/phpagi.php) is the newest form the site updated today, and i wrote the script like other examples and i can't find a syntax mistake inside extension.conf and the php script .( On Thu, 13 Oct 2005 09:32:14 -0500 Moises Silva [EMAIL PROTECTED] wrote: for some

[Asterisk-Users] AGI and set_callerid for number and name

2005-10-12 Thread Serge Lhermitte
Hi, I've been trying to use the set_callerid function in the AGI. It sets the CallerIDname properly but I can't figure out how to set the CallerIDnumber. Is it at at possible ? Cheers. SL ___ --Bandwidth and Colocation sponsored by Easynews.com

RE: [Asterisk-Users] AGI and set_callerid for number and name

2005-10-12 Thread Pedro Nunes
2005 17:57 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] AGI and set_callerid for number and name Hi, I've been trying to use the set_callerid function in the AGI. It sets the CallerIDname properly but I can't figure out how to set the CallerIDnumber. Is it at at possible

[Asterisk-Users] agi-test.agi question - wierd results

2005-10-05 Thread Angus Comber
Hello I am starting to learn AGI. I have setup an extension to play the agi-test.agi perl script and the output I get is this on console: On Polycom 300: -- Executing Answer(SIP/200-72d2, ) in new stack -- Executing AGI(SIP/200-72d2, agi-test.agi) in new stack -- Launched AGI Script

[Asterisk-Users] AGI Script to interact with ACCESS Databse and Set CID info on the fly.

2005-09-22 Thread Tim King
Well guys here comes the fun part. I have a Microsoft access (VBA) application that interfaces with my SQL database. This app pulls of info from the SQL record and than picks up the phone and dials that locations number. I have purchased a few hundred NpaNxxs for my own use. I want get

RE: [Asterisk-Users] AGI Script to interact with ACCESS Databse a nd Set CID info on the fly.

2005-09-22 Thread Colin Anderson
en = s,8,Goto(my-inbound-context-with-did,${CURRENTEXTEN},3) 'Returncontrol to calling context -----Original Message-From: Tim King [mailto:[EMAIL PROTECTED]Sent: Thursday, September 22, 2005 10:52 AMTo: asterisk-users@lists.digium.comSubject: [Asterisk-Users] AGI Script to int

Re: [Asterisk-Users] AGI Script to interact with ACCESS Databse and Set CID info on the fly.

2005-09-22 Thread Paul
Tim King wrote: Well guys here comes the fun part. I have a Microsoft access (VBA) application that interfaces with my SQL database. This app pulls of info from the SQL record and than picks up the phone and dials that locations number. I have purchased a few hundred NpaNxx’s for my own use.

Re: [Asterisk-Users] AGI Script to interact with ACCESS Databse and Set CID info on the fly.

2005-09-22 Thread pbx
ACCESS supports ODBC driven connections.. Well guys here comes the fun part. I have a Microsoft access (VBA) application that interfaces with my SQL database. This app pulls of info from the SQL record and than picks up the phone and dials that locations number. I have purchased a few

Re: [Asterisk-Users] AGI Script to interact with ACCESS Databse and Set CID info on the fly.

2005-09-22 Thread Tom Hayden
If you used a perl or PHP agi script, you could probably use some kind of ODBC drivers to communicate between the two. -- Tom Hayden On 9/22/05, Tim King [EMAIL PROTECTED] wrote: Well guys here comes the fun part. I have a Microsoft access (VBA) application that interfaces with my SQL

RE: [Asterisk-Users] AGI + Ruby

2005-09-12 Thread Kanuri, Seshu \(Company IT\)
Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] AGI + Ruby Hi, We have created RAGI (Ruby Asterisk Gateway Interface) for the open source community so that Ruby and Ruby on Rails can be used to easily and effeciently create Asterisk-based applications. Examples: IVR, call

Re: [Asterisk-Users] AGI problem with library path

2005-09-12 Thread Olivier Perrin
You can add your library path in the /etc/init.d/asterisk script and restart asterisk via service. or You also can 1/ add your library path in your /etc/ld.so.conf 2/ type ldconfig as root. 3/ restart asterisk via service Hi List, My AGI seems work well in

Re: [Asterisk-Users] AGI + Ruby

2005-09-12 Thread joe heitzeberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe heitzeberg Sent: Sunday, September 11, 2005 12:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] AGI + Ruby Hi, We have created RAGI (Ruby

Re: [Asterisk-Users] AGI + Ruby

2005-09-12 Thread Dan Littlejohn
Subject: Re: [Asterisk-Users] AGI + Ruby Hi, We have created RAGI (Ruby Asterisk Gateway Interface) for the open source community so that Ruby and Ruby on Rails can be used to easily and effeciently create Asterisk-based applications. Examples: IVR, call center apps, Asterisk

Re: [Asterisk-Users] AGI + Ruby

2005-09-12 Thread joe heitzeberg
Hi Dan, Being able to run your call handler and your MVC web application in the same process and language has some great code reuse implications. I'm sure if you are building your web app in Perl and want to leverage that logic with an Asterisk app, then you would do exactly what you are saying.

Re: [Asterisk-Users] AGI + Ruby

2005-09-11 Thread joe heitzeberg
Hi, We have created RAGI (Ruby Asterisk Gateway Interface) for the open source community so that Ruby and Ruby on Rails can be used to easily and effeciently create Asterisk-based applications. Examples: IVR, call center apps, Asterisk management consoles, etc. RAGI includes a set of objects

[Asterisk-Users] AGI programming work required

2005-09-10 Thread Brad Hughes
Title: Message Anyone on this list interested in doing some paid AGI programming work for me? Fairly simple. Need a script (preferably PHP) that will extract the name of a MP3file from a Mysql database based on certain criteria (including the users caller ID), and passthe file nameback to

RE: [Asterisk-Users] AGI programming work required

2005-09-10 Thread Brad Hughes
Title: Message Thanks for your responses, I have found someone to do the work From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Hughes Sent: Saturday, September 10, 2005 10:34 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] AGI programming

[Asterisk-Users] AGI problem with library path

2005-09-10 Thread Innocent Evil
Hi List, My AGI seems work well in asterisk -vvvc mode, other than that it doesn't work. Its seems to me, when I run asterisk as daemon (service asterisk start .. on fc4), it doesn't know about my library path. How can pass libray path to my AGI script or asterisk?

RE: [Asterisk-Users] AGI programming work required

2005-09-10 Thread Alexander Lopez
] [mailto:[EMAIL PROTECTED] On Behalf Of Brad HughesSent: Saturday, September 10, 2005 12:10 PMTo: Asterisk Users Mailing List - Non-Commercial DiscussionSubject: RE: [Asterisk-Users] AGI programming work required Thanks for your responses, I have found someone to do the work

<    3   4   5   6   7   8   9   10   11   12   >