Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#407 closed enhancement (fixed)

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 (2)

comment:1 Changed 16 years ago by bennylp

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

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 16 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.