提交 acc02b4c authored 作者: Anthony Minessale's avatar Anthony Minessale

get rid of pesky *


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@731 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 bd4fc985
......@@ -353,7 +353,7 @@ SWITCH_DECLARE(switch_status) switch_core_session_outgoing_channel(switch_core_s
char *endpoint_name,
switch_caller_profile *caller_profile,
switch_core_session **new_session,
switch_memory_pool **pool);
switch_memory_pool *pool);
/*!
\brief Answer the channel of a given session
......
......@@ -935,7 +935,7 @@ static JSBool session_construct(JSContext *cx, JSObject *obj, uintN argc, jsval
}
caller_profile = switch_caller_profile_new(pool, dialplan, cid_name, cid_num, network_addr, ani, ani2, dest);
if (switch_core_session_outgoing_channel(session, channel_type, caller_profile, &peer_session, &pool) == SWITCH_STATUS_SUCCESS) {
if (switch_core_session_outgoing_channel(session, channel_type, caller_profile, &peer_session, pool) == SWITCH_STATUS_SUCCESS) {
jss = switch_core_session_alloc(peer_session, sizeof(*jss));
jss->session = peer_session;
jss->flags = 0;
......
......@@ -780,7 +780,7 @@ SWITCH_DECLARE(switch_status) switch_core_session_outgoing_channel(switch_core_s
char *endpoint_name,
switch_caller_profile *caller_profile,
switch_core_session **new_session,
switch_memory_pool **pool)
switch_memory_pool *pool)
{
struct switch_io_event_hook_outgoing_channel *ptr;
switch_status status = SWITCH_STATUS_FALSE;
......@@ -794,9 +794,7 @@ SWITCH_DECLARE(switch_status) switch_core_session_outgoing_channel(switch_core_s
if (endpoint_interface->io_routines->outgoing_channel) {
if ((status =
endpoint_interface->io_routines->outgoing_channel(session, caller_profile,
new_session, *pool)) == SWITCH_STATUS_SUCCESS) {
/* session has adopted this pool we cant touch it now */
*pool = NULL;
new_session, pool)) == SWITCH_STATUS_SUCCESS) {
if (session) {
for (ptr = session->event_hooks.outgoing_channel; ptr; ptr = ptr->next) {
if ((status = ptr->outgoing_channel(session, caller_profile, *new_session)) != SWITCH_STATUS_SUCCESS) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论