<HTML>
<HEAD>
<TITLE>LCR Module / Function: load_gws() error</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Question . . <BR>
<BR>
I&#8217;m trying to use the load_gws with a particular group id per the docs for 1.3, and am getting the following error message when I try and start OpenSER:<BR>
<BR>
May &nbsp;1 20:40:05 [16853] DBG:core:fix_actions: fixing load_gws, line 487<BR>
May &nbsp;1 20:40:05 [16853] ERROR:lcr:fixstringloadgws: Wrong value &lt;2&gt; for param &lt;1&gt;!<BR>
May &nbsp;1 20:40:05 [16853] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 487<BR>
May &nbsp;1 20:40:05 [16853] CRITICAL:core:fix_expr: fix_actions error<BR>
May &nbsp;1 20:40:05 [16853] ERROR:core:main: failed to fix configuration with err code -1<BR>
May &nbsp;1 20:40:05 [16853] INFO:snmpstats:mod_destroy: The SNMPStats module got the kill signal<BR>
May &nbsp;1 20:40:05 [16853] INFO:snmpstats:mod_destroy: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shutting down the AgentX Sub-Agent!<BR>
May &nbsp;1 20:40:05 [16853] DBG:xlog:destroy: destroy module...<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:tm_shutdown: tm_shutdown : start<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:unlink_timer_lists: emptying DELETE list<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:tm_shutdown: emptying hash table<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:tm_shutdown: releasing timers<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:tm_shutdown: removing semaphores<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:tm_shutdown: destroying callback lists<BR>
May &nbsp;1 20:40:05 [16853] DBG:tm:tm_shutdown: tm_shutdown : done<BR>
May &nbsp;1 20:40:05 [16853] DBG:core:shm_mem_destroy: <BR>
May &nbsp;1 20:40:05 [16853] DBG:core:shm_mem_destroy: destroying the shared memory lock<BR>
<BR>
&nbsp;<BR>
Am I missing something? Per the docs at <a href="http://www.openser.org/docs/modules/1.3.x/lcr.html#AEN303">http://www.openser.org/docs/modules/1.3.x/lcr.html#AEN303</a> , I should be able to use a particular gateway group id in that function.<BR>
<BR>
My config code excerpt:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if (from_gw(&quot;1000&quot;)) { <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlog(&quot;L_ERR&quot;, &quot;Route 14: Call originating from incoming vendor\n&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!load_gws(&quot;2&quot;)) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlog(&quot;L_ERR&quot;, &quot;Route 14: Error loading gateways (GW Group 2) - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sl_send_reply(&quot;503&quot;, &quot;Termination Currently Unavailable&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!next_gw()) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlog(&quot;L_ERR&quot;, &quot;Route 14: No gateways available (GW Group 2) - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sl_send_reply(&quot;503&quot;, &quot;Termination Currently Unavailable&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setflag(21);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t_on_failure(&quot;1&quot;);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;route(10);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
<BR>
<BR>
Basically, it&#8217;s checking to see if the call is originating from one of the incoming gateways in group id 1000, and if it is, I&#8217;d like to pull a gateway from group 2 and send the call to it.<BR>
<BR>
<BR>
Any help would be appreciated.<BR>
<BR>
Thanks,<BR>
<BR>
&nbsp;- Darren</SPAN></FONT></FONT>
</BODY>
</HTML>