?? wrote: > hi: > > I want to cancel a call when the call is not arrive. > > pjsua_call_hangup() must set the call_id. > but the pjsua_call_make_call() can't get the call_id immediately. Sorry I don't understand. pjsua_call_make_call() *will* give you the call id immediately. And this function is an atomic operation as far as application is concerned, so you can't cancel it before it completes. -benny > Is there any good idear? > > Thanks a lot!