Changeset 1908 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Apr 4, 2008 10:50:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r1889 r1908 778 778 779 779 /* Only do keep-alive if: 780 * - STUN is enabled in global config, and781 780 * - ka_interval is not zero in the account, and 782 781 * - transport is UDP. 782 * 783 * Previously we only enabled keep-alive when STUN is enabled, since 784 * we thought that keep-alive is only needed in Internet situation. 785 * But it has been discovered that Windows Firewall on WinXP also 786 * needs to be kept-alive, otherwise incoming packets will be dropped. 787 * So because of this, now keep-alive is always enabled for UDP, 788 * regardless of whether STUN is enabled or not. 789 * 790 * Note that this applies only for UDP. For TCP/TLS, the keep-alive 791 * is done by the transport layer. 783 792 */ 784 if ( pjsua_var.stun_srv.ipv4.sin_family == 0 ||793 if (/*pjsua_var.stun_srv.ipv4.sin_family == 0 ||*/ 785 794 acc->cfg.ka_interval == 0 || 786 795 param->rdata->tp_info.transport->key.type != PJSIP_TRANSPORT_UDP)
Note: See TracChangeset
for help on using the changeset viewer.