Introduce t.38 parameters control functionality not full but enough for

Send/RcvFax support

Introduce t.38 controls between asterisk core and channel/proto layers.
Not all parameters are transferred from proto layers but *Fax apps
tested and work ok.

(issue #18693)
Reported by: benngard2
Patches: 
      issue-18693.patch uploaded by may213 (license 454)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@310734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Alexandr Anikin
2011-03-14 21:45:53 +00:00
parent 1a7d232a5a
commit 5082c5d44b
3 changed files with 24 additions and 0 deletions

View File

@@ -214,6 +214,8 @@ typedef struct OOH323CallData {
ASN1UINT8 requestSequence;
ASN1UINT reqFlags;
ASN1UINT t38sides;
int T38FarMaxDatagram;
int T38Version;
H235TimeStamp alertingTime, connectTime, endTime; /* time data for gatekeeper */
FastStartResponse *pFastStartRes; /* fast start response */
struct OOH323Regex* rtpMask;

View File

@@ -2710,6 +2710,12 @@ int ooAddRemoteDataApplicationCapability(OOH323CallData *call,
switch(dataCap->application.t)
{
case T_H245DataApplicationCapability_application_t38fax:
if (dataCap->application.u.t38fax->t38FaxProfile.m.t38FaxUdpOptionsPresent) {
call->T38FarMaxDatagram = dataCap->application.u.t38fax->t38FaxProfile.t38FaxUdpOptions.t38FaxMaxDatagram;
}
if (dataCap->application.u.t38fax->t38FaxProfile.m.versionPresent) {
call->T38Version = dataCap->application.u.t38fax->t38FaxProfile.version;
}
return ooCapabilityAddT38Capability(call, OO_T38,
dir, NULL, NULL, NULL, NULL,TRUE);
default: