<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body
style="font-family: Courier New,Courier,monospace;" bgcolor="#FFFFFF"
text="#000000">
<div style="font-family: Courier New,Courier,monospace;"><div
class="moz-text-flowed" style="font-family: -moz-fixed">Hello @all,
<br>
<br>want to use the remote register function of the UAC module.
<br>We need to register 42 accounts on one openSER server.
<br>
<br>At kamailio startup those 42 remote register requests will be startet at the same time.
<br>This leads to a kind of FlodAttact on the openSER server of our
provider, which will
block us :-(
<br>
<br>We would like to delay each initial remote register by 1 second.
<br>
<br>We searched the UAC module and taught that at some place the uac.so
module has to
load the uacreg table and do some for loop to start the remote register process.
<br>
<br>We found function child_init() in uac.c where the function
uac_reg_load_db() is
called followed uac_reg_timer().
<br>
<br>Our change to uac_reg_timer() is the sleep(1).
<br>
<br>After compiling it seems to us - that this function is not called.
<br>Is there anybody how has a tip for us?
<br>
<br>Thanks,
<br>
<br>René
<br>
<br>
<br>
<br>
<br>
<br>
<br>/**
<br> *
<br> */
<br>void uac_reg_timer(unsigned int ticks, unsigned int initial_reg_call)
<br>{
<br> LM_ERR("----------------------- uac_reg_timer() -- enter \n");
<br><------>int i;
<br><------>reg_item_t *it =bsp;NULL;
<br><------>time_t tn;
<br>
<br><------>tn =bsp;time(NULL);
<br><------>for(i= i<_reg_htable->htsize; i++)
<br><------>{
<br><------><------>/* free entries */
<br><------><------>it =bsp;_reg_htable->entries[i].byuuid;
<br><------><------>while(it)
<br><------><------>{
<br> LM_ERR("----------------------- uac_reg_timer() -- 1 \n");
<br>
<br><------><------><------>if (initial_reg_call =nbsp;1)
<br><------><------><------>{
<br> LM_ERR("-----------------------
uac_reg_timer() -- 2
\n");
<br><------><------><------><------>sleep(1);
<br><------><------><------>}
<br><------><------><------>uac_reg_update(it->r, tn);
<br><------><------><------>it =bsp;it->next;
<br><------><------>}
<br><------>}
<br>}
<br>
<br>
<br>
<br>
<br>
<br></div></div>
</body>
</html>