add xferext command to sendmsg parser so you can send a list of instructions to a channel and build and extension and transfer to it from esl

This commit is contained in:
Anthony Minessale
2011-08-31 15:33:53 -05:00
parent e1a6fd27e0
commit 996b304019
4 changed files with 60 additions and 1 deletions

View File

@@ -93,6 +93,12 @@ static void switch_core_standard_on_routing(switch_core_session_t *session)
char *dp[25];
int argc, x, count = 0;
if ((extension = switch_channel_get_queued_extension(session->channel))) {
switch_channel_set_caller_extension(session->channel, extension);
switch_channel_set_state(session->channel, CS_EXECUTE);
goto end;
}
if (!zstr(caller_profile->dialplan)) {
if ((dpstr = switch_core_session_strdup(session, caller_profile->dialplan))) {
expanded = switch_channel_expand_variables(session->channel, dpstr);