[Asterisk-cvs] asterisk/apps app_sayunixtime.c,1.3,1.4
markster at lists.digium.com
markster at lists.digium.com
Thu Nov 20 23:00:19 CST 2003
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv15867/apps
Modified Files:
app_sayunixtime.c
Log Message:
Answer if channel isn't up (bug #486)
Index: app_sayunixtime.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_sayunixtime.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_sayunixtime.c 13 Oct 2003 12:23:31 -0000 1.3
+++ app_sayunixtime.c 21 Nov 2003 05:26:39 -0000 1.4
@@ -82,7 +82,11 @@
}
}
- res = ast_say_date_with_format(chan, unixtime, AST_DIGIT_ANY, chan->language, format, zone);
+ if (chan->_state != AST_STATE_UP) {
+ res = ast_answer(chan);
+ }
+ if (!res)
+ res = ast_say_date_with_format(chan, unixtime, AST_DIGIT_ANY, chan->language, format, zone);
LOCAL_USER_REMOVE(u);
return res;
More information about the svn-commits
mailing list