Hello! What is the main target of parsing? In my project I use CString and then put them to account config like that: acc_cfg.id = pj_str(m_csAccId.GetBuffer()); acc_cfg.reg_uri = pj_str(m_csAccRegUri.GetBuffer()); acc_cfg.cred_count = 1; acc_cfg.cred_info[0].scheme = pj_str((char*)"Digest"); acc_cfg.cred_info[0].realm = pj_str(m_csAccUsername.GetBuffer()); acc_cfg.cred_info[0].username = pj_str(m_csAccUsername.GetBuffer()); acc_cfg.cred_info[0].data = pj_str(m_csAccPwd.GetBuffer()); in your case m_csAccId = sip:5008 at 172.10.20.16:5060 m_csAccRegUri = sip:172.10.20.16:5060 m_csAccUsername = 5008 m_csAccPwd = your pass. All mentioned strings is CString -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120321/185857b9/attachment.html>