Hello, looking quickly at the code, the records fetched from db are ordered by 'id', so they should be in the order they were received, not the opposite.
Are you using mysql or other database server? Cheers, Daniel On 15/02/2017 14:24, Venkatesh Macha wrote: > Hi all, > > I am using MSILO module for the offline messaging feature. It is working > good. But If I send more than one message to the offline user. Those > messages are delivering in the reverse order. Please consider the following > scenario. > > A sending B ( B is offline, so messages are stored in DB) > > hi > hello > how are you > > Now B comes online and registers. Kamailio sending the messages but App is > getting them in reverse order. > > how are you > hello > hi > > Is there any possibility to tell Kamailio to send them in order. ? > > Thank you in advance. > > > > > -- > View this message in context: > http://sip-router.1086192.n5.nabble.com/MSILO-offline-messages-are-coming-in-reverse-order-tp156098.html > Sent from the Users mailing list archive at Nabble.com. > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users