Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do. *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works. <extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension> *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram. -Avi On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au> wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls Basically I've added this to my default.xml <action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" /> <extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension> *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au>wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work. -- Thanks, Muhammad Naseer Bhatti Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema***| IT Consultant alex@opensystems.net.au <mailto:alex@opensystems.net.au>
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net <mailto:avi@avimarcus.net>> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au <mailto:alex@opensystems.net.au>> wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema***| IT Consultant alex@opensystems.net.au <mailto:alex@opensystems.net.au>
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 <tel:%2B61%208%209427%202500> Mobile: +61 404 796 894 <tel:%2B61%20404%20796%20894>
IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au <mailto:alex@opensystems.net.au>> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema***| IT Consultant alex@opensystems.net.au <mailto:alex@opensystems.net.au>
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 <tel:%2B61%208%209427%202500> Mobile: +61 404 796 894 <tel:%2B61%20404%20796%20894>
IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
http://wiki.freeswitch.org/wiki/Limit <action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" /> On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au>wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Sincerely Jay
so setting the limit at 150 was fine but as soon as I set it to 200 I've now hit a problem. Freeswitch has slowly grown to 372 sessions and getting lots of these errors in the cli 2013-05-29 15:16:41.022625 [ERR] switch_cpp.cpp:48 Cannot queue any more events..... UP 0 years, 0 days, 0 hours, 23 minutes, 55 seconds, 273 milliseconds, 606 microseconds FreeSWITCH (Version 1.5.1b git d2f3a31 2013-05-21 02:00:43Z) is ready 1500 session(s) since startup 372 session(s) - 0 out of max 10 per sec 10000 session(s) max min idle cpu 0.00/100.00 Current Stack Size/Max 240K/8192K *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au On 29 May 2013 15:01, jay binks <jaybinks@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au>wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
It sounds like you have an ESL program that is not consuming events quickly enough and the event queue is filling up. -MC On Wed, May 29, 2013 at 12:17 AM, Alex Ynema <alex@opensystems.net.au>wrote:
so setting the limit at 150 was fine but as soon as I set it to 200 I've now hit a problem. Freeswitch has slowly grown to 372 sessions and getting lots of these errors in the cli
2013-05-29 15:16:41.022625 [ERR] switch_cpp.cpp:48 Cannot queue any more events.....
UP 0 years, 0 days, 0 hours, 23 minutes, 55 seconds, 273 milliseconds, 606 microseconds FreeSWITCH (Version 1.5.1b git d2f3a31 2013-05-21 02:00:43Z) is ready 1500 session(s) since startup 372 session(s) - 0 out of max 10 per sec 10000 session(s) max min idle cpu 0.00/100.00 Current Stack Size/Max 240K/8192K
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 15:01, jay binks <jaybinks@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au>wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
What do you mean by ESL Program. This system is running a newfies-dialer frontend with a pretty stock install of Freeswitch. *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au On 29 May 2013 23:22, Michael Collins <msc@freeswitch.org> wrote:
It sounds like you have an ESL program that is not consuming events quickly enough and the event queue is filling up. -MC
On Wed, May 29, 2013 at 12:17 AM, Alex Ynema <alex@opensystems.net.au>wrote:
so setting the limit at 150 was fine but as soon as I set it to 200 I've now hit a problem. Freeswitch has slowly grown to 372 sessions and getting lots of these errors in the cli
2013-05-29 15:16:41.022625 [ERR] switch_cpp.cpp:48 Cannot queue any more events.....
UP 0 years, 0 days, 0 hours, 23 minutes, 55 seconds, 273 milliseconds, 606 microseconds FreeSWITCH (Version 1.5.1b git d2f3a31 2013-05-21 02:00:43Z) is ready 1500 session(s) since startup 372 session(s) - 0 out of max 10 per sec 10000 session(s) max min idle cpu 0.00/100.00 Current Stack Size/Max 240K/8192K
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 15:01, jay binks <jaybinks@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au>wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote:
> Hi, > I'm trying to figure out how to limit the number of calls a Gateway > is allowed to use. Our Sip provider has provided up with 200 which I need > to set within the system somehow. > What's the best way to handle it for an outgoing only system. > I've been trying to figure out how how to configure 'Rate limiting > concurrent outgoing calls via a provider' which is mentioned in the > wiki a bit but nothing specific on what to actually do. > > *Alex Ynema** *| IT Consultant > alex@opensystems.net.au > > Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 > Office: +61 8 9427 2500 > Mobile: +61 404 796 894 > > IT Consultant for Open Systems Support > www.opensystems.net.au >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Newfies Dialer uses the ESL. See http://www.newfies-dialer.org/documentation/how-it-works/ - BDF On May 29, 2013 10:22 PM, "Alex Ynema" <alex@opensystems.net.au> wrote:
What do you mean by ESL Program. This system is running a newfies-dialer frontend with a pretty stock install of Freeswitch.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 23:22, Michael Collins <msc@freeswitch.org> wrote:
It sounds like you have an ESL program that is not consuming events quickly enough and the event queue is filling up. -MC
On Wed, May 29, 2013 at 12:17 AM, Alex Ynema <alex@opensystems.net.au>wrote:
so setting the limit at 150 was fine but as soon as I set it to 200 I've now hit a problem. Freeswitch has slowly grown to 372 sessions and getting lots of these errors in the cli
2013-05-29 15:16:41.022625 [ERR] switch_cpp.cpp:48 Cannot queue any more events.....
UP 0 years, 0 days, 0 hours, 23 minutes, 55 seconds, 273 milliseconds, 606 microseconds FreeSWITCH (Version 1.5.1b git d2f3a31 2013-05-21 02:00:43Z) is ready 1500 session(s) since startup 372 session(s) - 0 out of max 10 per sec 10000 session(s) max min idle cpu 0.00/100.00 Current Stack Size/Max 240K/8192K
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 15:01, jay binks <jaybinks@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au>wrote:
> I've implemented this in default.xml hoping to limit each of my two > gateways to 150. > Based on what's in > http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so > hopefully that works. > > <extension name="zetta-cisco-1"> > <condition field="destination_number" > expression="zetta-cisco-1"> > <action application="limit" data="db outgoing > zetta-cisco-1 150" /> > <action application="bridge" > data="sofia/gateway/zetta-cisco-1/${destnum}" /> > </condition> > </extension> > <extension name="zetta-cisco-2"> > <condition field="destination_number" > expression="zetta-cisco-2"> > <action application="limit" data="db outgoing > zetta-cisco-2 150" /> > <action application="bridge" > data="sofia/gateway/zetta-cisco-2/${destnum}" /> > </condition> > </extension> > > > *Alex Ynema** *| IT Consultant > alex@opensystems.net.au > > Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 > Office: +61 8 9427 2500 > Mobile: +61 404 796 894 > > IT Consultant for Open Systems Support > www.opensystems.net.au > > > On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote: > >> Hi, >> I'm trying to figure out how to limit the number of calls a Gateway >> is allowed to use. Our Sip provider has provided up with 200 which I need >> to set within the system somehow. >> What's the best way to handle it for an outgoing only system. >> I've been trying to figure out how how to configure 'Rate limiting >> concurrent outgoing calls via a provider' which is mentioned in >> the wiki a bit but nothing specific on what to actually do. >> >> *Alex Ynema** *| IT Consultant >> alex@opensystems.net.au >> >> Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 >> Office: +61 8 9427 2500 >> Mobile: +61 404 796 894 >> >> IT Consultant for Open Systems Support >> www.opensystems.net.au >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Okay so it's a fault with newfies rather than a problem with Freeswitch. Any suggestions on where I should look to work out what exactly is happening/not happening with those Event Sessions not being cleared out from the process. *Alex Ynema** *| IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au On 30 May 2013 10:25, Brian Foster <bdfoster@davri.com> wrote:
Newfies Dialer uses the ESL. See http://www.newfies-dialer.org/documentation/how-it-works/
- BDF On May 29, 2013 10:22 PM, "Alex Ynema" <alex@opensystems.net.au> wrote:
What do you mean by ESL Program. This system is running a newfies-dialer frontend with a pretty stock install of Freeswitch.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 23:22, Michael Collins <msc@freeswitch.org> wrote:
It sounds like you have an ESL program that is not consuming events quickly enough and the event queue is filling up. -MC
On Wed, May 29, 2013 at 12:17 AM, Alex Ynema <alex@opensystems.net.au>wrote:
so setting the limit at 150 was fine but as soon as I set it to 200 I've now hit a problem. Freeswitch has slowly grown to 372 sessions and getting lots of these errors in the cli
2013-05-29 15:16:41.022625 [ERR] switch_cpp.cpp:48 Cannot queue any more events.....
UP 0 years, 0 days, 0 hours, 23 minutes, 55 seconds, 273 milliseconds, 606 microseconds FreeSWITCH (Version 1.5.1b git d2f3a31 2013-05-21 02:00:43Z) is ready 1500 session(s) since startup 372 session(s) - 0 out of max 10 per sec 10000 session(s) max min idle cpu 0.00/100.00 Current Stack Size/Max 240K/8192K
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 15:01, jay binks <jaybinks@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com>wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894
IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote:
> ... just note that's stored in a database (db) not ram (hash) so if > you don't need to share it / have persistence, just store it in ram. > > -Avi > > On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au > > wrote: > >> I've implemented this in default.xml hoping to limit each of my two >> gateways to 150. >> Based on what's in >> http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so >> hopefully that works. >> >> <extension name="zetta-cisco-1"> >> <condition field="destination_number" >> expression="zetta-cisco-1"> >> <action application="limit" data="db outgoing >> zetta-cisco-1 150" /> >> <action application="bridge" >> data="sofia/gateway/zetta-cisco-1/${destnum}" /> >> </condition> >> </extension> >> <extension name="zetta-cisco-2"> >> <condition field="destination_number" >> expression="zetta-cisco-2"> >> <action application="limit" data="db outgoing >> zetta-cisco-2 150" /> >> <action application="bridge" >> data="sofia/gateway/zetta-cisco-2/${destnum}" /> >> </condition> >> </extension> >> >> >> *Alex Ynema** *| IT Consultant >> alex@opensystems.net.au >> >> Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 >> Office: +61 8 9427 2500 >> Mobile: +61 404 796 894 >> >> IT Consultant for Open Systems Support >> www.opensystems.net.au >> >> >> On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote: >> >>> Hi, >>> I'm trying to figure out how to limit the number of calls a >>> Gateway is allowed to use. Our Sip provider has provided up with 200 which >>> I need to set within the system somehow. >>> What's the best way to handle it for an outgoing only system. >>> I've been trying to figure out how how to configure 'Rate >>> limiting concurrent outgoing calls via a provider' which is >>> mentioned in the wiki a bit but nothing specific on what to actually do. >>> >>> *Alex Ynema** *| IT Consultant >>> alex@opensystems.net.au >>> >>> Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 >>> Office: +61 8 9427 2500 >>> Mobile: +61 404 796 894 >>> >>> IT Consultant for Open Systems Support >>> www.opensystems.net.au >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.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 > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.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.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Talk to Areski. He built it and I'm sure he would love to know about any limitations or bugs that you may have found. They have a git-hub repo w/ the requisite issue tracker: https://github.com/Star2Billing/newfies-dialer/issues -MC On Wed, May 29, 2013 at 11:00 PM, Alex Ynema <alex@opensystems.net.au>wrote:
Okay so it's a fault with newfies rather than a problem with Freeswitch. Any suggestions on where I should look to work out what exactly is happening/not happening with those Event Sessions not being cleared out from the process.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 30 May 2013 10:25, Brian Foster <bdfoster@davri.com> wrote:
Newfies Dialer uses the ESL. See http://www.newfies-dialer.org/documentation/how-it-works/
- BDF On May 29, 2013 10:22 PM, "Alex Ynema" <alex@opensystems.net.au> wrote:
What do you mean by ESL Program. This system is running a newfies-dialer frontend with a pretty stock install of Freeswitch.
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 23:22, Michael Collins <msc@freeswitch.org> wrote:
It sounds like you have an ESL program that is not consuming events quickly enough and the event queue is filling up. -MC
On Wed, May 29, 2013 at 12:17 AM, Alex Ynema <alex@opensystems.net.au>wrote:
so setting the limit at 150 was fine but as soon as I set it to 200 I've now hit a problem. Freeswitch has slowly grown to 372 sessions and getting lots of these errors in the cli
2013-05-29 15:16:41.022625 [ERR] switch_cpp.cpp:48 Cannot queue any more events.....
UP 0 years, 0 days, 0 hours, 23 minutes, 55 seconds, 273 milliseconds, 606 microseconds FreeSWITCH (Version 1.5.1b git d2f3a31 2013-05-21 02:00:43Z) is ready 1500 session(s) since startup 372 session(s) - 0 out of max 10 per sec 10000 session(s) max min idle cpu 0.00/100.00 Current Stack Size/Max 240K/8192K
*Alex Ynema** *| IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/>IT Consultant for Open Systems Support www.opensystems.net.au
On 29 May 2013 15:01, jay binks <jaybinks@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com>wrote:
> > Sorry for the thread hijack, but on the other hand, is it possible > to limit the number of outgoing CPS? Don't seem to see that either in the > wiki or a way to make it work. > > -- > Thanks, > Muhammad Naseer Bhatti > > > > Alex Ynema wrote: > > Cheers Avi I've now changed that to hash as I don't need it to be > persistent. > What should I see in the clie to confirm this is working without > attempting 150+ calls > > Basically I've added this to my default.xml > > <action application="set" data="destnum=${destination_number}" > /> > <action application="bridge" > data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" /> > > <extension name="zetta-cisco-1"> > <condition field="destination_number" > expression="zetta-cisco-1"> > <action application="limit" data="hash outgoing > zetta-cisco-1 150" /> > <action application="bridge" > data="sofia/gateway/zetta-cisco-1/${destnum}" /> > </condition> > </extension> > <extension name="zetta-cisco-2"> > <condition field="destination_number" > expression="zetta-cisco-2"> > <action application="limit" data="hash outgoing > zetta-cisco-2 150" /> > <action application="bridge" > data="sofia/gateway/zetta-cisco-2/${destnum}" /> > </condition> > </extension> > > > *Alex Ynema** *| IT Consultant > alex@opensystems.net.au > > Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 > Office: +61 8 9427 2500 > Mobile: +61 404 796 894 > > IT Consultant for Open Systems Support > www.opensystems.net.au > > > On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote: > >> ... just note that's stored in a database (db) not ram (hash) so if >> you don't need to share it / have persistence, just store it in ram. >> >> -Avi >> >> On Wed, May 29, 2013 at 9:07 AM, Alex Ynema < >> alex@opensystems.net.au> wrote: >> >>> I've implemented this in default.xml hoping to limit each of my >>> two gateways to 150. >>> Based on what's in >>> http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so >>> hopefully that works. >>> >>> <extension name="zetta-cisco-1"> >>> <condition field="destination_number" >>> expression="zetta-cisco-1"> >>> <action application="limit" data="db outgoing >>> zetta-cisco-1 150" /> >>> <action application="bridge" >>> data="sofia/gateway/zetta-cisco-1/${destnum}" /> >>> </condition> >>> </extension> >>> <extension name="zetta-cisco-2"> >>> <condition field="destination_number" >>> expression="zetta-cisco-2"> >>> <action application="limit" data="db outgoing >>> zetta-cisco-2 150" /> >>> <action application="bridge" >>> data="sofia/gateway/zetta-cisco-2/${destnum}" /> >>> </condition> >>> </extension> >>> >>> >>> *Alex Ynema** *| IT Consultant >>> alex@opensystems.net.au >>> >>> Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 >>> Office: +61 8 9427 2500 >>> Mobile: +61 404 796 894 >>> >>> IT Consultant for Open Systems Support >>> www.opensystems.net.au >>> >>> >>> On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote: >>> >>>> Hi, >>>> I'm trying to figure out how to limit the number of calls a >>>> Gateway is allowed to use. Our Sip provider has provided up with 200 which >>>> I need to set within the system somehow. >>>> What's the best way to handle it for an outgoing only system. >>>> I've been trying to figure out how how to configure 'Rate >>>> limiting concurrent outgoing calls via a provider' which is >>>> mentioned in the wiki a bit but nothing specific on what to actually do. >>>> >>>> *Alex Ynema** *| IT Consultant >>>> alex@opensystems.net.au >>>> >>>> Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 >>>> Office: +61 8 9427 2500 >>>> Mobile: +61 404 796 894 >>>> >>>> IT Consultant for Open Systems Support >>>> www.opensystems.net.au >>>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>> http://www.cudatel.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.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 >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.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.orghttp://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com > > FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees... > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.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 > >
-- Sincerely
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
I'm taking use of below call model: SIP<--->mod_sofia ---- mod_freetdm---[sangoma]--wanpipe<-->E1 Now, I want to get the raw ISUP at [sangoma] part. The current situation is, the wanpipe provides some ISUP message structures in "sit.x", which is the extractor of raw ISUP. Anyone know how to get the raw ISUP excepte to re-encode from the structure? Is there any API? Thanks Windy
Is there anyway toget the ISUP raw message from WANPIPE/Trillum stack? windy 2013-06-05 发件人: xiaofengcanyuexp@163.com 发送时间: 2013-05-29 23:49:24 收件人: FreeSWITCH Users Help; FreeSWITCH Users Help 抄送: 主题: [Freeswitch-users] How to get the raw ISUP from sangoma/wanpipe I'm taking use of below call model: SIP<--->mod_sofia ---- mod_freetdm---[sangoma]--wanpipe<-->E1 Now, I want to get the raw ISUP at [sangoma] part. The current situation is, the wanpipe provides some ISUP message structures in "sit.x", which is the extractor of raw ISUP. Anyone know how to get the raw ISUP excepte to re-encode from the structure? Is there any API? Thanks Windy
Try addressing this question to sangoma as this is their product. On Jun 4, 2013, at 10:18 PM, windy <xiaofengcanyuexp@163.com> wrote:
Is there anyway toget the ISUP raw message from WANPIPE/Trillum stack?
windy 2013-06-05 发件人: xiaofengcanyuexp@163.com 发送时间: 2013-05-29 23:49:24 收件人: FreeSWITCH Users Help; FreeSWITCH Users Help 抄送: 主题: [Freeswitch-users] How to get the raw ISUP from sangoma/wanpipe I'm taking use of below call model:
SIP<--->mod_sofia ---- mod_freetdm---[sangoma]--wanpipe<-->E1
Now, I want to get the raw ISUP at [sangoma] part. The current situation is, the wanpipe provides some ISUP message structures in "sit.x", which is the extractor of raw ISUP.
Anyone know how to get the raw ISUP excepte to re-encode from the structure? Is there any API?
Thanks Windy
Dear support I now need to encapsulate one binary array to FS SIP body. To be specific: (1) I encoded some info when getting incoming 183. (2) The encoded info need to be encapsulated as one of content in SIP body like content-type=application/test content-length=74 --boundarycode 1233444444444 --------------------binary code I'd like to add to the sipbody by using: nua_Respond(... ... SIPTAG_PAYLOAD_STR(), RAG_END). Well, As you know, SIPTAG_PAYLOAD_STR is for string, it will truncate the binary array before it encapsulats the binary code to SIP body. Is there any way to encapsulated my binary array to the SIP boday with "nua_Respond"? Thanks Windy
Does it have to be sent as binary? How about using something like base64 to encode it first? You also want to be careful sending a large amount of data in this way. If your packet gets larger than the PMTU then you'll get packet fragmentation which SIP/UDP doesn't handle well. -Steve On 5 June 2013 03:47, windy <xiaofengcanyuexp@163.com> wrote:
** Dear support
I now need to encapsulate one binary array to FS SIP body. To be specific: (1) I encoded some info when getting incoming 183. (2) The encoded info need to be encapsulated as one of content in SIP body like content-type=application/test content-length=74 --boundarycode 1233444444444 --------------------binary code
I'd like to add to the sipbody by using: nua_Respond(... ... SIPTAG_PAYLOAD_STR(), RAG_END).
Well, As you know, SIPTAG_PAYLOAD_STR is for string, it will truncate the binary array before it encapsulats the binary code to SIP body.
Is there any way to encapsulated my binary array to the SIP boday with "nua_Respond"?
Thanks Windy
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Hi, Steve The data is not very large. Normall it's an ISUP message and no more than 256 bytes. For the base64 encode, can you give an example? Thanks windy 2013-06-05 发件人: Steven Ayre 发送时间: 2013-06-05 11:57:05 收件人: FreeSWITCH Users Help 抄送: 主题: Re: [Freeswitch-users] How to encapsulate binary code to SIP body Does it have to be sent as binary? How about using something like base64 to encode it first? You also want to be careful sending a large amount of data in this way. If your packet gets larger than the PMTU then you'll get packet fragmentation which SIP/UDP doesn't handle well. -Steve On 5 June 2013 03:47, windy <xiaofengcanyuexp@163.com> wrote: Dear support I now need to encapsulate one binary array to FS SIP body. To be specific: (1) I encoded some info when getting incoming 183. (2) The encoded info need to be encapsulated as one of content in SIP body like content-type=application/test content-length=74 --boundarycode 1233444444444 --------------------binary code I'd like to add to the sipbody by using: nua_Respond(... ... SIPTAG_PAYLOAD_STR(), RAG_END). Well, As you know, SIPTAG_PAYLOAD_STR is for string, it will truncate the binary array before it encapsulats the binary code to SIP body. Is there any way to encapsulated my binary array to the SIP boday with "nua_Respond"? Thanks Windy _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Just google base64... It's a way on encoding binary data using only printable ASCII characters. There are other ways to encode data too. If you're actually wanting to send the raw data though I've just read up the sofia api... Create a sip_payload_t initialised by SIPTAG_PAYLOAD_INIT2(data,length) and then use it with the SIPTAG_PAYLOAD() macro. That'll handle \0 bytes correctly. Passing the data to SIPTAG_PAYLOAD_STR() won't as it'll treat it as a null terminated string. -Steve On Wednesday, June 5, 2013, windy wrote:
** Hi, Steve
The data is not very large. Normall it's an ISUP message and no more than 256 bytes.
For the base64 encode, can you give an example?
Thanks windy ------------------------------ 2013-06-05 ------------------------------ *发件人:* Steven Ayre *发送时间:* 2013-06-05 11:57:05 *收件人:* FreeSWITCH Users Help *抄送:* *主题:* Re: [Freeswitch-users] How to encapsulate binary code to SIP body Does it have to be sent as binary? How about using something like base64 to encode it first?
You also want to be careful sending a large amount of data in this way. If your packet gets larger than the PMTU then you'll get packet fragmentation which SIP/UDP doesn't handle well.
-Steve
On 5 June 2013 03:47, windy <xiaofengcanyuexp@163.com <javascript:_e({}, 'cvml', 'xiaofengcanyuexp@163.com');>> wrote:
** Dear support
I now need to encapsulate one binary array to FS SIP body. To be specific: (1) I encoded some info when getting incoming 183. (2) The encoded info need to be encapsulated as one of content in SIP body like content-type=application/test content-length=74 --boundarycode 1233444444444 --------------------binary code
I'd like to add to the sipbody by using: nua_Respond(... ... SIPTAG_PAYLOAD_STR(), RAG_END).
Well, As you know, SIPTAG_PAYLOAD_STR is for string, it will truncate the binary array before it encapsulats the binary code to SIP body.
Is there any way to encapsulated my binary array to the SIP boday with "nua_Respond"?
Thanks Windy
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e({}, 'cvml', 'consulting@freeswitch.org');> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:_e({}, 'cvml', '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 have it tested and it works! Thank you so much! windy 2013-06-05 发件人: Steven Ayre 发送时间: 2013-06-05 14:48:21 收件人: FreeSWITCH Users Help 抄送: 主题: Re: [Freeswitch-users] How to encapsulate binary code to SIP body Just google base64... It's a way on encoding binary data using only printable ASCII characters. There are other ways to encode data too. If you're actually wanting to send the raw data though I've just read up the sofia api... Create a sip_payload_t initialised by SIPTAG_PAYLOAD_INIT2(data,length) and then use it with the SIPTAG_PAYLOAD() macro. That'll handle \0 bytes correctly. Passing the data to SIPTAG_PAYLOAD_STR() won't as it'll treat it as a null terminated string. -Steve On Wednesday, June 5, 2013, windy wrote: Hi, Steve The data is not very large. Normall it's an ISUP message and no more than 256 bytes. For the base64 encode, can you give an example? Thanks windy 2013-06-05 发件人: Steven Ayre 发送时间: 2013-06-05 11:57:05 收件人: FreeSWITCH Users Help 抄送: 主题: Re: [Freeswitch-users] How to encapsulate binary code to SIP body Does it have to be sent as binary? How about using something like base64 to encode it first? You also want to be careful sending a large amount of data in this way. If your packet gets larger than the PMTU then you'll get packet fragmentation which SIP/UDP doesn't handle well. -Steve On 5 June 2013 03:47, windy <xiaofengcanyuexp@163.com> wrote: Dear support I now need to encapsulate one binary array to FS SIP body. To be specific: (1) I encoded some info when getting incoming 183. (2) The encoded info need to be encapsulated as one of content in SIP body like content-type=application/test content-length=74 --boundarycode 1233444444444 --------------------binary code I'd like to add to the sipbody by using: nua_Respond(... ... SIPTAG_PAYLOAD_STR(), RAG_END). Well, As you know, SIPTAG_PAYLOAD_STR is for string, it will truncate the binary array before it encapsulats the binary code to SIP body. Is there any way to encapsulated my binary array to the SIP boday with "nua_Respond"? Thanks Windy _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
On Wed, May 29, 2013 at 11:46 AM, xiaofengcanyuexp@163.com < xiaofengcanyuexp@163.com> wrote:
** I'm taking use of below call model:
SIP<--->mod_sofia ---- mod_freetdm---[sangoma]--wanpipe<-->E1
Now, I want to get the raw ISUP at [sangoma] part. The current situation is, the wanpipe provides some ISUP message structures in "sit.x", which is the extractor of raw ISUP.
Anyone know how to get the raw ISUP excepte to re-encode from the structure? Is there any API?
Only way to get raw MSUs is to use the C API libsangoma. See this for an example: https://github.com/moises-silva/sng_ss7mon *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
Hmm, so simple. I wonder how I overlooked it :) -- Thanks, Muhammad Naseer Bhatti jay binks wrote:
http://wiki.freeswitch.org/wiki/Limit
<action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" />
On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com <mailto:nbhatti@gmail.com>> wrote:
Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work.
-- Thanks, Muhammad Naseer Bhatti
Alex Ynema wrote:
Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls
Basically I've added this to my default.xml
<action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" />
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema***| IT Consultant alex@opensystems.net.au <mailto:alex@opensystems.net.au>
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <tel:%2B61%20404%20796%20894>
IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net <mailto:avi@avimarcus.net>> wrote:
... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram.
-Avi
On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au <mailto:alex@opensystems.net.au>> wrote:
I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works.
<extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension>
*Alex Ynema***| IT Consultant alex@opensystems.net.au <mailto:alex@opensystems.net.au>
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 <tel:%2B61%208%209427%202500> Mobile: +61 404 796 894 <tel:%2B61%20404%20796%20894>
IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au <mailto:alex@opensystems.net.au>> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
*Alex Ynema***| IT Consultant alex@opensystems.net.au <mailto:alex@opensystems.net.au>
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 <tel:%2B61%208%209427%202500> Mobile: +61 404 796 894 <tel:%2B61%20404%20796%20894>
IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
-- Sincerely
Jay _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
A little known trick for using limit, is that you can do it on the B-LEG, rather then calling it form the A-Leg and you won't have to worry about holding the locks if the B-Leg fails, and you fall over to somethng else. If you do the limit using "execute_on_originate" and the B-LEG fails somewhere along the way, the lock will go away when the B-LEG goes away. Also if the limit fails, and returns the condition linke user_busy or something else, it will just look like the gateway failed, with that response. This is a much better way of using limit for some type of outbound applicaiton. --Dave _____ From: Muhammad Naseer Bhatti [mailto:nbhatti@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Wed, 29 May 2013 00:20:13 -0700 Subject: Re: [Freeswitch-users] Gateway Call Limits Hmm, so simple. I wonder how I overlooked it :) -- Thanks, Muhammad Naseer Bhatti jay binks wrote: http://wiki.freeswitch.org/wiki/Limit <action application="limit" data="hash ${sip_received_ip} ${destination_number} ${calls_per_second}/1" /> On 29 May 2013 16:52, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote: Sorry for the thread hijack, but on the other hand, is it possible to limit the number of outgoing CPS? Don't seem to see that either in the wiki or a way to make it work. -- Thanks, Muhammad Naseer Bhatti Alex Ynema wrote: Cheers Avi I've now changed that to hash as I don't need it to be persistent. What should I see in the clie to confirm this is working without attempting 150+ calls Basically I've added this to my default.xml <action application="set" data="destnum=${destination_number}" /> <action application="bridge" data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" /> <extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="hash outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="hash outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension> Alex Ynema | IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 IT Consultant for Open Systems Support www.opensystems.net.au On 29 May 2013 14:13, Avi Marcus <avi@avimarcus.net> wrote: ... just note that's stored in a database (db) not ram (hash) so if you don't need to share it / have persistence, just store it in ram. -Avi On Wed, May 29, 2013 at 9:07 AM, Alex Ynema <alex@opensystems.net.au> wrote: I've implemented this in default.xml hoping to limit each of my two gateways to 150. Based on what's in http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us... so hopefully that works. <extension name="zetta-cisco-1"> <condition field="destination_number" expression="zetta-cisco-1"> <action application="limit" data="db outgoing zetta-cisco-1 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-1/${destnum}" /> </condition> </extension> <extension name="zetta-cisco-2"> <condition field="destination_number" expression="zetta-cisco-2"> <action application="limit" data="db outgoing zetta-cisco-2 150" /> <action application="bridge" data="sofia/gateway/zetta-cisco-2/${destnum}" /> </condition> </extension> Alex Ynema | IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 IT Consultant for Open Systems Support www.opensystems.net.au On 29 May 2013 13:59, Alex Ynema <alex@opensystems.net.au> wrote: Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do. Alex Ynema | IT Consultant alex@opensystems.net.au Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 IT Consultant for Open Systems Support www.opensystems.net.au _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 -- Sincerely Jay _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Limit ... See the wiki On 5/29/13 12:59 AM, "Alex Ynema" <alex@opensystems.net.au> wrote:
Hi, I'm trying to figure out how to limit the number of calls a Gateway is allowed to use. Our Sip provider has provided up with 200 which I need to set within the system somehow. What's the best way to handle it for an outgoing only system. I've been trying to figure out how how to configure 'Rate limiting concurrent outgoing calls via a provider' which is mentioned in the wiki a bit but nothing specific on what to actually do.
Alex Ynema | IT Consultant alex@opensystems.net.au
Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016 Office: +61 8 9427 2500 Mobile: +61 404 796 894 <http://www.ynema.net/> <http://www.ynema.net/> IT Consultant for Open Systems Support www.opensystems.net.au <http://www.opensystems.net.au/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
participants (13)
-
Alex Ynema
-
Avi Marcus
-
Brian Foster
-
Dave R. Kompel
-
jay binks
-
Ken Rice
-
Michael Collins
-
Michael Jerris
-
Moises Silva
-
Muhammad Naseer Bhatti
-
Steven Ayre
-
windy
-
xiaofengcanyuexp@163.com