(closes issue #11864)
[asterisk/asterisk.git] / channels / chan_zap.c
index 1fe7c95..9377308 100644 (file)
@@ -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);