Hello,
There is a small problem:
I use:
sipxLineAdd (hInstance, '<sip:101@domain>' , &hLine); <- 101 is UserId
sipxLineAddCredential (hLine, '555', PwdA, NULL); <- 555 is AuthId
I receive an error: No credentials found for: lineId:<sip:101@domain>;
This is because in the file SipLineProvider AuthId = 555 is compared with UserId=101 of a first message REGISTER.
Code from file SipLineProvider.cpp:
if (!sipCredential.getUserId().compareTo (userId, UtlString::matchCase)) { // userid match, return this credential
lineCredential = sipCredential;
result = TRUE;
}
Here: sipCredential.getUserId() - AuthId = 555 and userId = 101 from first message REGISTER.
How can I fix it?
Sorry for my english.