From 3b814e029295f4c89446c83db45f427a1bb3bc1b Mon Sep 17 00:00:00 2001 From: Yun Liu <yun@yun.(none)> Date: Tue, 14 Oct 2008 10:16:27 -0400 Subject: [PATCH] Removing warnings and add DTMF receiving part --- src/managerimpl.cpp | 1 - src/useragent.cpp | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp index bc16f89cf0..d349b09d54 100644 --- a/src/managerimpl.cpp +++ b/src/managerimpl.cpp @@ -2249,7 +2249,6 @@ ManagerImpl::loadAccountMap() std::string accountType; Account* tmpAccount; std::string port; - unsigned int iPort; TokenList::iterator iter = sections.begin(); while(iter != sections.end()) { diff --git a/src/useragent.cpp b/src/useragent.cpp index 6056be7259..2fdc3ab904 100644 --- a/src/useragent.cpp +++ b/src/useragent.cpp @@ -941,7 +941,12 @@ void UserAgent::call_on_tsx_changed(pjsip_inv_session *inv, pjsip_transaction *t pjsip_msg *msg; _debug("UserAgent: TSX Changed! The tsx->state is %d; tsx->role is %d; code is %d; method id is %.*s.\n", - tsx->state, tsx->role, tsx->status_code, tsx->method.name.slen, tsx->method.name.ptr); + tsx->state, tsx->role, tsx->status_code, (int)tsx->method.name.slen, tsx->method.name.ptr); + + if(pj_strcmp2(&tsx->method.name, "INFO") == 0) { + // Receive a INFO message, ingore it! + return; + } //Retrieve the body message rdata = e->body.tsx_state.src.rdata; -- GitLab