<div dir="ltr">Brian,<div><br></div><div>Yes you're right - I started from almost zero config so auth-calls was not set in the sofia profile. I solved the issue yesterday by using set_user based on the Caller ID (i.e. trusting the incoming Caller ID for the 'default' context' - accessible by internal port 5060 calls only). </div><div><br></div><div>It turns out that whilst I already had this in vars.xml:</div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/></div></div><div><br></div><div>I didn't provide the matching line in sip_profiles/internal.xml:</div><div><br></div><div><div> <param name="auth-calls" value="$${internal_auth_calls}"/></div></div><div><br></div><div>I have now added that line to the sip profile, removed the 'set_user' from the dialplan, and authentication is working just as it should. Many thanks for taking the time to point me in the right direction - it's really appreciated!</div><div><br></div><div>Cheers,</div><div>Gavin.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 September 2014 16:32, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</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">Sounds like you may have turned off auth calls and its never actually setting anything and just letting the calls thru.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 9, 2014 at 8:03 AM, Gavin Hamill <span dir="ltr"><<a href="mailto:gavin@bashton.com" target="_blank">gavin@bashton.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<br><br>I'm starting out with FS 1.4.7 on CentOS 6 (installed via the FS repo at <a href="http://files.freeswitch.org" target="_blank">http://files.freeswitch.org</a>) and have a simple working config with two sofia profiles, internal and external. I can register SIP clients, call between internal extensions and call external numbers through a SIP gateway.<br><br>Each user in directory/default/*.xml looks like this:<br><br><include><br> <user id="106"><br> <params><br> <param name="password" value="xxx"/><br> </params><br> <variables><br> <variable name="accountcode" value="106"/><br> <variable name="user_context" value="default"/><br> <variable name="effective_caller_id_name" value="Gavin Hamill"/><br> <variable name="outbound_caller_id_name" value="Gavin Hamill"/><br> </variables><br> </user><br></include><br><br>However, when I call from 106 -> 105, I only see '105' appear in the destination client when I would expect to see 'Gavin Hamill' If I force the effective_caller_id_name to be a fixed string:<br><br> <context name="default"><br> <extension name="bashton_office_staff"><br> <condition field="destination_number" expression="^(10[0-9])<span></span>quot;><br> <action application="set" data="effective_caller_id_name=QWERTYUIOP" /><br> <action application="bridge" data="user/$1"/><br> </condition><br> ...<br> </context><br><br>Then sure enough calls always appear as coming from 'QWERTYUIOP' At <a href="https://confluence.freeswitch.org/display/FREESWITCH/XML+User+Directory" target="_blank">https://confluence.freeswitch.org/display/FREESWITCH/XML+User+Directory</a><div>there is a section 'Variables' which states:<br><br> Any variables defined in the domain or user will be defined as channel<br> variables when there is a call to user or when there is an inbound calls from that user.<br><br>That's exactly the behaviour I was expecting - any pointers where I'm going wrong would be warmly received.<br><br>Cheers,<br>Gavin</div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://bkw.org/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>