mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user