Skip to content

Commit e3a3011

Browse files
committed
Exposed local_identity for Call.
1 parent 22efff5 commit e3a3011

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)