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
