Opened 16 years ago

Closed 16 years ago

#615 closed defect (fixed)

Error adding new buddy in the on_incoming_subscribe() callback (thanks Joseph Maiquez for reporting the error)

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


Calling pjsua_buddy_add() in the on_incoming_subscribe() callback will always return error on release mode, and it will raise assertion on debug mode. This is because internally pjsua will refresh all subscriptions when pjsua_buddy_add() is called, and it will try to refresh the new subscription (on which the on_incoming_subscribe() callback is called) which state is still NULL.

Thanks Joseph Maiquez for reporting this problem.

Change History (1)

comment:1 Changed 16 years ago by bennylp

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

Fixed in r2264

Note: See TracTickets for help on using tickets.