Skip to content

Commit

Permalink
Update status only if we are registering
Browse files Browse the repository at this point in the history
SIPHandler implicitly sends Successful_OK when unscribing
which overwrites the error if registration is unsuccessful
  • Loading branch information
Israel Reyes committed Oct 28, 2020
1 parent 679c52d commit 1bbf147
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opal/sipep.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ void MySIPEndPoint::OnRegistrationStatus(const RegistrationStatus & status)
PTime time;
SIPEndPoint::OnRegistrationStatus(status);
myPTRACE(2, "T38Modem\tMySIPEndPoint::OnRegistrationStatus() " << status.m_reason << " | " << status.m_userData);
if (!status.m_wasRegistering) {
myPTRACE(2, "T38Modem\tMySIPEndPoint::OnRegistrationStatus() not registering, ignore status");
return;
}

if (status.m_userData) {
ofstream sipRegResultFile;
PString *outFilePString = (PString*) status.m_userData;
Expand Down

0 comments on commit 1bbf147

Please sign in to comment.