Greetings list,

I need to put presence info of a device into asterisk database through sqlops module.
 
Currently, i opt to use a lua script to parse xml body of PUBLISH packet issued by pua_dialoginfo and insert trying/ringing stats into asterisk database. 

Is there any better way to accomplish this?

Best Regards,

Aqs Younas