Opened 12 years ago

Last modified 12 years ago

#1044 closed enhancement

Re-register automatically on TCP/TLS transport disconnection — at Version 2

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

Description (last modified by nanang)

PJSUA-LIB should re-register automatically once it detects that the underlying TCP/TLS transport connection has been disconnected.

Thanks Klaus Darillion and Fabio Pietrosanti for the request.

Specifications:

  1. Network status will be monitored by application, so in the case of IP address changed, application should be better restarting pjsua.
  2. Add new field in pjsua_acc_config, i.e: reg_retry_interval to configure the interval of auto re-register when registration failed of timeout or transport disconnection.
  3. Add new field in pjsua_acc, i.e: route_down, a flag to specify whether the transport used for contacting the first route of the account is down.
    • If this flag is set, sending SIP messaging via PJSUA-LIB API (except the auto re-register) will be blocked (by returning an error code) immediately.
    • This flag will be set/unset automatically by PJSUA-LIB, i.e: set in the initialization or registration success, and unset in transport disconnected.
    • This flag is only usable when account has route-set (global proxy or account specific proxy is set).

Change History (2)

comment:1 Changed 12 years ago by bennylp

  • Milestone changed from Known-Issues-and-Ideas to release-1.6

comment:2 Changed 12 years ago by nanang

  • Description modified (diff)
Note: See TracTickets for help on using tickets.