Merged revisions 54066 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r54066 | russell | 2007-02-12 11:58:43 -0600 (Mon, 12 Feb 2007) | 4 lines

- 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/trunk@54067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-02-12 18:01:15 +00:00
parent e413063fc3
commit 2a5477b35e
4 changed files with 54 additions and 32 deletions

View File

@@ -3153,7 +3153,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:
@@ -3296,7 +3296,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: