From a616abd9b740e74eb7aea29cb692ca86ba1f7d7a Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 27 八月 2024 15:24:54 +0800
Subject: [PATCH] 增加铃声功能

---
 HDLLinPhoneSDK(OC)/HDLLinPhoneSDK/HDLLinPhoneSDK.m |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/HDLLinPhoneSDK.m" "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/HDLLinPhoneSDK.m"
index e6d66dc..54e503e 100644
--- "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/HDLLinPhoneSDK.m"
+++ "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/HDLLinPhoneSDK.m"
@@ -42,8 +42,12 @@
 //    [NSNotificationCenter.defaultCenter remo];
 }
 
--(void)login:(NSString*)username password:(NSString*)pwd domain:(NSString*) domain{
-    [HDLLinphoneManager.instance login:username password:pwd domain:domain];
+//-(void)login:(NSString*)username password:(NSString*)pwd domain:(NSString*) domain{
+//    [HDLLinphoneManager.instance login:username password:pwd domain:domain];
+//}
+
+-(void)login:(NSString*)username password:(NSString*)pwd domain:(NSString*) domain connectType:(NSString*)connectType{
+    [HDLLinphoneManager.instance login:username password:pwd domain:domain  connectType:connectType];
 }
 
 - (void)registrationUpdate:(NSNotification *)notif {
@@ -225,6 +229,14 @@
     [self toLinphoneIntercomVC:titleName  deviceType:HDLLPType_HDLSR userName:username];
 }
 
+-(void)hideIntercomeVC{
+    if ([[HDLLinPhoneCommon topMostController] isKindOfClass:[HDLLinphoneIntercomVC class]]) {
+        [[HDLLinPhoneCommon topMostController] dismissViewControllerAnimated:YES completion:^{
+            
+        }];
+    }
+}
+
 -(void)toLinphoneIntercomVC:(NSString*)titleName deviceType:(HDLLPType)deviceType userName:(NSString *)userName{
     HDLLinphoneIntercomVC *vc=[[HDLLinphoneIntercomVC alloc]init];
 //    vc.CallId=callId;

--
Gitblit v1.8.0