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:
parent
0b1edfa02e
commit
5fa6ff5686
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue