Hi list,

question regarding the result of a DB query. I have

database put Agora modele/IVR/AstreinteNagios/1 ${ASTR_State}

i=1 and I read the DB with

exten => IVR,n,Set(__PlayMe=${DB(${ASTRSVC}/IVR/${IVR}/${i})})
exten => IVR,n,NoOp(We read ${PlayMe})

Result:

-- Executing [IVR@Automates:8] Set("SIP/laotseu-00000001", "__PlayMe=${ASTR_State}") in new stack -- Executing [IVR@Automates:9] NoOp("SIP/laotseu-00000001", "Value of PlayMe is ${ASTR_State}") in new stack

This means that ${ASTR_State} is not considered as a variable but as a simple alphanumerical chain. What I would like is to display the value of ASTR_State wich was setted before the PlayMe affectation in the dialplan. I tried the ${${ASTR_State}} command, no more luck.

Is there a way to archieve what I want to do? A regexp ?

In any dialplan, if you make a NoOp( ${blabla} ) and blabla was not inizialized, the ${blabla} has an empty value. Why in my case above ${ASTR_State} is not treated as a variable?

Thanks for any suggestion

--
Daniel

--
_____________________________________________________________________
-- 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

Reply via email to