Passing multiple Variables from AMI's Origintate action

Version of Asterisk :

Problem: using PHPAGI’s AMI to call Originate action to send multiple variables to dialplan separated by |. BUT they all coming as one variable NOT as separate ones.


dialplan is thinking x1 as “1001|x2=1000|x3=120000”

I tried separating by “\r\nVariable:” as someone suggested online. But no luck.

Any help is really appreciated.

Separation by "\r\nVariable: " works… notice space after :