Passing multiple Variables from AMI's Origintate action

Version of Asterisk : 1.6.0.5

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.

“x1=1001|x2=1000|x3=120000”

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 :