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: http://svn.digium.com/svn/asterisk/trunk@224491 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
551392732a
commit
e04cdc660e
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -75,6 +75,7 @@ struct sig_pri_callback {
|
|||
void (* const set_callerid)(void *pvt, const struct ast_party_caller *caller);
|
||||
void (* const set_dnid)(void *pvt, const char *dnid);
|
||||
void (* const set_rdnis)(void *pvt, const char *rdnis);
|
||||
void (* const queue_control)(void *pvt, int subclass);
|
||||
};
|
||||
|
||||
#define NUM_DCHANS 4 /*!< No more than 4 d-channels */
|
||||
|
|
Reference in New Issue