Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#873 closed enhancement (fixed)

Include the parsed XML tuple in the pjsip_pres_status, and include it in the pjsua_buddy_info in PJSUA-LIB, in case the PIDF document contains other info that is needed by application (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)

Several enhancements on the presence body handling:

  • include the full parsed XML tuple in pjsip_pres_status structure, as it may contain additional information for the application
  • include pjsua_pres_status in pjsua_buddy_info so that this information is accessible by PJSUA-LIB application.
  • add timestamp info in the outgoing PIDF. There may be case when subscriber receives PIDF with multiple tuples, and in this case it can use the timestamp to decide which tuple to use.
  • also when we receive NOTIFY with empty body, notify the application about the event, keep the presentity status unchanged, but set the tuple pointer in pjsip_pres_status structure to NULL.

Change History (5)

comment:1 Changed 10 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 10 years ago by bennylp

  • Milestone changed from release-1.4 to release-1.3

comment:3 Changed 10 years ago by bennylp

  • Description modified (diff)
  • Summary changed from Include the parsed XML tuple in the pjsip_pres_status, and include it in the pjsua_buddy_info in PJSUA-LIB (thanks Johan Lantz for the suggestion) to Include the parsed XML tuple in the pjsip_pres_status, and include it in the pjsua_buddy_info in PJSUA-LIB, in case the PIDF document contains other info that is needed by application (thanks Johan Lantz for the suggestion)

comment:4 Changed 10 years ago by bennylp

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

Done in r2762:

  • implements all that are specified in the ticket description above
  • reduced memory usage in the session. Previously, memory will grow everytime presence subscription (server and client) is updated, and this memory will only be freed when the subscription is terminated

comment:5 Changed 10 years ago by nanang

In r2764:

  • Minor update: cleaned up compile warnings of undefined function.
Note: See TracTickets for help on using tickets.