I am using proxy authentication in my setup and it is working. To do this I have created an acl *autoload_configs/acl.conf.xml* <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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?
${variable_sip_h_X-Auth-IP} On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote:
I am using proxy authentication in my setup and it is working. To do this I have created an acl *autoload_configs/acl.conf.xml* <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Thank you for the reply. I tried this for matching to the ACL but it is failing. <condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/> On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
${variable_sip_h_X-Auth-IP}
On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote:
I am using proxy authentication in my setup and it is working. To do this I have created an acl *autoload_configs/acl.conf.xml* <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Can you send a sip trace, particularly the one that should have the X-Auth-IP set? Thanks, On 4 February 2016 at 17:13, Tim King <tim.compnetwork@gmail.com> wrote:
Thank you for the reply. I tried this for matching to the ACL but it is failing. <condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/>
On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
${variable_sip_h_X-Auth-IP}
On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote:
I am using proxy authentication in my setup and it is working. To do this I have created an acl *autoload_configs/acl.conf.xml* <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
I also recommend using the FreeSWITCH “log” application to display what FS thinks those variables contain. --- Bote FreeSWITCH Docs Janitor <http://freeswitch.org/confluence> http://freeswitch.org/confluence From: Tim King Sent: Thursday, 04 February, 2016 12:13 Subject: Re: [Freeswitch-users] X-Auth-IP Variable? Thank you for the reply. I tried this for matching to the ACL but it is failing. <condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/> On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote: ${variable_sip_h_X-Auth-IP} On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote: I am using proxy authentication in my setup and it is working. To do this I have created an acl autoload_configs/acl.conf.xml <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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? -- Andrew Cassidy BSc (Hons) MBCS SSCA Managing Director <http://www.cassidywebservices.co.uk/static/emailsig.png> <mailto:info@cassidywebservices.co.uk> T 03300 100 960 <mailto:info@cassidywebservices.co.uk> F 03300 100 961 <mailto:info@cassidywebservices.co.uk> E andrew@cassidywebservices.co.uk <mailto:info@cassidywebservices.co.uk> W www.cassidywebservices.co.uk _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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. I have tried ${destination_number} and [${destination_number}] and my log output looks like this. Action log(Log TEST ========== ${destination_number} or [${destination_number}] On Thu, Feb 4, 2016 at 12:45 PM, Bote Man <bote_radio@botecomm.com> wrote:
I also recommend using the FreeSWITCH “log” application to display what FS thinks those variables contain.
---
Bote
FreeSWITCH Docs Janitor
http://freeswitch.org/confluence
*From:* Tim King *Sent:* Thursday, 04 February, 2016 12:13 *Subject:* Re: [Freeswitch-users] X-Auth-IP Variable?
Thank you for the reply. I tried this for matching to the ACL but it is failing.
<condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/>
On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
${variable_sip_h_X-Auth-IP}
On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote:
I am using proxy authentication in my setup and it is working. To do this I have created an acl
*autoload_configs/acl.conf.xml*
<list name="opensips" default="deny">
<node type="allow" cidr="1.2.3.4/32"/>
<node type="allow" cidr="1.2.3.5/32"/>
<node type="allow" cidr="1.2.3.6/32"/>
</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"/>
<action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/>
</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?
--
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961
*E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk
*W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Here’s what works for me: <action application="log" data="NOTICE ***** network_addr is ${network_addr} ***** "/> This will display it in fs_cli at least. 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. Bote From: Tim King Sent: Thursday, 04 February, 2016 12:52 Subject: Re: [Freeswitch-users] X-Auth-IP Variable? 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. I have tried ${destination_number} and [${destination_number}] and my log output looks like this. Action log(Log TEST ========== ${destination_number} or [${destination_number}] On Thu, Feb 4, 2016 at 12:45 PM, Bote Man <bote_radio@botecomm.com> wrote: I also recommend using the FreeSWITCH “log” application to display what FS thinks those variables contain. --- Bote FreeSWITCH Docs Janitor http://freeswitch.org/confluence From: Tim King Sent: Thursday, 04 February, 2016 12:13 Subject: Re: [Freeswitch-users] X-Auth-IP Variable? Thank you for the reply. I tried this for matching to the ACL but it is failing. <condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/> On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote: ${variable_sip_h_X-Auth-IP} On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote: I am using proxy authentication in my setup and it is working. To do this I have created an acl autoload_configs/acl.conf.xml <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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? -- Andrew Cassidy BSc (Hons) MBCS SSCA Managing Director <http://www.cassidywebservices.co.uk/static/emailsig.png> <mailto:info@cassidywebservices.co.uk> T 03300 100 960 <mailto:info@cassidywebservices.co.uk> F 03300 100 961 <mailto:info@cassidywebservices.co.uk> E andrew@cassidywebservices.co.uk <mailto:info@cassidywebservices.co.uk> W www.cassidywebservices.co.uk _________________________________________________________________________ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The "info" application dumps all channel variables <action application="info" /> On 4 February 2016 at 21:44, Bote Man <bote_radio@botecomm.com> wrote:
Here’s what works for me:
<action application="log" data="NOTICE ***** network_addr is ${network_addr} ***** "/>
This will display it in fs_cli at least.
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.
Bote
*From:* Tim King *Sent:* Thursday, 04 February, 2016 12:52
*Subject:* Re: [Freeswitch-users] X-Auth-IP Variable?
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.
I have tried ${destination_number} and [${destination_number}] and my log output looks like this.
Action log(Log TEST ========== ${destination_number} or [${destination_number}]
On Thu, Feb 4, 2016 at 12:45 PM, Bote Man <bote_radio@botecomm.com> wrote:
I also recommend using the FreeSWITCH “log” application to display what FS thinks those variables contain.
---
Bote
FreeSWITCH Docs Janitor
http://freeswitch.org/confluence
*From:* Tim King *Sent:* Thursday, 04 February, 2016 12:13 *Subject:* Re: [Freeswitch-users] X-Auth-IP Variable?
Thank you for the reply. I tried this for matching to the ACL but it is failing.
<condition field="${acl(${variable_sip_h_X-Auth-IP} opensips)}" expression="true" break="on-false"/>
On Thu, Feb 4, 2016 at 11:44 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
${variable_sip_h_X-Auth-IP}
On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote:
I am using proxy authentication in my setup and it is working. To do this I have created an acl
*autoload_configs/acl.conf.xml*
<list name="opensips" default="deny">
<node type="allow" cidr="1.2.3.4/32"/>
<node type="allow" cidr="1.2.3.5/32"/>
<node type="allow" cidr="1.2.3.6/32"/>
</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"/>
<action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/>
</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?
--
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961
*E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk
*W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
It'll be ${sip_h_X-Auth-IP} - the variable_ prefix added by the info app is only to differentiate variables from fields. On 4 February 2016 at 16:44, Andrew Cassidy <andrew@cassidywebservices.co.uk
wrote:
${variable_sip_h_X-Auth-IP}
On 4 February 2016 at 16:19, Tim King <tim.compnetwork@gmail.com> wrote:
I am using proxy authentication in my setup and it is working. To do this I have created an acl *autoload_configs/acl.conf.xml* <list name="opensips" default="deny"> <node type="allow" cidr="1.2.3.4/32"/> <node type="allow" cidr="1.2.3.5/32"/> <node type="allow" cidr="1.2.3.6/32"/> </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"/> <action application="bridge" data="sofia/external/$2@8.7.6.5:5060"/> </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?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Andrew Cassidy
-
Bote Man
-
Steven Ayre
-
Tim King