remove unused var ocp
This commit is contained in:
parent
e7107f616f
commit
a044b3b64b
|
@ -4215,7 +4215,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
|
||||||
{
|
{
|
||||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||||
const char *cid_buf = NULL;
|
const char *cid_buf = NULL;
|
||||||
switch_caller_profile_t *caller_profile, *ocp;
|
switch_caller_profile_t *caller_profile;
|
||||||
switch_app_log_t *app_log, *ap;
|
switch_app_log_t *app_log, *ap;
|
||||||
char *last_app = NULL, *last_arg = NULL;
|
char *last_app = NULL, *last_arg = NULL;
|
||||||
char start[80] = "", resurrect[80] = "", answer[80] = "", hold[80],
|
char start[80] = "", resurrect[80] = "", answer[80] = "", hold[80],
|
||||||
|
@ -4252,10 +4252,6 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
|
||||||
last_arg = ap->arg;
|
last_arg = ap->arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(ocp = switch_channel_get_originatee_caller_profile(channel))) {
|
|
||||||
ocp = switch_channel_get_originator_caller_profile(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!zstr(caller_profile->caller_id_name)) {
|
if (!zstr(caller_profile->caller_id_name)) {
|
||||||
cid_buf = switch_core_session_sprintf(channel->session, "\"%s\" <%s>", caller_profile->caller_id_name,
|
cid_buf = switch_core_session_sprintf(channel->session, "\"%s\" <%s>", caller_profile->caller_id_name,
|
||||||
switch_str_nil(caller_profile->caller_id_number));
|
switch_str_nil(caller_profile->caller_id_number));
|
||||||
|
|
Loading…
Reference in New Issue