Generate and apply the simplified "privacy" parameter.
git-svn-id: http://voip.null.ro/svn/yate@2992 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
455b6dbf81
commit
74f8eeb558
|
@ -690,6 +690,11 @@ SigChannel::SigChannel(SignallingEvent* event)
|
|||
plugin.copySigMsgParams(*m_route,event,¶ms);
|
||||
if (m_route->getBoolValue("overlapped") && !m_route->getValue("called"))
|
||||
m_route->setParam("called","off-hook");
|
||||
if (event->message()) {
|
||||
const String* pres = event->message()->params().getParam("callerpres");
|
||||
if (pres && (*pres == "restricted"))
|
||||
m_route->setParam("privacy",String::boolText(true));
|
||||
}
|
||||
}
|
||||
|
||||
// Construct an unstarted outgoing channel
|
||||
|
@ -803,7 +808,10 @@ bool SigChannel::startCall(Message& msg, SigTrunk* trunk)
|
|||
sigMsg->params().copyParam(msg,"format");
|
||||
sigMsg->params().copyParam(msg,"callernumtype");
|
||||
sigMsg->params().copyParam(msg,"callernumplan");
|
||||
sigMsg->params().copyParam(msg,"callerpres");
|
||||
if (msg.getValue("privacy") && msg.getBoolValue("privacy",true))
|
||||
sigMsg->params().addParam("callerpres","restricted");
|
||||
else
|
||||
sigMsg->params().copyParam(msg,"callerpres");
|
||||
sigMsg->params().copyParam(msg,"callerscreening");
|
||||
sigMsg->params().copyParam(msg,"callednumtype");
|
||||
sigMsg->params().copyParam(msg,"callednumplan");
|
||||
|
|
Loading…
Reference in New Issue