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

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

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

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 script

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
please let me know. On Wed, Jul 28, 2010 at 2:02 PM, Zarko Zivanovic wrote: > 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 abou

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

2010-07-28 Thread Zarko Zivanovic
ts.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas 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.digiu

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

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

2010-07-28 Thread Zarko Zivanovic
n CLI you should have been able to ask 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.

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

2010-07-28 Thread Zarko Zivanovic
You will see that this macro runs when the call is answered and you will see on the CLI all the variables that are available to you. ${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,

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

2010-07-27 Thread Zarko Zivanovic
oipuser-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 sc

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

2010-07-27 Thread Zarko Zivanovic
rs-boun...@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" wrote: >> > >>Here's something that should be easy for

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

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

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" wrote: > >Here’s something that should be

[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/voipuser&Zap/32&Zap/33&Zap/34&Zap/35) r = $agi.get_variable('DIALSTATUS')

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

2010-07-27 Thread Zarko Zivanovic
ssion 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 - t

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

2010-07-27 Thread Zarko Zivanovic
s for an agi to be called when the dial command is answered. Version 1.6+ allows an agi as well as a macro 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

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

2010-07-27 Thread Zarko Zivanovic
nal Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] 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:4

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', '$a

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

2010-07-27 Thread Zarko Zivanovic
-Original 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:16 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] URgent - capturing '

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

2010-07-26 Thread Zarko Zivanovic
ers 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},

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

2010-07-26 Thread Zarko Zivanovic
$my.query("UPDATE call_log SET local = #{loc}, endtime = NOW() WHERE id = #{call_log_id}") raise 'Ne mogu da se ispisem iz call_log-a: call_log_id = #{call_log_id}' if $my.affected_rows() != 1 end nil

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

2010-07-26 Thread Zarko Zivanovic
: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 and thanks for your answer, > However I t

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

2010-07-26 Thread Zarko Zivanovic
ts.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 local='#{CDR(dstchannel)}', endtime = NOW() >

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

2010-07-26 Thread Zarko Zivanovic
scussion 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

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

2010-07-26 Thread Zarko Zivanovic
isal Hanif 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

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

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