[svn-commits] tilghman: trunk r94771 - /trunk/res/res_agi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 24 20:57:58 CST 2007


Author: tilghman
Date: Mon Dec 24 20:57:58 2007
New Revision: 94771

URL: http://svn.digium.com/view/asterisk?view=rev&rev=94771
Log:
Add channel thread ID to the information passed to AGI.
Reported by: dror99
Patch by: tilghman
(Closes issue #11162)

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=94771&r1=94770&r2=94771
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Mon Dec 24 20:57:58 2007
@@ -32,6 +32,7 @@
 #include <sys/time.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
+#include <pthread.h>
 
 #include "asterisk/paths.h"	/* use many ast_config_AST_*_DIR */
 #include "asterisk/network.h"
@@ -392,6 +393,7 @@
 
 	/* User information */
 	ast_agi_fdprintf(chan, fd, "agi_accountcode: %s\n", chan->accountcode ? chan->accountcode : "");
+	ast_agi_fdprintf(chan, fd, "agi_threadid: %ld\n", (long)pthread_self());
 
 	/* Send any parameters to the fastagi server that have been passed via the agi application */
 	/* Agi application paramaters take the form of: AGI(/path/to/example/script|${EXTEN}) */




More information about the svn-commits mailing list