[asterisk-commits] file: trunk r224491 - in /trunk/channels: sig_pri.c sig_pri.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 19 09:32:12 CDT 2009


Author: file
Date: Mon Oct 19 09:32:08 2009
New Revision: 224491

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=224491
Log:
Add a callback to sig_pri which is called when sig_pri is going to queue a control frame on a channel.

Modified:
    trunk/channels/sig_pri.c
    trunk/channels/sig_pri.h

Modified: trunk/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sig_pri.c?view=diff&rev=224491&r1=224490&r2=224491
==============================================================================
--- trunk/channels/sig_pri.c (original)
+++ trunk/channels/sig_pri.c Mon Oct 19 09:32:08 2009
@@ -654,6 +654,10 @@
 static void pri_queue_control(struct sig_pri_chan *p, int subclass, struct sig_pri_pri *pri)
 {
 	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);

Modified: trunk/channels/sig_pri.h
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sig_pri.h?view=diff&rev=224491&r1=224490&r2=224491
==============================================================================
--- trunk/channels/sig_pri.h (original)
+++ trunk/channels/sig_pri.h Mon Oct 19 09:32:08 2009
@@ -75,6 +75,7 @@
 	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 */




More information about the asterisk-commits mailing list