aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-19 18:14:56 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-19 18:14:56 +0000
commit50b88d15e198df9808a4c8d2a03bccf655fc5aaa (patch)
tree57cf57eac1df2b3567f56c04ec2644889090b868 /channels/chan_zap.c
parentb632052987c594f6e3f4a9150d4ca0f874d95f5c (diff)
(closes issue #11864)
Reported by: julianjm Patches: chan_zap.c-1.4-devicestate-v1.diff uploaded by julianjm (license 99) Patch fixes problem of device state incorrectly reporting idle before PBX answers incoming call on FXO channel. Device status is updated now during new channel creation. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103818 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 1fe7c95f3..937730866 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -98,6 +98,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/smdi.h"
#include "asterisk/astobj.h"
#include "asterisk/event.h"
+#include "asterisk/devicestate.h"
#define SMDI_MD_WAIT_TIMEOUT 1500 /* 1.5 seconds */
@@ -5990,6 +5991,8 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
/* Configure the new channel jb */
ast_jb_configure(tmp, &global_jbconf);
+ ast_device_state_changed_literal(tmp->name);
+
for (v = i->vars ; v ; v = v->next)
pbx_builtin_setvar_helper(tmp, v->name, v->value);