Fill CallingPartyAddress.pointcode parameter with local sccp pointcode if requested by user.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4621 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
andrei 2011-09-19 12:13:24 +00:00
parent 0b1edfa02e
commit 5fa6ff5686
1 changed files with 2 additions and 0 deletions

View File

@ -3098,6 +3098,8 @@ int SS7SCCP::sendMessage(DataBlock& data, const NamedList& params)
if (hopCounter < 1 || hopCounter > 15) // HopCounter is an mandatory fixed length parameter in XUDT
sccpMsg->params().setParam(YSTRING("HopCounter"),String(m_hopCounter));
}
if (params.getBoolValue(YSTRING("CallingPartyAddress.pointcode"),false) && m_localPointCode)
sccpMsg->params().setParam("CallingPartyAddress.pointcode",String(getPackedPointCode()));
// Avoid sending optional parameters that aren't specified by protocol
if (sccpMsg->type() == SS7MsgSCCP::XUDT || sccpMsg->type() == SS7MsgSCCP::LUDT)
checkSCLCOptParams(sccpMsg);