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
This commit is contained in:
Jeremy McNamara
2005-04-29 04:22:47 +00:00
parent b2c3f0464f
commit 45f7567d70
2 changed files with 22 additions and 10 deletions

View File

@@ -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;