I kind of facing the same problem that you were facing.
I am using similar configuration as you are for asterisk.
I am using java-asterisk library to communicate with asterisk.
In my code I am setting two variables (PIN, MREQID) and trying to access
them in dialplan (dialplan shown below).
When I send command to Asterisk to orginate, I get following result (result
shown below). I am wondering how should get access to individual variable
data. I was wondering if I should use Set(var,x,y) method to pull out the
part which is necessary for me. But wasnt sure if thats the right way.