diff options
author | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-03-14 21:51:35 +0000 |
---|---|---|
committer | may <may@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-03-14 21:51:35 +0000 |
commit | bf0bc7d7a7f427a1a89ad9a7f94d3d2599aef34d (patch) | |
tree | 503cc11908579e0efc29f9f6bbcaa279679dff70 /addons/ooh323c | |
parent | 5401364c2d1146fd342f26c4d876cdef4540433c (diff) |
Merged revisions 310734 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
(closes issue #18693)
........
r310734 | may | 2011-03-15 00:45:53 +0300 (Tue, 15 Mar 2011) | 12 lines
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: http://svn.digium.com/svn/asterisk/trunk@310735 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons/ooh323c')
-rw-r--r-- | addons/ooh323c/src/ooCalls.h | 2 | ||||
-rw-r--r-- | addons/ooh323c/src/ooCapability.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/addons/ooh323c/src/ooCalls.h b/addons/ooh323c/src/ooCalls.h index 8f367769f..5c2604087 100644 --- a/addons/ooh323c/src/ooCalls.h +++ b/addons/ooh323c/src/ooCalls.h @@ -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; diff --git a/addons/ooh323c/src/ooCapability.c b/addons/ooh323c/src/ooCapability.c index 391864018..18a25f375 100644 --- a/addons/ooh323c/src/ooCapability.c +++ b/addons/ooh323c/src/ooCapability.c @@ -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: |