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: https://origsvn.digium.com/svn/asterisk/trunk@103818
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#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 */
/* 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);