Re: [asterisk-users] channel variables in AGI
On Wed, 18 Aug 2010, Anthony Messina wrote: For example, see: http://messinet.com/trac/asterisk-fax-gw/browser/fax-gw.agi#L622 Wow. I thought I knew a bit about bash. I made notes on 19* different lines I have no clue what they do. It's going to take me hours to figure these out so I can add them to my repertoire. *) I'm sure there's more nuggets in there but my eyes are glazing over. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] channel variables in AGI
On Saturday, August 21, 2010 02:19:00 pm Steve Edwards wrote: Wow. I thought I knew a bit about bash. I made notes on 19* different lines I have no clue what they do. It's going to take me hours to figure these out so I can add them to my repertoire. *) I'm sure there's more nuggets in there but my eyes are glazing ove Believe me, I've glazed over the Bash man page for quite some time to get that interface going ;) If you're interested in mail to fax (and back), give it a shot. I could use some testers. Have a good night. -A -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E signature.asc Description: This is a digitally signed message part. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] channel variables in AGI
On Wednesday, August 11, 2010 11:08:37 am Tino wrote: #!/bin/bash -x T=$agi_uniqueid I want to save value of 'agi_uniqueid' channel variable into a variable called 'T' in my script When executing and AGI from the dialplan, it will dump out it's variables immediately, so you need to tell Bash to read them in and write them to whatever variables you want. For example, see: http://messinet.com/trac/asterisk-fax-gw/browser/fax-gw.agi#L622 Here, I set the variable name from Asterisk to the variable value from Asterisk. So I end up with: agi_uniqueid=123456... (or whatever the uniqueid was) Then I could go on to say T=$agi_uniqueid -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E signature.asc Description: This is a digitally signed message part. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] channel variables in AGI
Hello, How to take the values of channel variables like 'agi_uniqueid' and 'agi_callerid' in agi script. For example #!/bin/bash -x T=$agi_uniqueid I want to save value of 'agi_uniqueid' channel variable into a variable called 'T' in my script -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] channel variables in AGI
On Wed, 11 Aug 2010, Tino wrote: How to take the values of channel variables like 'agi_uniqueid' and 'agi_callerid' in agi script. For example #!/bin/bash -x T=$agi_uniqueid AGI is a protocol. Basically, Asterisk creates a process to run your AGI compliant program (the above is not). Asterisk feeds the AGI environment to your program via STDIN. Your program then issues requests to Asterisk by writing to STDOUT and reads responses from STDIN. While you can write your own AGI library, you should use an existing library for your source language (I prefer c for a lot of reasons) -- nobody gets it right the first time. Search on voip-info.org for more specifics. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000-- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users