Add missing API function to sig_ss7: sig_ss7_fixup().

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@269308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2010-06-09 17:06:41 +00:00
parent 6c6260d4c7
commit 717570899c
3 changed files with 32 additions and 7 deletions

View File

@@ -1434,6 +1434,23 @@ int sig_ss7_answer(struct sig_ss7_chan *p, struct ast_channel *ast)
return res;
}
/*!
* \brief Fix up a channel: If a channel is consumed, this is called. Basically update any ->owner links.
* \since 1.8
*
* \param oldchan Old channel pointer to replace.
* \param newchan New channel pointer to set.
* \param pchan Signaling private structure pointer.
*
* \return Nothing
*/
void sig_ss7_fixup(struct ast_channel *oldchan, struct ast_channel *newchan, struct sig_ss7_chan *pchan)
{
if (pchan->owner == oldchan) {
pchan->owner = newchan;
}
}
/*!
* \brief SS7 answer channel.
* \since 1.8