summaryrefslogtreecommitdiffstats
path: root/chan_lcr.h
diff options
context:
space:
mode:
authorSuper User2008-05-18 19:04:35 +0200
committerSuper User2008-05-18 19:04:35 +0200
commit58b134cb12ac8526321da6e270c93b9d0e78a3e0 (patch)
treef8bc959448a6bcd9ce08eae7c84b80872e15a7d8 /chan_lcr.h
parentwork on chan_lcr (diff)
downloadlcr-58b134cb12ac8526321da6e270c93b9d0e78a3e0.tar.gz
lcr-58b134cb12ac8526321da6e270c93b9d0e78a3e0.tar.xz
lcr-58b134cb12ac8526321da6e270c93b9d0e78a3e0.zip
lcr work (soon done :)
modified: Makefile modified: bchannel.c modified: chan_lcr.c modified: chan_lcr.h modified: dss1.cpp modified: todo.txt
Diffstat (limited to 'chan_lcr.h')
-rw-r--r--chan_lcr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chan_lcr.h b/chan_lcr.h
index 87a493f..2388800 100644
--- a/chan_lcr.h
+++ b/chan_lcr.h
@@ -16,6 +16,8 @@ struct chan_call {
int state; /* current call state CHAN_LCR_STATE */
unsigned long ref; /* callref for this channel */
void *ast; /* current asterisk channel */
+ int pbx_started;
+ /* indicates if pbx que is available */
struct bchannel *bchannel;
/* reference to bchannel, if set */
int cause, location;
@@ -28,6 +30,8 @@ struct chan_call {
/* current ID or 0 */
struct chan_call *bridge_call;
/* remote instance or NULL */
+ int pipe[2];
+ /* pipe for receive data */
};
enum {
@@ -82,3 +86,7 @@ enum {
};
+#define CERROR(call, ast, arg...) chan_lcr_log(LOG_ERROR, call, ast, ##arg)
+#define CDEBUG(call, ast, arg...) chan_lcr_log(LOG_DEBUG, call, ast, ##arg)
+void chan_lcr_log(int type, struct chan_call *call, struct ast_channel *ast, const char *fmt, ...);
+