Ticket #574 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Add new API to know why the outgoing subscription request is terminated

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

Description

Add new API to know why the outgoing subscription request is terminated (e.g. unauthorized, rejected, etc.)

Change History

comment:1 Changed 10 years ago by bennylp

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

In r2149:

  • Save the termination reason
  • Added API pjsip_evsub_get_termination_reason()
  • Support for delaying incoming subscription acceptance (e.g. to request user permission). Changes were made to support receiving subscription request or unsubscribe request while initial NOTIFY has not been sent.
  • Since user may specify custom state or termination reason, escape these parameters when encoding the header, just to be safe.
Note: See TracTickets for help on using tickets.