Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Zarko Zivanovic
Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards Sent: Monday, July 26, 2010 8:10 PM To: and...@telesip.net; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Zarko Zivanovic
...@lists.digium.com] On Behalf Of Steve Edwards Sent: Monday, July 26, 2010 8:16 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' On Mon, 26 Jul 2010, Zarko Zivanovic wrote: I did try what you said, but it didnt create any

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Zarko Zivanovic
] On Behalf Of Andres Sent: Monday, July 26, 2010 8:09 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' On 7/26/2010 1:40 PM, Zarko Zivanovic wrote: Hi Andres, I did try what you said, but it didnt create any files: $message

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Zarko Zivanovic
Subject: Re: [asterisk-users] URgent - capturing 'answered' If all you need to do is the the channel name of the channel that answered the phone why are you doing so much work? Version 1.4 allows for an agi to be called when the dial command is answered. Version 1.6+ allows an agi as well as a macro

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Philipp von Klitzing
Hi! Great, but how exactly do i find that channel - that is my question - which command. For the third time: Use the M option to Dial() and create a Macro. In that macro use the SIPCHANINFO() or CHANNEL() function to get what you want to get. No AGI (and AGI is a protocol while Ruby is a

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Jim Dickenson
-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jim Dickenson Sent: Monday, July 26, 2010 7:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' If all you need to do

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-27 Thread Zarko Zivanovic
Subject: Re: [asterisk-users] URgent - capturing 'answered' Which version of Asterisk are you running? -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Jul 27, 2010, at 2:19 AM, Zarko Zivanovic wrote: Great, but how exactly do i find that channel - that is my question

[asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
Hello everyone. I need a quick help on how to capture who answered the call with agi. Here is an example: -- Zap/32-1 is ringing -- Zap/33-1 is ringing -- Zap/34-1 is ringing -- Zap/35-1 is ringing -- SIP/operator1-e77f answered Zap/23-1 So how can I capture

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Faisal Hanif
You need to do it by manager interface Regards, Faisal Hanif On 7/26/2010 3:41 PM, Zarko Zivanovic wrote: Hello everyone. I need a quick help on how to capture who answered the call with agi. Here is an example: -- Zap/32-1 is ringing -- Zap/33-1 is ringing -- Zap/34-1 is

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
Sent: Monday, July 26, 2010 12:57 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] URgent - capturing 'answered' You need to do it by manager interface Regards, Faisal Hanif On 7/26/2010 3:41 PM, Zarko Zivanovic wrote: Hello everyone. I need a quick help on how

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Steve Davies
On 7/26/2010 3:41 PM, Zarko Zivanovic wrote: Hello everyone. I need a quick help on how to capture who answered the call with agi. Here is an example:     -- Zap/32-1 is ringing     -- Zap/33-1 is ringing     -- Zap/34-1 is ringing     -- Zap/35-1 is ringing     -- SIP/operator1-e77f

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
-users] URgent - capturing 'answered' On 7/26/2010 3:41 PM, Zarko Zivanovic wrote: Hello everyone. I need a quick help on how to capture who answered the call with agi. Here is an example:     -- Zap/32-1 is ringing     -- Zap/33-1 is ringing     -- Zap/34-1 is ringing     -- Zap/35-1

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Danny Nicholas
It gives me headaches trying to use databases with Asterisk. That being said, IMO the best answer to your query is to use the FORKCDR command so that the call will be split into legs. When the operator answers the call, that will be leg 1. When the call is transferred to the desired party, that

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Jim Dickenson
- Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' On 7/26/2010 3:41 PM, Zarko Zivanovic wrote: Hello everyone. I need a quick help on how to capture who answered the call with agi. Here is an example: -- Zap/32-1 is ringing -- Zap/33-1

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Faisal Hanif
there's a variable capturing who answered. Zarko *From:* asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Faisal Hanif *Sent:* Monday, July 26, 2010 12:57 PM *To:* asterisk-users@lists.digium.com *Subject:* Re: [asterisk-users] URgent

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Leif Madsen
On 10-07-26 08:10 AM, Zarko Zivanovic wrote: Hello Steve and thanks for your answer, However I tried: $my.query(UPDATE call_log SET local='#{CDR(dstchannel)}', endtime = NOW() WHERE id = #{call_log_id}) And it does write nothing to the database. I guess there is a error in ruby expression

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
: [asterisk-users] URgent - capturing 'answered' On 10-07-26 08:10 AM, Zarko Zivanovic wrote: Hello Steve and thanks for your answer, However I tried: $my.query(UPDATE call_log SET local='#{CDR(dstchannel)}', endtime = NOW() WHERE id = #{call_log_id}) And it does write nothing to the database

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
] On Behalf Of Leif Madsen Sent: Monday, July 26, 2010 3:44 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] URgent - capturing 'answered' On 10-07-26 08:10 AM, Zarko Zivanovic wrote: Hello Steve and thanks for your answer, However I tried: $my.query(UPDATE call_log SET

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Doug Lytle
Zarko Zivanovic wrote: $my.query(UPDATE call_log SET local = #{loc}, endtime = NOW() WHERE id = #{call_log_id}) You need to change *ALL* the # to $ Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Philipp von Klitzing
Hi! Depending on the version of Asterisk you are running you can call a macro or an agi as option to dial. These will be called when the line is answered and you can find the channel name of who answered. Do as he says, look at the M option to Dial. Philipp --

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Andres
help! -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Leif Madsen Sent: Monday, July 26, 2010 3:44 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] URgent - capturing 'answered

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Steve Davies
-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Leif Madsen Sent: Monday, July 26, 2010 3:44 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] URgent - capturing 'answered' On 10-07-26 08:10 AM, Zarko Zivanovic wrote: Hello Steve

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' On 26 July 2010 17:27, Zarko Zivanovic outlaw...@gmail.com wrote: I tried this: loc = $agi.get_variable('EXTEN') $my.query(UPDATE call_log SET local = #{loc}, endtime = NOW() WHERE id

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Zarko Zivanovic
-users] URgent - capturing 'answered' On 7/26/2010 12:27 PM, Zarko Zivanovic wrote: I tried this: loc = $agi.get_variable('EXTEN') $my.query(UPDATE call_log SET local = #{loc}, endtime = NOW() WHERE id = #{call_log_id}) When I troubleshoot AGI scripts, I output stuff to text files

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Jim Dickenson
-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Andres Sent: Monday, July 26, 2010 6:47 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' On 7/26/2010 12:27 PM, Zarko Zivanovic wrote

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Andres
, 2010 6:47 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing 'answered' On 7/26/2010 12:27 PM, Zarko Zivanovic wrote: I tried this: loc = $agi.get_variable('EXTEN') $my.query(UPDATE call_log SET local = #{loc}, endtime

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Steve Edwards
On Mon, 26 Jul 2010, Andres wrote: When I troubleshoot AGI scripts, I output stuff to text files for debugging purposes. I suggest you output all your variables to a file and then you will learn if the variables do have the info you need. Something like: $message=/bin/echo my variables

Re: [asterisk-users] URgent - capturing 'answered'

2010-07-26 Thread Steve Edwards
On Mon, 26 Jul 2010, Zarko Zivanovic wrote: I did try what you said, but it didnt create any files: $message=/bin/echo my variables are '$loc', '$variable1', '$variable2' /tmp/variables.txt; system($message); I'm just a c weenie, but that syntax would execute a command named $message, not