mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
- Add the ability to register a callback to monitor state changes in an
asynchronous dial operation. - Rename the various references to "status" to "state" in the dial API git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@54066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3143,7 +3143,7 @@ static void *sla_thread(void *data)
|
||||
ast_mutex_t cond_lock;
|
||||
ast_cond_t cond;
|
||||
|
||||
switch ((dial_res = ast_dial_status(station_ref->station->dial))) {
|
||||
switch ((dial_res = ast_dial_state(station_ref->station->dial))) {
|
||||
case AST_DIAL_RESULT_HANGUP:
|
||||
case AST_DIAL_RESULT_INVALID:
|
||||
case AST_DIAL_RESULT_FAILED:
|
||||
@@ -3286,7 +3286,7 @@ static void *dial_trunk(void *data)
|
||||
|
||||
for (;;) {
|
||||
unsigned int done = 0;
|
||||
switch ((dial_res = ast_dial_status(dial))) {
|
||||
switch ((dial_res = ast_dial_state(dial))) {
|
||||
case AST_DIAL_RESULT_ANSWERED:
|
||||
trunk->chan = ast_dial_answered(dial);
|
||||
case AST_DIAL_RESULT_HANGUP:
|
||||
|
@@ -168,7 +168,7 @@ static int page_exec(struct ast_channel *chan, void *data)
|
||||
struct ast_dial *dial = dials[i];
|
||||
|
||||
/* If the dial is already answered, then they will/should get kicked out by Meetme */
|
||||
if (ast_dial_status(dial) != AST_DIAL_RESULT_ANSWERED)
|
||||
if (ast_dial_state(dial) != AST_DIAL_RESULT_ANSWERED)
|
||||
ast_dial_join(dial);
|
||||
|
||||
/* Hangup all channels */
|
||||
|
Reference in New Issue
Block a user