From 374ffd2e0a0507e0e640b9b2f7bf774f47faf9e0 Mon Sep 17 00:00:00 2001 From: makstheimba Date: Thu, 16 Sep 2021 16:46:24 +0300 Subject: [PATCH] add an ability to send custom info --- lib/src/sip_ua_helper.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/sip_ua_helper.dart b/lib/src/sip_ua_helper.dart index d9dffa49..19eb0959 100644 --- a/lib/src/sip_ua_helper.dart +++ b/lib/src/sip_ua_helper.dart @@ -432,6 +432,11 @@ class Call { _session.sendDTMF(tones, options); } + void sendInfo(String contentType, String body, Map options) { + assert(_session != null, 'ERROR(sendInfo): rtc session is invalid'); + _session.sendInfo(contentType, body, options); + } + String get remote_display_name { assert(_session != null, 'ERROR(get remote_identity): rtc session is invalid!');