Displaying 1 result from an estimated 1 matches for "agilib".
Did you mean:
cgilib
2003 Sep 19
7
AGI problem
...call.tcl)
exten => s,2,macro(${NMacro}|${NPar1}|${NPar2})
[macro-followme]
exten => s,1,agi(followme.tcl)
exten => s,2,noop
exten => s,3,goto(${NContexto}|${NExten}|1)
-------------------------
receivecall.tcl
-------------------------
#!/usr/bin/tclsh
source /var/lib/asterisk/agi-bin/agilib.tcl
parametros
puts stdout "SET VARIABLE Extension $agi(extension)"
gets stdin linea
puts stdout "SET VARIABLE NMacro followme"
gets stdin linea
puts stdout "SET VARIABLE NPar1 $agi(extension)"
gets stdin linea
puts stdout "SET VARIABLE NPar2 92624663"
get...