Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#869 closed enhancement (fixed)

Make various event/presence subscription time settings configurable (thanks Johan Lantz for the suggestion)

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

Description (last modified by bennylp)

Export the following internal macros so that they are overridable from config_site.h:

  • PJSIP_PRES_DEFAULT_EXPIRES (was PRES_DEFAULT_EXPIRES):
    Specify the default expiration time for presence event subscription, for both client and server subscription. For client subscription, application can override this by specifying positive non-zero value in "expires" parameter when calling #pjsip_pres_initiate(). For server subscription, we would take the expiration value from the Expires header sent by client in the SUBSCRIBE request if the header exists and its value is less than this setting, otherwise this setting will be used.
  • PJSIP_EVSUB_TIME_UAC_REFRESH (was TIME_UAC_REFRESH):
    Specify the time (in seconds) to send SUBSCRIBE to refresh client subscription before the actual interval expires.
  • PJSIP_EVSUB_TIME_UAC_TERMINATE (was TIME_UAC_TERMINATE):
    Specify the time (in seconds) to wait for the final NOTIFY from the server after client has sent un-SUBSCRIBE request.
  • PJSIP_EVSUB_TIME_UAC_WAIT_NOTIFY (was TIME_UAC_WAIT_NOTIFY):
    Specify the time (in seconds) for client subscription to wait for another NOTIFY from the server, if it has rejected the last NOTIFY with non-2xx final response (such as 401). If further NOTIFY is not received within this period, the client will unsubscribe.
  • PJSIP_PUBLISHC_DELAY_BEFORE_REFRESH:
    Specify the time (in seconds) to send PUBLISH to refresh client publication before the actual interval expires.

Change History (5)

comment:1 Changed 15 years ago by bennylp

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

Done in r2730

comment:2 Changed 15 years ago by bennylp

  • Description modified (diff)

comment:3 Changed 15 years ago by bennylp

In r2754:

  • added PJSIP_PUBLISHC_DELAY_BEFORE_REFRESH:
    Specify the time (in seconds) to send PUBLISH to refresh client publication before the actual interval expires.

comment:4 Changed 15 years ago by bennylp

  • Description modified (diff)

comment:5 Changed 15 years ago by bennylp

  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.