Hi, is there are any example on how to use the on_pager() callback? can the on_pager callback return the message to the function calling it when there is message come in? sincerely, ws ________________________________ From: Benny Prijono <bennylp@xxxxxxxxx> To: pjsip list <pjsip at lists.pjsip.org> Sent: Saturday, March 14, 2009 12:43:00 AM Subject: Re: how to check for incoming event from PJSUA API On Fri, Mar 13, 2009 at 4:38 PM, Soh Wei Sin <wssoh85 at yahoo.com> wrote: Hi, thanks for your fast reply :) I understand that the on_pager() call able to obtain the received IM. However, since the on_pager() is an static void function, therefore, how could I pass the IM received to other function? I need to get the message string for other purpose instead of display it on screen. So is there are any other method to do so? I was talking about on_pager() callback in pjsua_callback structure, and not on_pager() function in pjsua_app.c application. I think that should fit your purpose. cheers Benny Sincerely, WS -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090314/ffdc3c0b/attachment.html>