always use default state handlers in addition to passed arg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15250 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d7787bb072
commit
d2bf2022d6
|
@ -1788,14 +1788,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
|||
}
|
||||
}
|
||||
|
||||
if (!table) {
|
||||
table = &originate_state_handlers;
|
||||
}
|
||||
|
||||
if (table) {
|
||||
switch_channel_add_state_handler(originate_status[i].peer_channel, table);
|
||||
}
|
||||
|
||||
switch_channel_add_state_handler(originate_status[i].peer_channel, &originate_state_handlers);
|
||||
|
||||
if ((flags & SOF_NOBLOCK) && originate_status[i].peer_session) {
|
||||
status = SWITCH_STATUS_SUCCESS;
|
||||
*bleg = originate_status[i].peer_session;
|
||||
|
|
Loading…
Reference in New Issue