<include>
<user id="123123">
<params>
<param name="password" value="123123"/>
</params>
<variables>
<variable name="accountcode" value="123123"/>
<variable name="user_context" value="test_context"/>
<variable name="effective_caller_id_name" value="Test Phone"/>
<variable name="effective_caller_id_number" value="123123"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
</variables>
</user>
</include>
Directory variables should be passed as ${variable} as they are channel variables?I have Dialplan as follows:<extension name="registrar_test">
<condition field="destination_number" expression="^(.*)$">
<action application="log" data="ERR TestMessage [${user_context}]"/>
<action application="respond" data="503 Route Successfull"/>
</condition>
</extension>
<extension name="all_reject">
<condition field="destination_number" expression="^(.*)$">
<action application="respond" data="503 No Route"/>
</condition>
</extension>
When I dial the call I get TestMessage [] instead of test_context.
Also, wrapping registrar_test extension with <context name="test_context"></context> doesn't help, my call will go to "all_reject" extension.
What do I miss?
Best Regards,
Vlad