[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] Windows Desktop C++ 5.2.77 : cannot cal AuthInfo::
From: |
Nora Robin |
Subject: |
[Linphone-developers] Windows Desktop C++ 5.2.77 : cannot cal AuthInfo::setIdentityAddress() since Address is corrupt |
Date: |
Thu, 22 Jun 2023 07:01:04 -0400 (EDT) |
I have created an Address in Windows Desktop 5.2.77 for C++ as follows.
However, when setIdentityAddress() is called, there errors below are printed :
[8]no host found in this uri
[8]Invalid sip identity: sip:
Here is the code:
// A SIP account is identified by an identity address
that we can construct from the username and domain
shared_ptr<Address> pDefAddr =
pFactory->createAddress("Alice <sip:alice@example.net>");
if (false == pDefAddr->isValid()) {
cout << TAG << "Failed default address." <<
endl;
return false;
}
cout << TAG << "Built default address." << endl;
pAccountParams->setIdentityAddress(pDefAddr);
Also, when I try to print the address, the strings for Address::asString() and
Address::getDomainName(), getUsername() etc are all corrupt.
It looks like the address is corrupt, but perhaps I am not creating the address
correctly ? I tried creating the Address with setDomainName() , setUsername()
etc indivitually, but get the same messages, either with garbage characters
after "sip:" or nothing after "sip:".
Can anyone give me a sample of code that works ?
Thanks, N
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] Windows Desktop C++ 5.2.77 : cannot cal AuthInfo::setIdentityAddress() since Address is corrupt,
Nora Robin <=