I am using proxy authentication in my setup and it is working. To do this I have created an aclautoload_configs/acl.conf.xml
<list name="opensips" default="deny">
</list>
sip_profiles/external.xml
<param name="auth-calls" value="true"/>
<param name="apply-proxy-acl" value="
1.2.3.2/32"/>
<param name="apply-inbound-acl" value="opensips"/>
This is all working as desired. The problem is prior to adding the opensips I was using the network_addr variable in my dialplan.
<extension name="tollfree_to_providerA">
<condition field="${acl(${network_addr} opensips)}" expression="true" break="on-false"/>
<condition field="destination_number" expression="^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$">
<action application = "set" data="dtmf_type=rfc2833"/>
<action application="set" data="accountcode=customer1123"/>
<action application="set" data="continue_on_fail=false"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="proxy_media=true"/>
</condition>
</extension>
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?