I’m trying to set a variable with AGI.
The variable is for caller id and needs to be in the format:
“Elvis Presley” <5551212>
However, when a variable in my script holds this value, and I use:
SET VARIABLE var value
…the quotes are causing AGI to stop processing the variable and omit everything after the quotes.
for example, in python:
sys.stderr.write(“SET VARIABLE %s %s” % (var, val))
sys.stderr.write(“SET VARIABLE “%s” %s” % (var, val))
ends up setting the variable var to:
I’ve also tried passing the following possible alternatives to Asterisk:
“Elvis Prelsey” <5551212>
‘Elvis Presley’ <5551212>
In either case, all Asterisk gets is ‘Elvis’
Anyone know how to get around this? Once again, I’m just trying to set a variable in Asterisk and hitting walls. sigh