<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>Did you restart FreeSWITCH after changing this param in switch.conf?<div><br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br class="Apple-interchange-newline">Thanks,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">--</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Muhammad Naseer Bhatti</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 30, 2012, at 7:43 AM, "Cal Leeming [Simplicity Media Ltd]" <<a href="mailto:cal.leeming@simplicitymedialtd.co.uk">cal.leeming@simplicitymedialtd.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello all,<div><br></div><div>Attempting to increase 'sessions-per-second' to 100 does not appear to make any difference.</div><div><br></div><div>Inside switch.conf, I have the following;</div><div><br></div><div>
<div><param name="max-sessions" value="1000"/></div></div><div><param name="sessions-per-second" value="100"/></div><div><br></div><div>And yet for some reason, I still get this;</div>
<div><div>2012-10-30 04:20:22.205003 [CRIT] switch_core_session.c:2038 Throttle Error! 99</div><div>2012-10-30 04:20:22.224956 [CRIT] switch_core_session.c:2038 Throttle Error! 99</div><div>2012-10-30 04:20:22.244981 [CRIT] switch_core_session.c:2038 Throttle Error! 99</div>
<div>2012-10-30 04:20:22.265109 [CRIT] switch_core_session.c:2038 Throttle Error! 99</div><div>2012-10-30 04:20:22.309297 [CRIT] switch_time.c:997 Over Session Rate of 30!</div></div><div><br></div><div>Which then eventually leads to this;</div>
<div><br></div><div><div>2012-10-30 04:29:42.284991 [CRIT] switch_time.c:997 Over Session Rate of 30!</div><div>VAL: tried to access cart in -4784 type val</div></div><div><br></div><div>After looking through the source code, I found only a few places where this is referenced;</div>
<div><br></div><div><div>./src/switch_core.c: runtime.sps_total = 30;</div><div>./src/switch_core.c: runtime.sps_total = oldintval;</div><div>./src/switch_core.c: newintval = runtime.sps_total;</div>
<div>./src/include/private/switch_core_pvt.h: uint32_t sps_total;</div><div>./src/switch_time.c: runtime.sps = runtime.sps_total;</div><div>./src/switch_time.c: switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Over Session Rate of %d!\n", runtime.sps_total);</div>
<div>./src/switch_time.c: runtime.sps_last = runtime.sps_total - runtime.sps;</div><div>./src/switch_time.c: runtime.sps = runtime.sps_total;</div><div>./src/switch_core_session.c: runtime.sps_total = new_limit;</div>
<div>./src/switch_core_session.c: return runtime.sps_total;</div></div><div><br></div><div>So for shits and giggles, I changed runtime.sps_total from 30 to 101 in the code, and low and behold it worked fine - wtf? lol.</div>
<div><br></div><div><div>2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972</div><div>2012-10-30 04:42:02.084961 [CRIT] switch_core_session.c:2038 Throttle Error! 972</div><div>2012-10-30 04:42:02.104969 [CRIT] switch_time.c:997 Over Session Rate of 101!</div>
</div><div><br></div><div>Does anyone know why FS seems to be ignoring the "sessions-per-second" value?</div><div><br></div><div>Thanks</div><div><br></div><div>Cal</div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>