logan wrote: > Hello Benny, > > Thanks for the response. > > If I'm not mistaken then the registration is done by pjsua_acc_add (). Yes, and also pjsua_acc_set_registration(). > And this returns a PJ_SUCCESS so how do I check for the error? [un]Registration will complete asynchronously, and the result will be reported through on_reg_state() callback. In this callback, you can get the status of the [un]registration in the pjsua_acc_info. cheers, -benny > Thanks. > > Best Regards, > Hitesh