Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#339 closed enhancement (fixed)

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:
Backport to 1.x milestone: Backported:

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 (2)

comment:1 Changed 17 years ago by bennylp

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

Done in r1377

comment:2 Changed 17 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.