Reported by: dror99
Patch by: tilghman
(Closes issue #11162)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94771
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#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"
/* 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}) */