diff options
author | Jeremy McNamara <jj@nufone.net> | 2005-04-29 04:22:47 +0000 |
---|---|---|
committer | Jeremy McNamara <jj@nufone.net> | 2005-04-29 04:22:47 +0000 |
commit | 45f7567d7000cccc7b2fa7335c624003f63fae44 (patch) | |
tree | bfa12fd68b002511ce51dab14dadc5e372ee2059 /channels/h323 | |
parent | b2c3f0464fdb4188de9009c8162b6d9eedcbb03d (diff) |
Fix codec negiocation on inbound calls. Bugs 3980, 4021, 4045
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323')
-rwxr-xr-x | channels/h323/ast_h323.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index cf1c33c31..80cabd6ff 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -97,7 +97,7 @@ int PAsteriskLog::Buffer::overflow(int c) { if (pptr() >= epptr()) { int ppos = pptr() - pbase(); - char *newptr = string.GetPointer(string.GetSize() + 10); + char *newptr = string.GetPointer(string.GetSize() + 2000); setp(newptr, newptr + string.GetSize() - 1); pbump(ppos); } @@ -134,7 +134,7 @@ int PAsteriskLog::Buffer::sync() free(str); string = PString(); - char *base = string.GetPointer(10); + char *base = string.GetPointer(2000); setp(base, base + string.GetSize() - 1); return 0; } @@ -1092,6 +1092,7 @@ void h323_end_process(void) endPoint->ClearAllCalls(); endPoint->RemoveListener(NULL); delete endPoint; + endPoint = NULL; PTrace::SetLevel(0); delete localProcess; delete logstream; |