I am trying to execute the SIP_HEADER function from an python agi. But all I get is the string ‘SIP_HEADER’ and not the function result:
Using the SET VARIABLE VARIABLENAME VALUE syntax, I get:
AGI Rx << SET VARIABLE “mytest” “SIP_HEADER(“Call-ID”)”
AGI Tx >> 200 result=1
or trying with Exec:
AGI Rx << EXEC Set other=SIP_HEADER(“Call-ID”)
– AGI Script Executing Application: (Set) Options: (other=SIP_HEADER(Call-ID))
Tx >> 200 result=0
A dumpchan later show that the mytest, and other, variables are set to the string, and not to the function result !
What am i doing wrong !!!