<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><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. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>---<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Bote<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>FreeSWITCH Docs Janitor<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://freeswitch.org/confluence"><span style='color:blue'>http://freeswitch.org/confluence</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></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?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Thank you for the reply. I tried this for matching to the ACL but it is failing.<o:p></o:p></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;<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><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:<o:p></o:p></p><div><p class=MsoNormal>${variable_sip_h_X-Auth-IP}<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></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<o:p></o:p></p><div><p class=MsoNormal><b>autoload_configs/acl.conf.xml</b><o:p></o:p></p></div><div><div><p class=MsoNormal>&nbsp; &nbsp;&lt;list name=&quot;opensips&quot; default=&quot;deny&quot;&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp;&lt;/list&gt;<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><b>sip_profiles/external.xml</b><o:p></o:p></p></div><div><p class=MsoNormal>&lt;param name=&quot;auth-calls&quot; value=&quot;true&quot;/&gt;<o:p></o:p></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;<o:p></o:p></p></div><div><div><p class=MsoNormal>&lt;param name=&quot;apply-inbound-acl&quot; value=&quot;opensips&quot;/&gt;<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></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.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &lt;extension name=&quot;tollfree_to_providerA&quot;&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field=&quot;${acl(${network_addr} opensips)}&quot; expression=&quot;true&quot; break=&quot;on-false&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$&quot;&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application = &quot;set&quot; data=&quot;dtmf_type=rfc2833&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;accountcode=customer1123&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/extension&gt;<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></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?<o:p></o:p></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></blockquote></div><p class=MsoNormal><span class=hoenzb><span style='color:#888888'><o:p>&nbsp;</o:p></span></span></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal><span class=hoenzb><span style='color:#888888'>-- </span><o:p></o:p></span></p><div><div><p class=MsoNormal><b><span style='color:#888888'>Andrew Cassidy BSc (Hons) MBCS SSCA</span></b><o:p></o:p></p><div><p class=MsoNormal><span style='color:#888888'>Managing Director<o:p></o:p></span></p><div><div><p class=MsoNormal><span style='color:#888888'><img border=0 id="_x0000_i1025" src="http://www.cassidywebservices.co.uk/static/emailsig.png"><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p>&nbsp;</o:p></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>&nbsp;</span></b><span style='color:#888888'>03300 100 960&nbsp; </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>&nbsp;</span></b><span style='color:#888888'>03300 100 961<o:p></o:p></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>&nbsp;</span></b><span style='color:#888888'><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a><o:p></o:p></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>&nbsp;</span></b><span style='color:#888888'><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a><o:p></o:p></span></p></div></div></div></div></div></div></div><p class=MsoNormal><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-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><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>