Add a callback to sig_pri which is called when sig_pri is going to queue a control frame on a channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@224491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2009-10-19 14:32:08 +00:00
parent 8f9edddc27
commit fd9f9ab01e
2 changed files with 5 additions and 0 deletions

View File

@@ -655,6 +655,10 @@ static void pri_queue_control(struct sig_pri_chan *p, int subclass, struct sig_p
{
struct ast_frame f = {AST_FRAME_CONTROL, };
if (p->calls->queue_control) {
p->calls->queue_control(p->chan_pvt, subclass);
}
f.subclass = subclass;
pri_queue_frame(p, &f, pri);
}