Fixed bug: when sending ISDN CONNECT message: check if the pointer to the list of parameters is valid before trying to access it.

git-svn-id: http://voip.null.ro/svn/yate@1746 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-03-06 08:16:00 +00:00
parent ce392d6aff
commit a028389bc2
1 changed files with 4 additions and 2 deletions

View File

@ -1422,8 +1422,10 @@ bool ISDNQ931Call::sendConnect(SignallingMessage* sigMsg)
m_channelIDSent = true;
}
// Progress indicator
m_data.m_progress = sigMsg->params().getValue("call-progress");
m_data.processProgress(msg,true,&q931()->parserData());
if (sigMsg) {
m_data.m_progress = sigMsg->params().getValue("call-progress");
m_data.processProgress(msg,true,&q931()->parserData());
}
m_conTimer.start();
return q931()->sendMessage(msg);
}