update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6522 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e4cace9cb9
commit
6ef6cbaf7a
|
@ -1470,6 +1470,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
|
||||||
|
|
||||||
if (dest) {
|
if (dest) {
|
||||||
const char *var;
|
const char *var;
|
||||||
|
char *d_dest = NULL;
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
|
|
||||||
channel = switch_core_session_get_channel(session);
|
channel = switch_core_session_get_channel(session);
|
||||||
|
@ -1477,9 +1478,15 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
|
||||||
timelimit = atoi(var);
|
timelimit = atoi(var);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (switch_ivr_originate(session, new_session, &cause, dest, timelimit, NULL, NULL, NULL, NULL) == SWITCH_STATUS_SUCCESS) {
|
d_dest = switch_channel_expand_variables(channel, dest);
|
||||||
|
|
||||||
|
if (switch_ivr_originate(session, new_session, &cause, d_dest, timelimit, NULL, NULL, NULL, NULL) == SWITCH_STATUS_SUCCESS) {
|
||||||
switch_core_session_rwunlock(*new_session);
|
switch_core_session_rwunlock(*new_session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (d_dest != dest) {
|
||||||
|
switch_safe_free(d_dest);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml) {
|
if (xml) {
|
||||||
|
|
Loading…
Reference in New Issue