Well,I am using this function with C language,but I think it may work just the same with java. an incoming call and a call you make will invoke this function,then the function will be used many times until the call begins or ends. ------------------ Original ------------------ From: "Ngoc Kha Vu"<ngockhavu@xxxxxxxxx>; Date: Mon, Aug 29, 2011 05:13 PM To: "pjsip list"<pjsip at lists.pjsip.org>; Subject: on_call_state() function Hi all. I have just started building a soft phone using pjsua. Unfortunately, I haven't understood it much. I don't know when the function "on_call_state()" in PjsuaClient.java is called ? Can anyone explain for me? Thanks in advance. -- ======================================================================= Best regards and thanks. Vu Ngoc Kha R&D Department - Software Center - Viettel Telecom 5th Floor - The Pacific Ocean Building - 93B - Trung Kinh Street - Cau Giay District - Ha Noi - Viet Nam Mobile Phone: +84-91-5916218 ; +84-98-9353284 Home Phone: +84-36-2-478535 Email: ngockhavu at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110829/68086304/attachment.html>