Clear active notification requests when deleting the MGCP connection.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4404 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-05-24 12:39:27 +00:00
parent b8794261a9
commit ca8e08cce5
1 changed files with 8 additions and 0 deletions

View File

@ -1437,6 +1437,14 @@ void MGCPCircuit::clearConn(bool force)
}
if (!force)
mm->params.addParam("C",m_callId);
if (mySpan()->rqntStr() && (mySpan()->rqntType() != MGCPSpan::RqntNone) && !(fxs() || fxo())) {
if (mySpan()->rqntEmbed()) {
mm->params.addParam("X",m_notify);
mm->params.addParam("R","");
}
else
sendRequest(0,"");
}
if (mySpan()->bearer() != m_gwFormat) {
m_gwFormat = mySpan()->bearer();
m_gwFormatChanged = true;