Skip to content

Commit

Permalink
Fire 'progress' (originator = local) when receiving an incoming call.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Sep 22, 2014
1 parent 880c3e0 commit c9e8764
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/RTCSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ RTCSession.prototype.init_incoming = function(request) {
* SDP Offer is valid. Fire UA newRTCSession
*/
function() {
request.reply(180, null, ['Contact: ' + self.contact]);
self.status = C.STATUS_WAITING_FOR_ANSWER;

// Set userNoAnswerTimer
Expand All @@ -904,7 +903,16 @@ RTCSession.prototype.init_incoming = function(request) {
);
}

// Fire 'newRTCSession' event.
self.newRTCSession('remote', request);

// Reply 180.
request.reply(180, null, ['Contact: ' + self.contact]);

// Fire 'progress' event.
// TODO: Document that 'response' field in 'progress' event is null for
// incoming calls.
self.progress('local', null);
},
/*
* onFailure
Expand Down

0 comments on commit c9e8764

Please sign in to comment.