[asterisk-users] AGI

Gustavo Salvador gustavo.salvador.69 at gmail.com
Mon Mar 18 10:18:19 CDT 2013


Thanks,

You are right, the bash version should be:

#!bin/bash

#Get and spawn AGI variables
declare -a array
while read -e ARG && [ "$ARG" ]; do
    array=(` echo $ARG | sed -e 's/://'`)
    export ${array[0]}={array[1]}
done
echo "EXEC \"Dial\" \"DAHDI/g2/$agi_dnid\""

#Get execution answer
answer=read line

Yes, it could also be written using C instead.


Regards

Gustavo



More information about the asterisk-users mailing list