summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/astmanproxy.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/astmanproxy.h b/src/include/astmanproxy.h
index f5718aa..9bc103e 100644
--- a/src/include/astmanproxy.h
+++ b/src/include/astmanproxy.h
@@ -40,6 +40,7 @@ struct ast_server {
char ast_user[80];
char ast_pass[80];
char ast_events[10];
+ char use_ssl[5];
int status; /* TODO: have this mean something */
struct ast_server *next;
};
@@ -67,6 +68,8 @@ struct proxyconfig {
char logfile[80];
int retryinterval;
int maxretries;
+ int asteriskwritetimeout; /* ms to wait when writing to asteriskfor ast_carefulwrite */
+ int clientwritetimeout; /* ms to wait when writing to client ast_carefulwrite */
};
struct iohandler {
@@ -95,6 +98,12 @@ struct mansession {
struct ast_server *server;
struct proxy_user user;
char actionid[MAX_LEN];
+
+ /*! Authentication challenge */
+ char challenge[10];
+
+ /* Timeout for ast_carefulwrite() */
+ int writetimeout;
struct mansession *next;
};
@@ -123,3 +132,5 @@ int get_input(struct mansession *s, char *output);
int SetIOHandlers(struct mansession *s, char *ifmt, char *ofmt);
void destroy_session(struct mansession *s);
int connect_nonb(int sockfd, const struct sockaddr *saptr, socklen_t salen, int nsec);
+int ast_carefulwrite(int fd, char *s, int len, int timeoutms);
+extern void *SendError(struct mansession *s, char *errmsg);