How to access variables in dialplan with Originate

Hi,

I have the following manager API command. I need to access TEST1,TEST2,TEST3 and TEST4 in dialplan. Can anyone please help me how to access these variables in the dialplan.

Action: Originate
Channel: SIP/1000/
Context: default
Exten: 1000
Priority: 1
Variable: TEST1=123456
Variable: TEST2=123450
Variable: TEST3=76412285
Variable: TEST4=280

Thanks in advance
Ram.

Please show us what you attempted and what went wrong. Basic accessing of variables is something for the documentation.

In some cases you will need _ or __ prefixes, when setting, but not when reading.

What would You think this Originate sequence should trigger (expecting extension 1000 in default contains someting like Dial(SIP/${EXTEN})) ??? If You can’t answer the question in theory just try Your originate against an Asterisk-box with a device 1000 configured …

However, for accessing the content of variables in asterisk’s dialplan You should probably have a look at the Asterisk basics, e.g. voip-info.org/wiki/view/Asterisk+variables

Look like this:

Action: Originate
Channel: SIP/101test
Context: default
Exten: 8135551212
Priority: 1
Callerid: 3125551212
Timeout: 30000
Variable: var1=23,var2=24,var3=25
ActionID: ABC45678901234567890

The pipe mak is out of date.
Use ‘,’ instead of ‘|’ !!!