diff options
author | Mark Spencer <markster@digium.com> | 2004-10-26 22:25:43 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-26 22:25:43 +0000 |
commit | 8a13712e45e41c4d413200e38a96898a4f1a79ab (patch) | |
tree | 8cc9a36b9066a72d36a623a08bb8779286caedf2 /channels/chan_phone.c | |
parent | 9efbc4630131838017b80d407fab2c3594c0a924 (diff) |
Pass concept of status back, permit "leaveempty" to work with static agents who are not loggedon (bug #2719)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_phone.c')
-rwxr-xr-x | channels/chan_phone.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index b91b3657f..b81c5b04d 100755 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -23,6 +23,7 @@ #include <asterisk/options.h> #include <asterisk/utils.h> #include <asterisk/callerid.h> +#include <asterisk/causes.h> #include <sys/socket.h> #include <sys/time.h> #include <errno.h> @@ -1023,7 +1024,7 @@ static struct phone_pvt *mkif(char *iface, int mode, int txgain, int rxgain) return tmp; } -static struct ast_channel *phone_request(const char *type, int format, void *data) +static struct ast_channel *phone_request(const char *type, int format, void *data, int *cause) { int oldformat; struct phone_pvt *p; @@ -1047,7 +1048,8 @@ static struct ast_channel *phone_request(const char *type, int format, void *dat if (!p->owner) { tmp = phone_new(p, AST_STATE_DOWN, p->context); break; - } + } else + *cause = AST_CAUSE_BUSY; } p = p->next; } |