mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +00:00
OPENZAP-53/OPENZAP-52
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@666 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
282934f8a5
commit
908ed38915
@ -1012,7 +1012,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((*new_session = switch_core_session_request(openzap_endpoint_interface, pool)) != 0) {
|
if ((*new_session = switch_core_session_request(openzap_endpoint_interface, SWITCH_CALL_DIRECTION_OUTBOUND, pool)) != 0) {
|
||||||
private_t *tech_pvt;
|
private_t *tech_pvt;
|
||||||
switch_caller_profile_t *caller_profile;
|
switch_caller_profile_t *caller_profile;
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(*new_session);
|
switch_channel_t *channel = switch_core_session_get_channel(*new_session);
|
||||||
@ -1082,7 +1082,7 @@ zap_status_t zap_channel_from_event(zap_sigmsg_t *sigmsg, switch_core_session_t
|
|||||||
|
|
||||||
*sp = NULL;
|
*sp = NULL;
|
||||||
|
|
||||||
if (!(session = switch_core_session_request(openzap_endpoint_interface, NULL))) {
|
if (!(session = switch_core_session_request(openzap_endpoint_interface, SWITCH_CALL_DIRECTION_INBOUND, NULL))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Initilization Error!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Initilization Error!\n");
|
||||||
return ZAP_FAIL;
|
return ZAP_FAIL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user