<div>The switch.conf is loaded in via mod_xml_curl.</div><div><br></div><div>However I have not confirmed whether the bug still exists if it uses a static file - so I shall do this first and post back the results.</div><div>
<br></div><div>Cal</div><div><br><div class="gmail_quote">On Tue, Oct 30, 2012 at 1:16 PM, Muhammad Naseer Bhatti <span dir="ltr"><<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div>Did you restart FreeSWITCH after changing this param in switch.conf?<div>
<br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<br>Thanks,</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
--</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
Muhammad Naseer Bhatti</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<br></div><br>
</div>
<br><div><div><div class="h5"><div>On Oct 30, 2012, at 7:43 AM, "Cal Leeming [Simplicity Media Ltd]" <<a href="mailto:cal.leeming@simplicitymedialtd.co.uk" target="_blank">cal.leeming@simplicitymedialtd.co.uk</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5">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></div></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>