Ticket #339 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Respond correctly to incoming INVITE/re-INVITE without offer and receive answer in ACK

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.8.0
Component: pjsip Version: trunk
Keywords: Cc:

Description

When an INVITE/re-INVITE is received without offer, pjsip should generate offer in 200/OK response and prepare to receive answer in ACK.

Change History

Changed 3 years ago by bennylp

  • status changed from new to closed
  • resolution set to fixed

Done in r1377

Changed 3 years ago by bennylp

More in r1379:

  1. introducing new invite callback, on_create_offer(), which will be called when invite session receives re-INVITE without offer. This callback can be used by application to generate a fresh, new offer in the 200/OK response. This callback is optional; if application does not implement this, the invite session will just send the currently active local SDP in the 200/OK response.
  2. ignore extraneous SDP in ACK request (scenario: offer/answer has been complete with INVITE and 200/OK response, but remote still sends SDP in ACK request).
  3. handle the case when outgoing re-INVITE fails. In this case, the local offer needs to be cancelled in SDP negotiator.
  4. also added the sample application used to test offer/answer scenarios.
Note: See TracTickets for help on using tickets.