Hi Chanduv Before you call pjsua_init() to init PjSip.You must init callback function in the first parameter of pjsip_init(). Like this: SipUaProfile.cfg.cb.on_call_state = SipUaOnCallState; SipUaProfile.cfg.cb.on_call_media_state = SipUaOnCallMediaState; SipUaProfile.cfg.cb.on_incoming_call = SipUaOnIncomingCall; SipUaProfile.cfg.cb.on_dtmf_digit = NULL; SipUaProfile.cfg.cb.on_reg_state = SipUaOnRegStateChange; SipUaProfile.cfg.cb.on_buddy_state = NULL; SipUaProfile.cfg.cb.on_pager = NULL; SipUaProfile.cfg.cb.on_typing = NULL; SipUaProfile.cfg.cb.on_call_transfer_status = SipUaOnCallTransferStatus; SipUaProfile.cfg.cb.on_call_replaced = NULL; Then Call pjsua_init(&SipUaProfile.cfg, XXX,XXX); After that you have registered you function into pjsip. Once there is a imcoming call.The function will be call. Best Regards.Michael Liu Date: Fri, 27 Jun 2008 15:42:16 +0800From: chandu73@gmail.comTo: pjsip at lists.pjsip.orgSubject: How the appication identifies Incoming Call Hi All, i have a small doubt in the pjsip.when we run the console appication , how it recognises when there is a incoming call. and where the function calling happens for? staticvoid on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id,pjsip_rx_data *rdata) Thanks in Advance , Regards Chanduv _________________________________________________________________ ???MSN??????????????????? http://mobile.msn.com.cn/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080627/4a934cd2/attachment.html