diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-03-01 07:25:16 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-03-01 07:25:16 +0000 |
commit | 59148f4e81638fdc9520227a72436fefefab65fd (patch) | |
tree | 9c50865fad9dae51a76e84961ed684c985588c2a /net/openh323/files | |
parent | bf1ee3290e60cf814992d9e666f310d200bb95c8 (diff) |
Notes
Diffstat (limited to 'net/openh323/files')
-rw-r--r-- | net/openh323/files/patch-include-h4601.h | 12 | ||||
-rw-r--r-- | net/openh323/files/patch-include-mediafmt.h | 19 | ||||
-rw-r--r-- | net/openh323/files/patch-src-h261codec-cxx | 11 | ||||
-rw-r--r-- | net/openh323/files/patch-src-h323caps.cxx | 58 | ||||
-rw-r--r-- | net/openh323/files/patch-src-h323ep-cxx | 11 | ||||
-rw-r--r-- | net/openh323/files/patch-src-h323pluginmgr-cxx | 13 | ||||
-rw-r--r-- | net/openh323/files/patch-src-mediafmt.cxx | 12 |
7 files changed, 136 insertions, 0 deletions
diff --git a/net/openh323/files/patch-include-h4601.h b/net/openh323/files/patch-include-h4601.h new file mode 100644 index 000000000000..8022ba51565b --- /dev/null +++ b/net/openh323/files/patch-include-h4601.h @@ -0,0 +1,12 @@ +diff -ruN include/h4601.h.orig include/h4601.h +--- include/h4601.h.orig 2006-06-08 09:26:16.000000000 -0400 ++++ include/h4601.h 2007-12-31 15:10:41.000000000 -0500 +@@ -61,6 +61,7 @@ + + #include "h225.h" + #include "transports.h" ++#include <ptlib/pluginmgr.h> + #include <ptclib/url.h> + + + diff --git a/net/openh323/files/patch-include-mediafmt.h b/net/openh323/files/patch-include-mediafmt.h new file mode 100644 index 000000000000..641449b9142a --- /dev/null +++ b/net/openh323/files/patch-include-mediafmt.h @@ -0,0 +1,19 @@ +--- ../openh323.orig/work/openh323_v1_18_0/include/mediafmt.h 2005-11-30 08:05:01.000000000 -0500 ++++ include/mediafmt.h 2008-01-05 23:12:39.000000000 -0500 +@@ -163,9 +163,13 @@ + RTP_DataFrame::PayloadTypes GetPayloadType() const { return rtpPayloadType; } + + enum { +- DefaultAudioSessionID = 1, +- DefaultVideoSessionID = 2, +- DefaultDataSessionID = 3 ++ FirstSessionID = 1, ++ DefaultAudioSessionID = 1, ++ DefaultVideoSessionID = 2, ++ DefaultDataSessionID = 3, ++ DefaultH224SessionID = 4, ++ DefaultExtVideoSessionID = 5, ++ LastSessionID = 5 + }; + + /**Get the default session ID for media format. diff --git a/net/openh323/files/patch-src-h261codec-cxx b/net/openh323/files/patch-src-h261codec-cxx new file mode 100644 index 000000000000..ff426c9fde64 --- /dev/null +++ b/net/openh323/files/patch-src-h261codec-cxx @@ -0,0 +1,11 @@ +diff -ruN src/h261codec.cxx.orig src/h261codec.cxx +--- src/h261codec.cxx 2006-06-06 04:05:40.000000000 -0400 ++++ src/h261codec.cxx 2007-12-31 15:17:29.000000000 -0500 +@@ -279,6 +279,7 @@ + #include "h245.h" + #include "rtp.h" + ++#include <ptlib/video.h> + #include "vic/p64.h" + #include "vic/p64encoder.h" + diff --git a/net/openh323/files/patch-src-h323caps.cxx b/net/openh323/files/patch-src-h323caps.cxx new file mode 100644 index 000000000000..164315e4c9e6 --- /dev/null +++ b/net/openh323/files/patch-src-h323caps.cxx @@ -0,0 +1,58 @@ +--- src/h323caps.cxx.orig 2006-05-16 07:36:01.000000000 -0400 ++++ src/h323caps.cxx 2007-12-31 15:28:02.000000000 -0500 +@@ -2076,7 +2076,7 @@ + PINDEX simultaneous, + const PString & name) + { +- PINDEX reply = descriptorNum == P_MAX_INDEX ? P_MAX_INDEX : simultaneous; ++/* PINDEX reply = descriptorNum == P_MAX_INDEX ? P_MAX_INDEX : simultaneous; + + PStringArray wildcard = name.Tokenise('*', FALSE); + +@@ -2109,6 +2109,46 @@ + } + + return reply; ++*/ ++ ++ ++ ++ ++ PINDEX reply = descriptorNum == P_MAX_INDEX ? P_MAX_INDEX : simultaneous; ++ ++ PStringArray wildcard = name.Tokenise('*', FALSE); ++ ++ H323CapabilityFactory::KeyList_T stdCaps = H323CapabilityFactory::GetKeyList(); ++ ++ for (unsigned session = OpalMediaFormat::FirstSessionID; session <= OpalMediaFormat::LastSessionID; session++) { ++ for (H323CapabilityFactory::KeyList_T::const_iterator r = stdCaps.begin(); r != stdCaps.end(); ++r) { ++ PString capName(*r); ++ if (MatchWildcard(capName, wildcard) && (FindCapability(capName) == NULL)) { ++ OpalMediaFormat mediaFormat(capName); ++ if (!mediaFormat.IsValid() && (capName.Right(4) == "{sw}") && capName.GetLength() > 4) ++ mediaFormat = OpalMediaFormat(capName.Left(capName.GetLength()-4)); ++ if (mediaFormat.IsValid() && mediaFormat.GetDefaultSessionID() == session) { ++ // add the capability ++ H323Capability * capability = H323Capability::Create(capName); ++ PINDEX num = SetCapability(descriptorNum, simultaneous, capability); ++ if (descriptorNum == P_MAX_INDEX) { ++ reply = num; ++ descriptorNum = num; ++ simultaneous = P_MAX_INDEX; ++ } ++ else if (simultaneous == P_MAX_INDEX) { ++ if (reply == P_MAX_INDEX) ++ reply = num; ++ simultaneous = num; ++ } ++ } ++ } ++ } ++ simultaneous = P_MAX_INDEX; ++ } ++ ++ return reply; ++ + } + + diff --git a/net/openh323/files/patch-src-h323ep-cxx b/net/openh323/files/patch-src-h323ep-cxx new file mode 100644 index 000000000000..29e80a67bd5f --- /dev/null +++ b/net/openh323/files/patch-src-h323ep-cxx @@ -0,0 +1,11 @@ +diff -ruN src/h323ep.cxx.orig src/h323ep.cxx +--- src/h323ep.cxx.orig 2006-06-09 02:30:12.000000000 -0400 ++++ src/h323ep.cxx 2007-12-31 13:11:13.000000000 -0500 +@@ -793,6 +793,7 @@ + #include <ptclib/url.h> + #include <ptclib/pils.h> + #include <ptclib/enum.h> ++#include <ptlib/sound.h> + + #if defined(H323_RTP_AGGREGATE) || defined(H323_SIGNAL_AGGREGATE) + #include <ptclib/sockagg.h> diff --git a/net/openh323/files/patch-src-h323pluginmgr-cxx b/net/openh323/files/patch-src-h323pluginmgr-cxx new file mode 100644 index 000000000000..e3546d1dbe2c --- /dev/null +++ b/net/openh323/files/patch-src-h323pluginmgr-cxx @@ -0,0 +1,13 @@ +diff -ruN src/h323pluginmgr.cxx.orig src/h323pluginmgr. +cxx +--- src/h323pluginmgr.cxx.orig 2005-08-05 13:11:03.000000000 -0400 ++++ src/h323pluginmgr.cxx 2007-12-31 15:04:53.000000000 -0500 +@@ -1305,7 +1305,7 @@ + PTRACE(4, "H323PLUGIN\tCannot instantiate static codec plugin " << *r); + } else { + PTRACE(4, "H323PLUGIN\tLoading static codec plugin " << *r); +- RegisterStaticCodec(*r, instance->Get_GetAPIFn(), instance->Get_GetCodecFn()); ++ RegisterStaticCodec(r->c_str(), instance->Get_GetAPIFn(), instance->Get_GetCodecFn()); + } + } + } diff --git a/net/openh323/files/patch-src-mediafmt.cxx b/net/openh323/files/patch-src-mediafmt.cxx new file mode 100644 index 000000000000..084c50685c93 --- /dev/null +++ b/net/openh323/files/patch-src-mediafmt.cxx @@ -0,0 +1,12 @@ +diff -ruN src/mediafmt.cxx.orig src/mediafmt.cxx +--- src/mediafmt.cxx.orig 2005-01-11 02:12:13.000000000 -0500 ++++ src/mediafmt.cxx 2007-12-31 14:48:26.000000000 -0500 +@@ -395,7 +395,7 @@ + OpalMediaFormatFactory::KeyMap_T & keyMap = OpalMediaFormatFactory::GetKeyMap(); + OpalMediaFormatFactory::KeyMap_T::const_iterator r; + for (r = keyMap.begin(); r != keyMap.end(); ++r) { +- if (r->first.Find(search) != P_MAX_INDEX) { ++ if (r->first.find(search) != P_MAX_INDEX) { + *this = *OpalMediaFormatFactory::CreateInstance(r->first); + break; + } |