<div dir="ltr">I keep trying to log them but the log application is showing me the log statement and not the variable itself. I know I have used this successfully before, but even if I try logging the destination_number it does not log.<div><br></div><div>I have tried ${destination_number} and [${destination_number}] and my log output looks like this.</div><div><br></div><div>Action log(Log TEST ========== ${destination_number} or [${destination_number}]<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 12:45 PM, Bote Man <span dir="ltr">&lt;<a href="mailto:bote_radio@botecomm.com" target="_blank">bote_radio@botecomm.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 lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I also recommend using the FreeSWITCH “log” application to display what FS thinks those variables contain. <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">---<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Bote<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">FreeSWITCH Docs Janitor<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://freeswitch.org/confluence" target="_blank"><span style="color:blue">http://freeswitch.org/confluence</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Tim King<br><b>Sent:</b> Thursday, 04 February, 2016 12:13<br><b>Subject:</b> Re: [Freeswitch-users] X-Auth-IP Variable?<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Thank you for the reply. I tried this for matching to the ACL but it is failing.<u></u><u></u></p><div><p class="MsoNormal">&lt;condition field=&quot;${acl(${variable_sip_h_X-Auth-IP} opensips)}&quot; expression=&quot;true&quot; break=&quot;on-false&quot;/&gt;<u></u><u></u></p></div></div></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><div class="h5"><p class="MsoNormal">On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy &lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a>&gt; wrote:<u></u><u></u></p><div><p class="MsoNormal">${variable_sip_h_X-Auth-IP}<u></u><u></u></p></div></div></div><div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><p class="MsoNormal">On 4 February 2016 at 16:19, Tim King &lt;<a href="mailto:tim.compnetwork@gmail.com" target="_blank">tim.compnetwork@gmail.com</a>&gt; wrote:<u></u><u></u></p></div></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><div><p class="MsoNormal">I am using proxy authentication in my setup and it is working. To do this I have created an acl<u></u><u></u></p><div><p class="MsoNormal"><b>autoload_configs/acl.conf.xml</b><u></u><u></u></p></div><div><div><p class="MsoNormal">   &lt;list name=&quot;opensips&quot; default=&quot;deny&quot;&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                &lt;node type=&quot;allow&quot; cidr=&quot;<a href="http://1.2.3.4/32" target="_blank">1.2.3.4/32</a>&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                &lt;node type=&quot;allow&quot; cidr=&quot;<a href="http://1.2.3.5/32" target="_blank">1.2.3.5/32</a>&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                &lt;node type=&quot;allow&quot; cidr=&quot;<a href="http://1.2.3.6/32" target="_blank">1.2.3.6/32</a>&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">   &lt;/list&gt;<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><b>sip_profiles/external.xml</b><u></u><u></u></p></div><div><p class="MsoNormal">&lt;param name=&quot;auth-calls&quot; value=&quot;true&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">&lt;param name=&quot;apply-proxy-acl&quot; value=&quot;<a href="http://1.2.3.2/32" target="_blank">1.2.3.2/32</a>&quot;/&gt;<u></u><u></u></p></div><div><div><p class="MsoNormal">&lt;param name=&quot;apply-inbound-acl&quot; value=&quot;opensips&quot;/&gt;<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">This is all working as desired. The problem is prior to adding the opensips I was using the network_addr variable in my dialplan.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">        &lt;extension name=&quot;tollfree_to_providerA&quot;&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                &lt;condition field=&quot;${acl(${network_addr} opensips)}&quot; expression=&quot;true&quot; break=&quot;on-false&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$&quot;&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                                &lt;action application = &quot;set&quot; data=&quot;dtmf_type=rfc2833&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                                &lt;action application=&quot;set&quot; data=&quot;accountcode=customer1123&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                                &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                                &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                                &lt;action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                                &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/$<a href="http://2@8.7.6.5:5060" target="_blank">2@8.7.6.5:5060</a>&quot;/&gt;<u></u><u></u></p></div><div><p class="MsoNormal">                &lt;/condition&gt;<u></u><u></u></p></div><div><p class="MsoNormal">        &lt;/extension&gt;<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">This of course no longer works because network_addr is always the address of my proxy server. How can I get the address from the X-authip into the dialplan?<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></blockquote></div><p class="MsoNormal"><span><span style="color:#888888"><u></u> <u></u></span></span></p><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div><p class="MsoNormal"><span><span style="color:#888888">-- </span><u></u><u></u></span></p><span class=""><div><div><p class="MsoNormal"><b><span style="color:#888888">Andrew Cassidy BSc (Hons) MBCS SSCA</span></b><u></u><u></u></p><div><p class="MsoNormal"><span style="color:#888888">Managing Director<u></u><u></u></span></p><div><div><p class="MsoNormal"><span style="color:#888888"><img border="0" src="http://www.cassidywebservices.co.uk/static/emailsig.png"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:#888888"><u></u> <u></u></span></p><div><p class="MsoNormal"><b><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#3387ab"><a href="mailto:info@cassidywebservices.co.uk" target="_blank"><span style="color:#3387ab;text-decoration:none">T</span></a> </span></b><span style="color:#888888">03300 100 960  </span><b><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#3387ab"><a href="mailto:info@cassidywebservices.co.uk" target="_blank"><span style="color:#3387ab;text-decoration:none">F</span></a> </span></b><span style="color:#888888">03300 100 961<u></u><u></u></span></p></div><div><p class="MsoNormal"><b><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#888888"><a href="mailto:info@cassidywebservices.co.uk" target="_blank"><span style="color:#3387ab;text-decoration:none">E</span></a> </span></b><span style="color:#888888"><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a><u></u><u></u></span></p></div><div><p class="MsoNormal"><b><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#888888"><a href="mailto:info@cassidywebservices.co.uk" target="_blank"><span style="color:#3387ab;text-decoration:none">W</span></a> </span></b><span style="color:#888888"><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a><u></u><u></u></span></p></div></div></div></div></div></div></span></div><span class=""><p class="MsoNormal"><br>_________________________________________________________________________<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-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><u></u><u></u></p></span></div><p class="MsoNormal"><u></u> <u></u></p></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>