Ticket #407 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Keep alive for UDP transport

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.8.0
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Add keep-alive mechanism for UDP transports in order to reduce registration interval.

Change History

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

Done in r1536:

  • added ka_interval and ka_data setting in pjsua_acc_config. Default is to send CR-LF keep-alive, with interval set to 15 seconds.
  • Keep-alive is sent only for UDP transports, and only when STUN is used.
  • The keep-alive packets are sent to the registrar.
  • Default registration interval (PJSUA_REG_INTERVAL) is now extended to 5 minutes from 55 seconds.

comment:2 Changed 10 years ago by bennylp

Keep-alive is always enabled now regardless whether STUN is used (ticket #522)

Note: See TracTickets for help on using tickets.