as mentioned here pjsua_call_make_call gives you a unique call identifier, use that with pj_status_t status = pjsua_call_hangup(identifier, 0, NULL, NULL); the idea of of pjsua is to abstract you of all the lower layer details, thus this works whether you are connected or not. the logic underneath takes care of sending the proper message in case of ending before answer a CANCEL will be send by pjsip. hope this helps -- Alejandro Statement of Confidentiality The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130322/89ac6053/attachment-0001.html>