[Asterisk-Users] Re: Executing a Function from AGI

Stefan Tichy asterisk at pi4tel.de
Fri Jun 16 06:25:57 MST 2006


On Thu, Jun 15, 2006 at 03:21:32PM -0600, Douglas Garstang wrote:
> I've tried this:
> EXEC "Set" "DIALPATH=${DUNDILOOKUP(2944093|180net)}"
> 
> and also:
> SET VARIABLE DIALPATH ${DUNDILOOKUP(2944093|180net)}
> 
> in both cases, DIALPATH is set to a literal "${DUNDILOOKUP2944093|180net}"

"get full variable" evaluates a channel expression, but "set
variable" cannot be used this way.

Use "GET FULL VARIABLE" to get the value and then use "SET VARIABLE"
to store this value in the DIALPATH variable. 


-- 
Stefan Tichy   <asterisk at pi4tel.de>



More information about the asterisk-users mailing list