I think your problem is with the following line: accConfig.reg_uri = pj_str("sip:"SIP_USER"@"SIP_DOMAIN); You should write it like: accConfig.reg_uri = pj_str("sip:"SIP_DOMAIN);
I think your problem is with the following line: accConfig.reg_uri = pj_str("sip:"SIP_USER"@"SIP_DOMAIN); You should write it like: accConfig.reg_uri = pj_str("sip:"SIP_DOMAIN);