How to pass variables of originate action using http rawman

Hi,

I am trying to originate call from asterisk using http manager raw interface as follows:

localhost:8088/rawman?action=Ori … ID=123455&Variable=var1=2223

The call is originated but. I am not able to set variable for it. In documentation of Originate command it is mention that we can pass multiple variable.

Is it possible to variable in http querystring format ?

Would you please help me to resolve it.

Thanks & regards,
-Vinayak

Yes it is possible to pass multiple variables in the HTTP query string format. You would just have to HTTP URL encode the equal sign in the variable assignment like so:

http://localhost:8088/rawman?action=Originate&Channel=SIP/100HHHTT1&Exten=1340&Context=LocalSets&Priority=1&ActionID=123455&variable=var1%3D2223&variable=var2%3D2223

As you can see above, the = sign has been replaced with %3D.