Hello,


iirc, there are two types of event routes there:


 - one that is executed at startup by providing the 'exec' modparam

 - one that just have to be defined in config and not provided to the 'exec' modparam


You need to use the 2nd one, just define it and then you will be able to execute it via rpc commands. It does not need anything else.


Cheers,
Daniel


On 14.08.22 16:37, Patrick Karton wrote:
Hello i would like to use the evrexec module to execute background jobs over exec module mainly because i want to be able to  trigger that route manually via rpc from time to time.

in the documentation its is stated we should use tasks that run forever and except using while loop i dont see another way.

and i dont to want to disable max_while_loops. but if i disable it i will get error message like runaway while (1091, 9): more then 100 loops.

so is there another way to do it properly ? 

Thanks.

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda