From fa46248f9def343c3101c25b6b7eb2904603d225 Mon Sep 17 00:00:00 2001 From: Jeremy McNamara Date: Thu, 3 Nov 2005 01:41:32 +0000 Subject: [PATCH] Request a sane amount of bandwdith from GK, and fix one-way auido problems with broken H.323 stacks *cough* CCM. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6950 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/h323/ast_h323.cpp | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index 74c348190a..bb41450886 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -155,6 +155,11 @@ void MyProcess::Main() { cout << " == Creating H.323 Endpoint" << endl; endPoint = new MyH323EndPoint(); + /* Due to a bug in the H.323 recomendation/stack we should request a sane + amount of bandwidth from the GK - this function is ignored if not using a GK + We are requesting 128 (64k in each direction), which is the worst case codec. */ + endPoint->SetInitialBandwidth(1280); + PTrace::Initialise(0, NULL, PTrace::Timestamp | PTrace::Thread | PTrace::FileAndLine); PTrace::SetStream(logstream); } @@ -360,7 +365,7 @@ void MyH323EndPoint::SetEndpointTypeInfo( H225_EndpointType & info ) const PINDEX as=SupportedPrefixes.GetSize(); ((H225_VoiceCaps &)protocol).m_supportedPrefixes.SetSize(as); for (PINDEX p=0; p