|
|
@ -1540,12 +1540,14 @@ struct ast_channel *ast_request(char *type, int format, void *data)
|
|
|
|
c = chan->requester(type, capabilities, data);
|
|
|
|
c = chan->requester(type, capabilities, data);
|
|
|
|
if (c) {
|
|
|
|
if (c) {
|
|
|
|
// ast_device_state_changed(c->name);
|
|
|
|
// ast_device_state_changed(c->name);
|
|
|
|
manager_event(EVENT_FLAG_CALL, "Newchannel",
|
|
|
|
if (c->_state == AST_STATE_DOWN) {
|
|
|
|
"Channel: %s\r\n"
|
|
|
|
manager_event(EVENT_FLAG_CALL, "Newchannel",
|
|
|
|
"State: %s\r\n"
|
|
|
|
"Channel: %s\r\n"
|
|
|
|
"Callerid: %s\r\n"
|
|
|
|
"State: %s\r\n"
|
|
|
|
"Uniqueid: %s\r\n",
|
|
|
|
"Callerid: %s\r\n"
|
|
|
|
c->name, ast_state2str(c->_state), c->callerid ? c->callerid : "<unknown>", c->uniqueid);
|
|
|
|
"Uniqueid: %s\r\n",
|
|
|
|
|
|
|
|
c->name, ast_state2str(c->_state), c->callerid ? c->callerid : "<unknown>", c->uniqueid);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return c;
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
}
|
|
|
|