Hello Folks, I found the root cause of this issue.
In file ms_msg_list.c, issue is on line 290. (https://github.com/sipwise/kamailio/blob/master/modules/msilo/ms_msg_list.c ) Line 290: p0 = p0->next; should be like this below : p0 = ml->lsent; The issue is p0->next becomes null in first iteration so it won't process more than one element in 'while' loop. Hence this is the main cause of slowness of message deletion. I have tested modified code and it works fine now. Develoerps, Please review this change and advise accordingly. Thanks On Mon, Aug 25, 2014 at 11:35 PM, Bhupendra Singh <[email protected]> wrote: > Hi Guys, > > Has anyone used/using offline message handling and storage in "silo" table? > My issue is cleanup of stored message is taking very long time specially > when many messages are left for target users. > After further investigation I realized, only one message gets deleted in > one pass and next in next pass ( after 30 second default timer). > Is it intentional ? How can we make sure that all delivered messages get > deleted right away for that user? > > Thanks > > >
_______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
