]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax: gateway sends T.38 request to both endpoints if V.21 detected
authorAlexei Gradinari <alex2grad@gmail.com>
Wed, 29 May 2019 22:54:16 +0000 (18:54 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Tue, 4 Jun 2019 15:46:16 +0000 (11:46 -0400)
commit6321b559b9ef0881690233907320294a9beea3ce
treedb0dd2d5b3f938250c3b290e36bc2687ac170d15
parent86fb72c4d08961f9db01818a55f0fa499d465d36
res_fax: gateway sends T.38 request to both endpoints if V.21 detected

According T.38 Gateway 'Use case 3'
https://wiki.asterisk.org/wiki/display/AST/T.38+Gateway
T.38 Gateway should send T.38 negotiation request to called endpoint
if FAX preamble (using V.21 detector) generated by called endpoint.
But it does not, because fax_gateway_detect_v21 constructs T.38
negotiation request, but forwards it only to other channel,
not to the channel on which FAX preamble is detected.

Some SIP endpoints could be improperly configured to rely on the other side
to initiate T.38 re-INVITEs.

With this patch the T.38 Gateway tries to negotiate with both sides
by sending T.38 negotiation request to both endpoints supported T.38.

Change-Id: I73bb24799bfe1a48adae9c034a2edbae54cc2a39
res/res_fax.c