<div><a href="http://www.kamailio.org/docs/modules/4.4.x/modules/htable.html#htable.rpc.reload">http://www.kamailio.org/docs/modules/4.4.x/modules/htable.html#htable.rpc.reload</a></div><div> </div><div>looks like it is a good method. thanks</div><div><br /></div><div><br /></div><div>29.11.2017, 14:48, "voipspace voipspace" <voipspace@yandex.com>:</div><blockquote type="cite"><div> </div><div>How then could I dynamic add or remove htables entries</div><div> </div><div><br /></div><div><br /></div><div>29.11.2017, 14:40, "Alexandru Covalschi" <<a href="mailto:568691@gmail.com">568691@gmail.com</a>>:</div><blockquote type="cite"><div>I'd suggest creating a separate htable with your gateways and just query it, you don't need a separate module for key-value matching<br /><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;"><br />________________________________</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;">Alexandru Covalschi</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;">VoIP Engineer and System Administrator<br />tel: <span><span>+373 673 98 493</span></span></div>
</div>
<br /><div><blockquote type="cite"><div>29 нояб. 2017 г., в 13:58, voipspace voipspace <<a href="mailto:voipspace@yandex.com">voipspace@yandex.com</a>> написал(а):</div><br /><div><div>I suppose I just could do sql direct on lcr_gw table like</div><div> </div><div>select ip_addr, prefix from lcr_gw where gw_name = "my_termination_provider"</div><div> </div><div>What I wanted to know is a module already doing this function.</div><div> </div><div>I am looking for a function because in theory it will be more tested and because i heard sql directly is prone to memory leaks</div><div> </div><div> </div><div> </div><div><br /></div><div><br /></div><div>29.11.2017, 11:29, "voipspace voipspace" <<a href="mailto:voipspace@yandex.com">voipspace@yandex.com</a>>:</div><blockquote type="cite"><div><div><div>Hi</div><div> </div><div>I want to build the following scenerio</div><div> </div><div>There should be some sort of database table to hold a list of gateway entries with fields ip, prefix, and name/description.</div><div> </div><div>It would be good to use exiting tables to use what is avaiable. Have been looking at the lcr and drouting tables</div><div>but it seems they are designed to choose automaticaly for you and not just returning data about specific entries.</div><div> </div><div>Please suggest how I may archive the following</div><div> </div><div>Kamailio will receive a request it will then send to another Kamailio redirect server.</div><div>The response from the redirect will have a sip header value holding the id/name of the gateway choosen.</div><div> </div><div>I want Kamailio processing the reponse to use the gateway id/name to lookup on the table and access the full details</div><div>ip, prefix details. </div><div> </div><div>This data can then be used to construct the relay parameter.</div><div> </div><div>Regards</div><div> </div></div></div></blockquote>_______________________________________________<br />Kamailio (SER) - Users Mailing List<br /><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br /><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br /></div></blockquote></div><br /></div>,<p>_______________________________________________<br />Kamailio (SER) - Users Mailing List<br /><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br /><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br /></p></blockquote>,<p>_______________________________________________<br />Kamailio (SER) - Users Mailing List<br /><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br /><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br /></p></blockquote>