<div dir="ltr">${variable_sip_h_X-Auth-IP}</div><div class="gmail_extra"><br><div class="gmail_quote">On 4 February 2016 at 16:19, Tim King <span dir="ltr">&lt;<a href="mailto:tim.compnetwork@gmail.com" target="_blank">tim.compnetwork@gmail.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 dir="ltr">I am using proxy authentication in my setup and it is working. To do this I have created an acl<div><b>autoload_configs/acl.conf.xml</b></div><div><div>   &lt;list name=&quot;opensips&quot; default=&quot;deny&quot;&gt;</div><div>                &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;</div><div>                &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;</div><div>                &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;</div><div>   &lt;/list&gt;</div></div><div><br></div><div><b>sip_profiles/external.xml</b></div><div>&lt;param name=&quot;auth-calls&quot; value=&quot;true&quot;/&gt;<br></div><div>&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;<br></div><div><div>&lt;param name=&quot;apply-inbound-acl&quot; value=&quot;opensips&quot;/&gt;</div></div><div><br></div><div><br></div><div>This is all working as desired. The problem is prior to adding the opensips I was using the network_addr variable in my dialplan.</div><div><br></div><div><div>        &lt;extension name=&quot;tollfree_to_providerA&quot;&gt;</div><div>                &lt;condition field=&quot;${acl(${network_addr} opensips)}&quot; expression=&quot;true&quot; break=&quot;on-false&quot;/&gt;</div><div>                        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$&quot;&gt;</div><div>                                &lt;action application = &quot;set&quot; data=&quot;dtmf_type=rfc2833&quot;/&gt;<br></div><div>                                &lt;action application=&quot;set&quot; data=&quot;accountcode=customer1123&quot;/&gt;</div><div>                                &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;</div><div>                                &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</div><div>                                &lt;action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/&gt;</div><div>                                &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;<br></div><div>                &lt;/condition&gt;</div><div>        &lt;/extension&gt;</div></div><div><br></div><div>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?</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>