File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -881,7 +881,6 @@ RTCSession.prototype.init_incoming = function(request) {
881881 * SDP Offer is valid. Fire UA newRTCSession
882882 */
883883 function ( ) {
884- request . reply ( 180 , null , [ 'Contact: ' + self . contact ] ) ;
885884 self . status = C . STATUS_WAITING_FOR_ANSWER ;
886885
887886 // Set userNoAnswerTimer
@@ -904,7 +903,16 @@ RTCSession.prototype.init_incoming = function(request) {
904903 ) ;
905904 }
906905
906+ // Fire 'newRTCSession' event.
907907 self . newRTCSession ( 'remote' , request ) ;
908+
909+ // Reply 180.
910+ request . reply ( 180 , null , [ 'Contact: ' + self . contact ] ) ;
911+
912+ // Fire 'progress' event.
913+ // TODO: Document that 'response' field in 'progress' event is null for
914+ // incoming calls.
915+ self . progress ( 'local' , null ) ;
908916 } ,
909917 /*
910918 * onFailure
You can’t perform that action at this time.
0 commit comments