If you are in a perl script using session->setVariable, how are you still in the dialplan? This doesn't make sense to me. There should be no need for an inline if you are already in the script.
On Dec 10, 2014, at 4:20 AM, Liam Farr <liam@maxumdata.com> wrote:
Hi,
I need to set a variable using a perl script inline.
Normally I would use $session->setVariable('some_var',$my_value);
However I cant find any options to execute this inline / as an inline action. (I need to evaluate the variable later in the hunting phase of the dialplan hence need it to be an inline action).
Is there a way to do this?
Or is there another way to achieve the same result, e.g. hacking $session->execute("set","some_var=$my_value") to run as an inline action?
Any help would be much appreciated, I've scoured the wiki, confluence and git repo and come up empty.
-- Kind Regards
Liam Farr