Re: [SR-Users] How to delay messages when msilo messages are dumped

2017-07-10 Thread Daniel-Constantin Mierla
Hello,

you could try to send the messages back to kamailio via outbound proxy
option, then add some delay via script operations. Be careful not to
block the sip worker processes, therefore look at the asynchronous
routing options.

Of course, patching the module and writing a bit of c code can be also a
solution.

Another one is to make some external script that fetches from the
database and injects sip messages (e.g., via sipsak or sipp) at the pace
you want.

Cheers,
Daniel


On 07.07.17 17:02, Rahul Mehta wrote:
> Hello,
>
> We are facing scenario when msilo dump function is called the user's
> device gets hanged/crash as messages are sent together to the user 
> who gets online,please provide solution how to delay the messages
> which are send to the user when 'm_dump' function is called.
>
> I am providing the code of m_dump function
>
>
>  if (m_dump("$fu"))
>  {
> xlog("L_INFO","MSILO: offline messages
> dumped - if they were\n");
>   }else{
> xlog("L_INFO","MSILO: no offline
> messages dumped\n");
>  };
>
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to delay messages when msilo messages are dumped

2017-07-07 Thread Rahul Mehta
Hello,

We are facing scenario when msilo dump function is called the user's device
gets hanged/crash as messages are sent together to the user  who gets
online,please provide solution how to delay the messages which are send to
the user when 'm_dump' function is called.

I am providing the code of m_dump function


 if (m_dump("$fu"))
 {
xlog("L_INFO","MSILO: offline messages
dumped - if they were\n");
  }else{
xlog("L_INFO","MSILO: no offline messages
dumped\n");
 };
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users