File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ import 'logger.dart';
14
14
15
15
const MIN_REGISTER_EXPIRES = 10 ; // In seconds.
16
16
17
+ class UnHandledResponse {
18
+ var status_code;
19
+ var reason_phrase;
20
+ UnHandledResponse (this .status_code, this .reason_phrase);
21
+ }
22
+
17
23
class Registrator {
18
24
UA _ua;
19
25
Transport _transport;
@@ -127,11 +133,11 @@ class Registrator {
127
133
EventManager localEventHandlers = EventManager ();
128
134
localEventHandlers.on (EventOnRequestTimeout (),
129
135
(EventOnRequestTimeout value) {
130
- this ._registrationFailure (null , DartSIP_C .causes.REQUEST_TIMEOUT );
136
+ this ._registrationFailure (UnHandledResponse ( 408 , DartSIP_C .causes. REQUEST_TIMEOUT ) , DartSIP_C .causes.REQUEST_TIMEOUT );
131
137
});
132
138
localEventHandlers.on (EventOnTransportError (),
133
139
(EventOnTransportError value) {
134
- this ._registrationFailure (null , DartSIP_C .causes.CONNECTION_ERROR );
140
+ this ._registrationFailure (UnHandledResponse ( 500 , DartSIP_C .causes. CONNECTION_ERROR ) , DartSIP_C .causes.CONNECTION_ERROR );
135
141
});
136
142
localEventHandlers.on (EventOnAuthenticated (), (EventOnAuthenticated value) {
137
143
this ._cseq += 1 ;
You can’t perform that action at this time.
0 commit comments