<div dir="ltr">Hi devs!<div><br></div><div>  I want to code a new asterisk App to send messages over MQTT. looking the docs the MQTT lib needs frequent calling to a "loop" function, since the "send" method is asyncronous.</div><div><br></div><div>  I don't want to use it externally with "System" or "AGI" since it will be called in the ahngup handler and I would like to use the fast "publish" call (hangup handlers should be quick, right? :)</div><div><br></div><div>  Where would I put this frequent calling on asterisk code? should I build a thread for this? or put inside some asterisk "main loop"?</div><div><br></div><div>Thanks,</div><div>Gabriel</div></div>