Hi, I have compiled a sample application and need to know how to handle on_reg_state. I need to get information whether the account registration succeeded or failed. For the purpose, i googled and found that using pjsua_acc_get_info(...), we can get the status of registration. This is what i have done.. static void on_reg_state(pjsua_acc_id acc_id) { PJ_UNUSED_ARG(acc_id); pjsua_acc_info acc_info; pj_status_t status; status = pjsua_acc_get_info(acc_id, &acc_info); if (status != PJ_SUCCESS) return; MessageBox(NULL,acc_info.status_test.ptr,"Test",MB_OK); } Using the above block, even when registration failed or registration succeeded, it gives acc_info.status_test.ptr as OK (200) and acc_info.status gives 200. But going through wireshark capture, it gave "200 Auth Failed" for failed registration and "200 OK" for successful registration. So how can i get the actual registration status.. Please, anyone got a solution. Thanks in advance. Anil