From 072bf5ad14c0430828cff305b5eaa53e6d881139 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Aug 2010 23:14:35 +0400 Subject: [PATCH] set network_addr of caller profile to signaling ip address. (requested by Steven Ayre) --- src/mod/endpoints/mod_h323/changes.txt | 1 + src/mod/endpoints/mod_h323/mod_h323.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_h323/changes.txt b/src/mod/endpoints/mod_h323/changes.txt index ff47780118..9dfda1e829 100644 --- a/src/mod/endpoints/mod_h323/changes.txt +++ b/src/mod/endpoints/mod_h323/changes.txt @@ -1,3 +1,4 @@ +set network_addr of caller profile to signaling ip address. (requested by Steven Ayre) move PTrace level set to FSH323EndPoint::Initialise partially apply patch from from Peter Olsson, Remove UnLock() when TryLock() failed and DEBUG_RTP_PACKETS directive. apply changes from mod_h323-patch.diff by Peter Olsson. diff --git a/src/mod/endpoints/mod_h323/mod_h323.cpp b/src/mod/endpoints/mod_h323/mod_h323.cpp index b4a4c76a4c..45a9043d3f 100644 --- a/src/mod/endpoints/mod_h323/mod_h323.cpp +++ b/src/mod/endpoints/mod_h323/mod_h323.cpp @@ -870,6 +870,9 @@ H323Connection::AnswerCallResponse FSH323Connection::OnAnswerCall(const PString switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE,"Called-Party-Number = %s\n",(const char*)called); } } + + PIPSocket::Address remote_network_addr; + GetSignallingChannel()->GetRemoteAddress().GetIpAddress(remote_network_addr); switch_caller_profile_t *caller_profile = switch_caller_profile_new(switch_core_session_get_pool(m_fsSession), NULL, @@ -880,7 +883,7 @@ H323Connection::AnswerCallResponse FSH323Connection::OnAnswerCall(const PString /** caller_id_name */ GetRemotePartyNumber(), /** caller_id_number */ - NULL, + remote_network_addr.AsString(), /** network addr */ NULL, /** ANI */