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 {
428428 _session.sendDTMF (tones);
429429 }
430430
431- String get display_name {
431+ String get remote_display_name {
432432 assert (_session != null ,
433433 'ERROR(get remote_identity): rtc session is invalid!' );
434434 if (_session.remote_identity != null &&
@@ -449,6 +449,17 @@ class Call {
449449 return '' ;
450450 }
451451
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+
452463 String get direction {
453464 assert (_session != null , 'ERROR(get direction): rtc session is invalid!' );
454465 if (_session.direction != null ) {
You can’t perform that action at this time.
0 commit comments