Re: [SR-Users] Reload htable

2015-03-28 Thread Olle E. Johansson
On 27 Mar 2015, at 14:50, Alex Balashov wrote: > This command is not exposed within the route script. This is a fairly common > situation with modules; some "meta" functionality like this that is available > externally (via MI, RPC, etc.) is not available within the route script. http://kamail

Re: [SR-Users] Reload htable

2015-03-27 Thread Grant Bagdasarian
No problem Alex! Thanks Daniel :). I'm glad I'm using 4.2.3 :D -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, March 27, 2015 3:08 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Reload hta

Re: [SR-Users] Reload htable

2015-03-27 Thread Alex Balashov
On 03/27/2015 10:05 AM, Daniel-Constantin Mierla wrote: actually it is possible to execute rpc commands (e.g., htable.reload) from kamailio.cfg, starting with version 4.2 -- you have to use jsonrpc-s module and jsonrpc_exec() function: http://www.kamailio.org/docs/modules/stable/modules/jsonrpc

Re: [SR-Users] Reload htable

2015-03-27 Thread Daniel-Constantin Mierla
uter.org] On Behalf Of > Alex Balashov > Sent: Friday, March 27, 2015 2:50 PM > To: sr-users@lists.sip-router.org > Subject: Re: [SR-Users] Reload htable > > Grant, > > On 03/27/2015 09:44 AM, Grant Bagdasarian wrote: > >> I need to reload a htable from the database

Re: [SR-Users] Reload htable

2015-03-27 Thread Grant Bagdasarian
Thanks Alex, for the detailed explanation! :) -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, March 27, 2015 2:50 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Reload htable Grant, On 03/27/2015 09

Re: [SR-Users] Reload htable

2015-03-27 Thread Alex Balashov
Grant, On 03/27/2015 09:44 AM, Grant Bagdasarian wrote: I need to reload a htable from the database when a certain condition is met inside my kamailio script. I found the htable.reload htable RPC command, but is it possible to run this from within the script? This command is not exposed with

[SR-Users] Reload htable

2015-03-27 Thread Grant Bagdasarian
Hello, I need to reload a htable from the database when a certain condition is met inside my kamailio script. I found the htable.reload htable RPC command, but is it possible to run this from within the script? Is there perhaps another way to force reload the htable inside the script? Thanks,