add execute_on_pickup and api_on_pickup

This commit is contained in:
Anthony Minessale 2013-04-30 11:41:29 -05:00
parent 4ac76c7c57
commit 6923845033
1 changed files with 5 additions and 1 deletions

View File

@ -467,6 +467,10 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
switch_channel_set_flag(originate_status[i].peer_channel, CF_ORIGINATING);
switch_channel_answer(originate_status[i].peer_channel);
switch_channel_execute_on(originate_status[i].peer_channel, "execute_on_pickup");
switch_channel_api_on(originate_status[i].peer_channel, "api_on_pickup");
switch_core_session_rwunlock(old_session);
break;
}