<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"><<a href="mailto:bote_radio@botecomm.com" target="_blank">bote_radio@botecomm.com</a>></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:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">---<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Bote<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">FreeSWITCH Docs Janitor<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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"><condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/><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 <<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a>> 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 <<a href="mailto:tim.compnetwork@gmail.com" target="_blank">tim.compnetwork@gmail.com</a>> 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"> <list name="opensips" default="deny"><u></u><u></u></p></div><div><p class="MsoNormal"> <node type="allow" cidr="<a href="http://1.2.3.4/32" target="_blank">1.2.3.4/32</a>"/><u></u><u></u></p></div><div><p class="MsoNormal"> <node type="allow" cidr="<a href="http://1.2.3.5/32" target="_blank">1.2.3.5/32</a>"/><u></u><u></u></p></div><div><p class="MsoNormal"> <node type="allow" cidr="<a href="http://1.2.3.6/32" target="_blank">1.2.3.6/32</a>"/><u></u><u></u></p></div><div><p class="MsoNormal"> </list><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"><param name="auth-calls" value="true"/><u></u><u></u></p></div><div><p class="MsoNormal"><param name="apply-proxy-acl" value="<a href="http://1.2.3.2/32" target="_blank">1.2.3.2/32</a>"/><u></u><u></u></p></div><div><div><p class="MsoNormal"><param name="apply-inbound-acl" value="opensips"/><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"> <extension name="tollfree_to_providerA"><u></u><u></u></p></div><div><p class="MsoNormal"> <condition field="${acl(${network_addr} opensips)}" expression="true" break="on-false"/><u></u><u></u></p></div><div><p class="MsoNormal"> <condition field="destination_number" expression="^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$"><u></u><u></u></p></div><div><p class="MsoNormal"> <action application = "set" data="dtmf_type=rfc2833"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="set" data="accountcode=customer1123"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="set" data="continue_on_fail=false"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="set" data="hangup_after_bridge=true"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="set" data="proxy_media=true"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="bridge" data="sofia/external/$<a href="http://2@8.7.6.5:5060" target="_blank">2@8.7.6.5:5060</a>"/><u></u><u></u></p></div><div><p class="MsoNormal"> </condition><u></u><u></u></p></div><div><p class="MsoNormal"> </extension><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:"Arial","sans-serif";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:"Arial","sans-serif";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:"Arial","sans-serif";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:"Arial","sans-serif";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>