<div dir="ltr">The "info" application dumps all channel variables<div><br></div><div><action application="info" /></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 February 2016 at 21:44, 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">Here’s what works for me:<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"><action application="log" data="NOTICE ***** network_addr is ${network_addr} ***** "/><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">This will display it in fs_cli at least.<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">I’m not familiar with the syntax of what you posted, unless that’s an API command being pumped into FS via ESL or something.<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"><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:52</span></p><div><div class="h5"><br><b>Subject:</b> Re: [Freeswitch-users] X-Auth-IP Variable?<u></u><u></u></div></div><p></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">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.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I have tried ${destination_number} and [${destination_number}] and my log output looks like this.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Action log(Log TEST ========== ${destination_number} or [${destination_number}]<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Thu, Feb 4, 2016 at 12:45 PM, Bote Man <<a href="mailto:bote_radio@botecomm.com" target="_blank">bote_radio@botecomm.com</a>> wrote:<u></u><u></u></p><div><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. </span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">---</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Bote</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">FreeSWITCH Docs Janitor</span><u></u><u></u></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">http://freeswitch.org/confluence</a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></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?</span><u></u><u></u></p></div></div><div><div><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><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><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-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><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 style="color:#888888"> </span><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div></div></div><p class="MsoNormal"><span style="color:#888888">-- </span><u></u><u></u></p><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</span><u></u><u></u></p><div><div><p class="MsoNormal"><span style="color:#888888"><img border="0" src="http://www.cassidywebservices.co.uk/static/emailsig.png"></span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="color:#888888"> </span><u></u><u></u></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"><a href="tel:03300%20100%20960" value="+443300100960" target="_blank">03300 100 960</a> </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"><a href="tel:03300%20100%20961" value="+443300100961" target="_blank">03300 100 961</a></span><u></u><u></u></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></span><u></u><u></u></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></span><u></u><u></u></p></div></div></div></div></div></div></div><p class="MsoNormal"><br>_________________________________________________________________________<br><br><u></u><u></u></p></div></div></div></div></div><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></div><p class="MsoNormal"><u></u> <u></u></p></div></div></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://www.cassidywebservices.co.uk/static/emailsig.png"><br></div><div><br><div><b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div><div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div><div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div></div></div></div></div></div>
</div>