<div dir="ltr">You&#39;re looking for the auth-calls param on the sofia profile the call is being sent to.<div><a href="https://wiki.freeswitch.org/wiki/Sofia.conf.xml#auth-calls">https://wiki.freeswitch.org/wiki/Sofia.conf.xml#auth-calls</a><br></div><div><br></div><div>It&#39;s important to note that in SIP authentication of calls and registration are completely separate. Even if you&#39;re registered your calls won&#39;t show as from you unless you authenticate. Some of the profiles in the example (vanilla) config don&#39;t require authentication so you can receive public calls (eg calls into a DID) on that profile.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 August 2015 at 15:05, Vladislav Ivanov <span dir="ltr">&lt;<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>&gt;</span> wrote:<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></div>