Hi, I seem to be doing something wrong here: I can not get wildcard realms to work; Whereas setting realm explicitly (to 'asterisk') succeeds. Note that I am using C++, and pj_string is a class that can be easily converted to pj_str This is the error i get: Unable to set auth for tdta0x9e9ce58: can not find credential for asterisk/Digest Code: .... pjsip_regc_init( regc, pj_string("sip:" + reg.registrar), pj_string("sip:" + reg.username + "@" + reg.registrar), pj_string("sip:" + reg.username + "@" + reg.registrar), 1, &contact, 300 /*Timeout*/)); pjsip_cred_info cred; memset(&cred, 0, sizeof(cred)); cred.realm = *pj_string("*"); cred.scheme = *pj_string("digest"); cred.username = *pj_string(reg.username); cred.data_type = 0; /* plaintext passwd */ cred.data = *pj_string(reg.secret); pjsip_regc_set_credentials(regc, 1, &cred); pjsip_tx_data* tdata = NULL; pjsip_regc_register, (regc, 1, &tdata)); pjsip_regc_send, (regc, tdata)); Thanks, Nishant -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20121120/ad7c1ae9/attachment-0001.html>