[asterisk-users] asterisk 1.6 agi problem with PHP

2011-07-16 Thread Zarko Zivanovic
Hello everyone, I am sure that someone can help with this. We decided to do a fresh install of asterisk 1.6.2.19 And after we did that, the problem that we have is this - We cant run a single Php file! Here's the output: -- Executing [8212@from-pstn:1] Answer(DAHDI/23-1, ) in new

[asterisk-users] SIP - no audio behind nat problem

2010-10-15 Thread Zarko Zivanovic
Hello, We have 2 grandstream GX 2000 phones behind NAT and Asterisk outside this natted network. We have the issue with calls to these SIP phones - no audio. It is probably the problem with port forwarding on router - but I am not sure how can I forward same sip ports (5004 to 5100) to

[asterisk-users] using better quality wav or mp3 in Asterisk 1.2.x

2010-10-06 Thread Zarko Zivanovic
Hello, I would need a little help about using 16 bit wav or mp3 files for moh on asterisk 1.2.x When i try to use these files as moh, the caller gets disconnected. Please advise. Regards, Z. Zivanovic -- _ -- Bandwidth

[asterisk-users] agi macro problem

2010-07-30 Thread Zarko Zivanovic
I am trying this approach to see who picked the line: Here is what i am doing: EXEC DIAL SIP/ vaso Zap/35||M(testing^30086) Macro: [macro-testing] exten = s,1,DumpChan() exten = s,2,AGI(whopicked.rb) exten = s,3,Hangup() From console: -- SIP/ vaso -e26c answered Zap/14-1

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Zarko Zivanovic
please let me know. On Wed, Jul 28, 2010 at 2:02 PM, Zarko Zivanovic outlaw...@gmail.comwrote: Works like charm Danny, Tested and works fine. I sent this to Jim, but this is something you could know: I managed to start a macro and get info about the channel that picked up the call

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Zarko Zivanovic
Danny hi, I just did: $loc=$agi.get_variable('CHANNEL') $my.query(UPDATE call_log SET local = #{$loc}, endtime = NOW() WHERE id = #{call_log_id}) No success - what happens is that it breaks somewhere and neither local nor endtime gets updated. If i

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-29 Thread Zarko Zivanovic
That looks easy. I must say that I am very frustrated as this has took my all week, and beside dumpling that data via macro I wasnt able to use that data in the ruby script that we have. I didnt write the script is something old that we use but i was sure we could add few things in that very

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-28 Thread Zarko Zivanovic
. ${CHANNEL} will have SIP/ voipuser-e989 in your example below. -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Jul 27, 2010, at 7:21 AM, Zarko Zivanovic wrote: Here's something that should be easy for RUBY pro's. Here is a script

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-28 Thread Zarko Zivanovic
more directed questions. -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Jul 27, 2010, at 9:28 AM, Zarko Zivanovic wrote: Jim thanks. I will test this first thing in the morning as I am out of the office now. As a matter of fact I cant wait to test

[asterisk-users] Passing Variables From Dial Macro To Parent Ruby

2010-07-28 Thread Zarko Zivanovic
Thanks to help from Jim Dickenson I managed to start a macro and get info about the channel that picked up the call from my ruby script. The only thing that I cant do so far, is capturing the ${CHANNEL} variable in the ruby script that started the macro. Is that variable accessible from

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-28 Thread Zarko Zivanovic
Sent: Tuesday, July 27, 2010 6:32 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Urgent help = RUBY AGI From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Zarko Zivanovic Subject: Re

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

2010-07-27 Thread Zarko Zivanovic
Thats great, However I need to find a solution to this very problem, not able to code something from scratch. Even this: # Create a new file and write to it File.open('log.txt', 'w') do |f2| # use \n for two lines of text f2.puts Created by Satish\nThank God!\n my variables are '$loc',

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
to be called. You can find the channel that answered a multi channel dial command. Is this not what you wanted to know? -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Jul 26, 2010, at 10:40 AM, Zarko Zivanovic wrote: Hi Andres, I did try what you said

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 help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
Here's something that should be easy for RUBY pro's. Here is a script: 1.times do r = $agi.exec('DIAL', SIP/voipuserZap/32Zap/33Zap/34Zap/35) r = $agi.get_variable('DIALSTATUS')

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
-boun...@lists.digium.com] On Behalf Of Tim Nelson Sent: Tuesday, July 27, 2010 4:30 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Urgent help = RUBY AGI - Zarko Zivanovic outlaw...@gmail.com wrote: Here’s something that should be easy

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tim Nelson Subject: Re: [asterisk-users] Urgent help = RUBY AGI - Zarko Zivanovic outlaw...@gmail.com wrote: Here's something that should be easy for RUBY pro's. My .02 (perhaps irrelevant); Out of the thousands/millions of Asterisk

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Tim Nelson *Subject:* Re: [asterisk-users] Urgent help = RUBY AGI - Zarko Zivanovic outlaw...@gmail.com wrote: Here's something that should be easy for RUBY pro's. My .02 (perhaps irrelevant); Out

Re: [asterisk-users] Urgent help = RUBY AGI

2010-07-27 Thread Zarko Zivanovic
://www.cfmc.com/ On Jul 27, 2010, at 7:21 AM, Zarko Zivanovic wrote: Here’s something that should be easy for RUBY pro’s. Here is a script: 1.times do r = $agi.exec('DIAL', SIP/voipuserZap/32Zap/33Zap/34Zap/35

[asterisk-users] URGENT - who picked up the call??

2010-07-26 Thread Zarko Zivanovic
Hello, I've been looking for this on voip-info and this list threads, and I am guessing I am not looking right. What I need is the way to capture (and write to DB) the information on who 'picked' or 'received' the incoming call. Here is the example of .rb file that is called from

[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 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 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 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 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