File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ class Call {
428
428
_session.sendDTMF (tones);
429
429
}
430
430
431
- String get display_name {
431
+ String get remote_display_name {
432
432
assert (_session != null ,
433
433
'ERROR(get remote_identity): rtc session is invalid!' );
434
434
if (_session.remote_identity != null &&
@@ -449,6 +449,17 @@ class Call {
449
449
return '' ;
450
450
}
451
451
452
+ String get local_identity {
453
+ assert (
454
+ _session != null , 'ERROR(get local_identity): rtc session is invalid!' );
455
+ if (_session.local_identity != null &&
456
+ _session.local_identity.uri != null &&
457
+ _session.local_identity.uri.user != null ) {
458
+ return _session.local_identity.uri.user;
459
+ }
460
+ return '' ;
461
+ }
462
+
452
463
String get direction {
453
464
assert (_session != null , 'ERROR(get direction): rtc session is invalid!' );
454
465
if (_session.direction != null ) {
You can’t perform that action at this time.
0 commit comments