From: Craig S. <cso...@us...> - 2007-02-23 01:01:50
|
Update of /cvsroot/openh323/opal/src/opal In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv908 Modified Files: connection.cxx Log Message: Added abilty to set Q.931 codes through normal OpalConnection::CallEndReason Index: connection.cxx =================================================================== RCS file: /cvsroot/openh323/opal/src/opal/connection.cxx,v retrieving revision 2.90 retrieving revision 2.91 diff -C2 -d -r2.90 -r2.91 *** connection.cxx 19 Feb 2007 04:43:42 -0000 2.90 --- connection.cxx 23 Feb 2007 01:01:47 -0000 2.91 *************** *** 26,29 **** --- 26,32 ---- * * $Log$ + * Revision 2.91 2007/02/23 01:01:47 csoutheren + * Added abilty to set Q.931 codes through normal OpalConnection::CallEndReason + * * Revision 2.90 2007/02/19 04:43:42 csoutheren * Added OnIncomingMediaChannels so incoming calls can optionally be handled in two stages *************** *** 631,634 **** --- 634,641 ---- // Only set reason if not already set to something if (callEndReason == NumCallEndReasons) { + if ((reason & EndedWithQ931Code) != 0) { + SetQ931Cause((int)reason >> 24); + reason = (CallEndReason)(reason & 0xff); + } PTRACE(3, "OpalCon\tCall end reason for " << GetToken() << " set to " << reason); callEndReason = reason; *************** *** 1154,1158 **** if (!transport.IsCompatibleTransport("ip$127.0.0.1")) return NULL; ! PIPSocket::Address localAddress; transport.GetLocalAddress().GetIpAddress(localAddress); --- 1161,1169 ---- if (!transport.IsCompatibleTransport("ip$127.0.0.1")) return NULL; ! ! // We only support video and audio over IP at this time ! if (sessionID != OpalMediaFormat::DefaultAudioSessionID && sessionID != OpalMediaFormat::DefaultVideoSessionID) ! return NULL; ! PIPSocket::Address localAddress; transport.GetLocalAddress().GetIpAddress(localAddress); |