Skip to content
Permalink
Browse files

Fire 'progress' (originator = local) when receiving an incoming call.

  • Loading branch information
ibc committed Sep 22, 2014
1 parent 880c3e0 commit c9e876496ae9f8d8783cedde9c68180ba18cf75a
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/RTCSession.js
@@ -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
@@ -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

0 comments on commit c9e8764

Please sign in to comment.
You can’t perform that action at this time.