<div dir="ltr">You'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's important to note that in SIP authentication of calls and registration are completely separate. Even if you're registered your calls won't show as from you unless you authenticate. Some of the profiles in the example (vanilla) config don'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"><<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>></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'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 <variables> 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 "per-call authentication". And I'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"><include></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <user id="123123"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <params></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <param name="password" value="123123"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </params></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variables></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="accountcode" value="123123"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="user_context" value="test_context"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="effective_caller_id_name" value="Test Phone"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="effective_caller_id_number" value="123123"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </variables></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </user></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"></include></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"><extension name="registrar_test"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <condition field="destination_number" expression="^(.*)$"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <action application="log" data="ERR TestMessage [${user_context}]"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <action application="respond" data="503 Route Successfull"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </condition></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"></extension></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"><extension name="all_reject"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <condition field="destination_number" expression="^(.*)$"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <action application="respond" data="503 No Route"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </condition></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"></extension></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"><context name="</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">"></context> doesn't help, my call will go to "all_reject" 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>