[OpenSIPStack] strange result of call->GetPartyB()
Brought to you by:
joegenbaclor
From: H.Kropf <mai...@gl...> - 2007-05-30 08:59:51
|
I try to use OSS in SIP-client application. One problem: =========================================== SoftPhone.cpp =========================================== void SoftPhoneManager::OnClearedCall(OpalCall & call) { PString remoteName = '"' + call.GetPartyB() + '"'; switch (call.GetCallEndReason()) { case OpalConnection::EndedByRemoteUser : std::cout << remoteName << " has cleared the call"; break; ........ ........ } ........ ........ } =========================================== Why "call.GetPartyB()" return value "551684e4-cdf8-1810-9807-c2555659a538" instead "sip:co...@se..." ? In "OpalManager::SetUpCall(...)" variable "OpalCall::partyB" retrieve value "sip:co...@se..." =========================================== opal / manager.cxx =========================================== BOOL OpalManager::SetUpCall(const PString & partyA, const PString & partyB, PString & token, void * userData) { PTRACE(3, "OpalMan\tSet up call from " << partyA << " to " << partyB); OpalCall * call = CreateCall(); token = call->GetToken(); call->SetPartyB(partyB); ........ ........ } =========================================== But in "OpalCall::OnAlerting".... =========================================== opal / call.cxx =========================================== BOOL OpalCall::OnAlerting(OpalConnection & connection) { PTRACE(3, "Call\tOnAlerting " << connection); BOOL ok = FALSE; if (!LockReadWrite()) return FALSE; partyB = connection.GetRemotePartyName(); ........ ........ } =========================================== After "OnAlerting()", value of "partyB" is "551684e4-cdf8-1810-9807-c2555659a538" Is there any way to getting NORMAL remoteName ? |