mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 02:32:36 +00:00
Reworked chan_ooh323 channel module.
Many architectural and functional changes. Main changes are threading model chanes (many thread in ooh323 stack instead of one), modifications and improvements in signalling part, additional codecs support (726, speex), t38 mode support. This module tested and used in production environment. (closes issue #15285) Reported by: may213 Tested by: sles, c0w, OrNix Review: https://reviewboard.asterisk.org/r/324/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -14,7 +14,10 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#include <asterisk.h>
|
||||
#include <asterisk/lock.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "ooasn1.h"
|
||||
|
||||
static int encode16BitConstrainedString
|
||||
@@ -25,6 +28,11 @@ static int encodeNonNegBinInt (OOCTXT* pctxt, ASN1UINT value);
|
||||
static int encodeUnconsLength (OOCTXT* pctxt, ASN1UINT value);
|
||||
static int getIdentByteCount (ASN1UINT ident);
|
||||
|
||||
int encodeBitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits);
|
||||
int encodeGetMsgBitCnt (OOCTXT* pctxt);
|
||||
int encodeIdent (OOCTXT* pctxt, ASN1UINT ident);
|
||||
|
||||
|
||||
int encodeBit (OOCTXT* pctxt, ASN1BOOL value)
|
||||
{
|
||||
int stat = ASN_OK;
|
||||
@@ -129,7 +137,7 @@ int encodeBitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
|
||||
int lshift = pctxt->buffer.bitOffset;
|
||||
int rshift = 8 - pctxt->buffer.bitOffset;
|
||||
int stat = ASN_OK;
|
||||
ASN1OCTET mask;
|
||||
ASN1OCTET mask = 0x0;
|
||||
|
||||
if (nbits == 0) return ASN_OK;
|
||||
|
||||
@@ -596,7 +604,7 @@ int encodebitsFromOctet (OOCTXT* pctxt, ASN1OCTET value, ASN1UINT nbits)
|
||||
int lshift = pctxt->buffer.bitOffset;
|
||||
int rshift = 8 - pctxt->buffer.bitOffset;
|
||||
int stat = ASN_OK;
|
||||
ASN1OCTET mask;
|
||||
ASN1OCTET mask = 0x0;
|
||||
|
||||
if (nbits == 0) return ASN_OK;
|
||||
|
||||
|
Reference in New Issue
Block a user