Re: [SR-Users] Kamctl reload commands

2012-01-09 Thread Daniel-Constantin Mierla
Hello, On 1/5/12 12:22 PM, Uri Shacked wrote: Hi, i ask this not for sip affected problems. i what to load the information from the DB. while loading, i want the DB table to be locked for changes... i need to know when did the loading proccess ended in order to unlock the table. how do i

Re: [SR-Users] Kamctl reload commands

2012-01-05 Thread Claudio Furrer
Hi, You can check a "result" string when running the "kamctl cr reload". Example: 1. db reload ok # sh /tmp/kamctl_cr_reload.sh Reloading carrierroute db... Ready, with error code: 0 Return result: 2. failure on reload # sh /tmp/kamctl_cr_reload.sh Reloading carrierroute db... Ready, w

Re: [SR-Users] Kamctl reload commands

2012-01-05 Thread Uri Shacked
Hi, i ask this not for sip affected problems. i what to load the information from the DB. while loading, i want the DB table to be locked for changes... i need to know when did the loading proccess ended in order to unlock the table. how do i set an application to run the kamctl command and mak

Re: [SR-Users] Kamctl reload commands

2012-01-05 Thread Daniel-Constantin Mierla
Hello, On 1/5/12 11:03 AM, Uri Shacked wrote: Hi, i am using different modules like "mtree", "carrierroute", "drouting" and so. how can i tell how long did the reload takes? this is a matter of how many records are in database. Perhaps you can count the duration of executing the reload comman

[SR-Users] Kamctl reload commands

2012-01-05 Thread Uri Shacked
Hi, i am using different modules like "mtree", "carrierroute", "drouting" and so. how can i tell how long did the reload takes? how do i know if it fails? is there a way to get a return code from kamailio that confirms that the reload ended and successfuly? BR, Uri ___