Skip to content

Commit 7adc106

Browse files
committed
Update code
1 parent 147d176 commit 7adc106

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/SipRtcMgr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ void SipRtcMgr::StartIvr(const std::string&strRtmAccount, const std::string&strS
107107
rtm_service_ = ARM::createRtmService();
108108
rtm_service_->initialize(str_rtc_rtm_app_id_.c_str(), this);
109109
rtm_service_->setLogFile("./sip_rtm.log");
110-
rtm_service_->login(NULL, strRtmAccount.c_str());
110+
int ret = rtm_service_->login(NULL, strRtmAccount.c_str());
111+
printf("RtmService login: %d\r\n", ret);
111112

112113
rtm_call_mgr_ = rtm_service_->getRtmCallManager(this);
113114

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main(int argc, char*argv[])
6161
if (conf.GetIntVal("proxy", "on") != 0) {// SipProxy - 打开
6262
std::string strProxyAcc = conf.GetValue("proxy", "account");
6363
std::string strProxyPwd = conf.GetValue("proxy", "pwd");
64-
sipRtcMgr.StartSipProxy(strSipSvrIp, strProxyAcc, strProxyPwd);
64+
sipRtcMgr.StartSipProxy(strSvr, strProxyAcc, strProxyPwd);
6565
}
6666
}
6767

0 commit comments

Comments
 (0)