[asterisk-dev] [Code Review] 4589: res_pjsip_t38: Add missing initialization of udptl->far_max_datagram in t38_initialize_session()

Juergen Spies reviewboard at asterisk.org
Fri Apr 10 03:49:13 CDT 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4589/
-----------------------------------------------------------

(Updated April 10, 2015, 8:49 a.m.)


Review request for Asterisk Developers.


Bugs: ASTERISK-24928
    https://issues.asterisk.org/jira/browse/ASTERISK-24928


Repository: Asterisk


Description
-------

Initialize "udptl->far_max_datagram" in t38_initialize_session() with a default value or a value provided
in pjsip.conf (t38_udptl_maxdatagram).
Without this far_max_datagram remains -1 if the remote endpoint does not provide the MediaAttribute T38FaxMaxDatagram
in it's SIP INVITE SDP. This will result in the INVITE being rejected.


Diffs
-----

  /branches/13/res/res_pjsip_t38.c 433967 

Diff: https://reviewboard.asterisk.org/r/4589/diff/


Testing (updated)
-------

I have tested the patch with the following setup. The Asterisk is acting as relay.
The external T.38 gateway is at our ISP. The internal gateway is a Cisco SPA112.
The ISP’s gateway does not include T38FaxMaxDatagram in SDPs.

The test cases included:
- No t38_udptl_maxdatagram in pjsip.conf
  o Faxes in both directions with "normal" SDPs (all INVITEs created by Cisco),
  o Outbound fax w/o T38FaxMaxDatagram in SDP,
- t38_udptl_maxdatagram defined in pjsip.conf for both endpoints
  o Faxes in both directions with "normal" SDPs (all INVITEs created by Cisco).

All tests were completed successfully.


Thanks,

Juergen Spies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150410/0341435b/attachment.html>


More information about the asterisk-dev mailing list