Re: [asterisk-users] AGI

2013-03-18 Thread Gustavo Salvador
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 answ

Re: [asterisk-users] AGI

2013-03-15 Thread Gustavo Salvador
ad line AGI invocation: AGI(agiFile.agi,${CALLERID(num)}) Regards, Gustavo El 14/03/2013, a las 17:24, Steve Edwards escribió: > (A more specific subject may yield better answers -- better bait == better > fish.) > > On Thu, 14 Mar 2013, Gustavo Salvador wrote: > >> Does a

[asterisk-users] AGI

2013-03-14 Thread Gustavo Salvador
Hi everybody, Does any one knows how to place a call from a shell agi? I guess is something like echo Exec Dial(DAHDI/g2/2010,,W). Algo how i get the dnid variable? Thanks. -- _ -- Bandwidth and Colocation Provided by http://www

Re: [asterisk-users] AGI Script

2013-03-07 Thread Gustavo Salvador
> Hi, thanks. > > > .Did that include 'agi set debug on?' >> Yes, that include this command. > >> Can you 'cut-n-paste' the relevant 'sanitized' console output? >> Ok. This is: > trixbox146002*CLI> > -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi > trixbox146002*CLI> > A

Re: [asterisk-users] AGI Script

2013-03-06 Thread Gustavo Salvador
erbose mode, and also set on the debug, but the only clue I have is just this error. Regards, Gustavo On 06/03/2013, at 13:24, Steve Edwards wrote: > On Wed, 6 Mar 2013, Gustavo Salvador wrote: > >>> I'm writing an AGI Perl Script... > >>> =

Re: [asterisk-users] AGI Script

2013-03-06 Thread Gustavo Salvador
at is because I'm loose with this Regards, Gustavo On 06/03/2013, at 12:12, Gertjan Baarda wrote: > Might be a codec issue, try allow=all in your sip.conf > > Sent from my iPhone > > On 6 mrt. 2013, at 17:49, Gustavo Salvador > wrote: > >>> >>> Hi e

[asterisk-users] AGI Script

2013-03-06 Thread Gustavo Salvador
> > Hi every body, > > Please if some one could help me with this: > I'm writing an AGU Perl Script which basically makes a call using an > extension provided by other asterisk box to an E1. The asterisk version is > 1.6.0.28, so it hasn't the Wellington know AGI class. The code is as follows: