From 8a13712e45e41c4d413200e38a96898a4f1a79ab Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 26 Oct 2004 22:25:43 +0000 Subject: 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 --- channels/chan_phone.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'channels/chan_phone.c') 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 #include #include +#include #include #include #include @@ -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; } -- cgit v1.2.3