<div dir="ltr"><div class="gmail_default" style="">Hi Vlad,<span style="font-size:12.8000001907349px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.2000007629395px"><br>1) try remove bakets from log, write it like </span><font color="#000000" face="sans-serif"><span style="font-size:12.8000001907349px;line-height:19.2000007629395px">&lt;action application=&quot;log&quot; data=&quot;ERR TestMessage ${user_context}&quot;/&gt;. I tested now, it works.</span></font><br><font color="#000000" face="sans-serif"><span style="font-size:12.8000001907349px;line-height:19.2000007629395px">2) Examples of my directory:</span></font><br><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">&lt;user id=&quot;someid&quot;&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                  &lt;params&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;param name=&quot;password&quot; value=&quot;xxx&quot;/&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                  &lt;/params&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                  &lt;variables&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;accountcode&quot; value=&quot;xxx&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;user_context&quot; value=&quot;ARTUR&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;xxx&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;xxx&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;$${outbound_caller_name}&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;$${outbound_caller_id}&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                    &lt;variable name=&quot;sip-force-expires&quot; value=&quot;180&quot; /&gt;</div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px">                  &lt;/variables&gt;</div><div class="gmail_default" style=""><font color="#000000" face="sans-serif"><span style="line-height:19.2000007629395px">                &lt;/user&gt;</span></font><br><font color="#000000" face="sans-serif"><span style="line-height:19.2000007629395px">then in dialplan </span></font><br><font color="#000000" face="sans-serif"><span style="line-height:19.2000007629395px">&lt;context name=&quot;ARTUR&quot;&gt;<br>... extentions....<br></span></font>&lt;/context&gt;</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-26 19:05 GMT+05:00 Vladislav Ivanov <span dir="ltr">&lt;<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good Day,<br><br>I have been trying to set up the sip phone at my home, and i&#39;m having some issues with channel variables. <br>>From what I have read: <a href="https://wiki.freeswitch.org/wiki/Routing_with_directory_parameters" target="_blank">https://wiki.freeswitch.org/wiki/Routing_with_directory_parameters</a>   I should <font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">force per-call authentication in your sofia.xml.conf for &lt;variables&gt; to be passed through to the dialplan. But I were unable to find this option in sofia/sofia_default files.</span></font><br><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><a href="https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables</a> - Although here there is nothing about &quot;per-call authentication&quot;. And I&#39;m not sure how to proceed.</span></font><br><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">I have this directory xml:</span></font><br><br><div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;include&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">  &lt;user id=&quot;123123&quot;&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">    &lt;params&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;param name=&quot;password&quot; value=&quot;123123&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">    &lt;/params&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">    &lt;variables&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;variable name=&quot;accountcode&quot; value=&quot;123123&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;variable name=&quot;user_context&quot; value=&quot;test_context&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Test Phone&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;123123&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;$${outbound_caller_name}&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">      &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;$${outbound_caller_id}&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">    &lt;/variables&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">  &lt;/user&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;/include&gt;</span></font></div><div><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">Directory variables should be passed as ${variable} as they are channel variables?</span></font><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">I have Dialplan as follows:</span></font><br><br><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;extension name=&quot;registrar_test&quot;&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(.*)$&quot;&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">                &lt;action application=&quot;log&quot; data=&quot;ERR TestMessage [${user_context}]&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">                &lt;action application=&quot;respond&quot; data=&quot;503 Route Successfull&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">        &lt;/condition&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;/extension&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;extension name=&quot;all_reject&quot;&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(.*)$&quot;&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">                &lt;action application=&quot;respond&quot; data=&quot;503 No Route&quot;/&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">        &lt;/condition&gt;</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;/extension&gt;</span></font></div><div><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">When I dial the call I get </span></font><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">TestMessage</span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px"> [] instead of </span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">test_context.<br>Also, wrapping </span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">registrar_test extension with </span><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&lt;context name=&quot;</span></font><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">test_context</span><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">&quot;&gt;&lt;/context&gt; doesn&#39;t help, my call will go to &quot;all_reject&quot; extension.<br><br>What do I miss?<br><br>Best Regards,<br>Vlad</span></font></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><br>Arthur</div></div></div></div>
</div>