FSCORE-450

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15006 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-09-28 19:46:38 +00:00
parent bcc1694a45
commit c5f1d9ec0a
12 changed files with 4 additions and 231 deletions

View File

@@ -981,7 +981,7 @@ SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *des
handlers,
NULL,
NULL,
&caller_profile,
NULL,
NULL,
SOF_NONE) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Error Creating Outgoing Channel! [%s]\n", dest);
@@ -1078,41 +1078,6 @@ SWITCH_DECLARE(void) CoreSession::waitForAnswer(CoreSession *calling_session)
}
SWITCH_DECLARE(void) CoreSession::setCallerData(char *var, char *val) {
this_check_void();
sanity_check_noreturn;
if (strcmp(var, "dialplan") == 0) {
caller_profile.dialplan = val;
}
if (strcmp(var, "context") == 0) {
caller_profile.context = val;
}
if (strcmp(var, "caller_id_name") == 0) {
caller_profile.caller_id_name = val;
}
if (strcmp(var, "caller_id_number") == 0) {
caller_profile.caller_id_number = val;
}
if (strcmp(var, "network_addr") == 0) {
caller_profile.network_addr = val;
}
if (strcmp(var, "ani") == 0) {
caller_profile.ani = val;
}
if (strcmp(var, "aniii") == 0) {
caller_profile.aniii = val;
}
if (strcmp(var, "rdnis") == 0) {
caller_profile.rdnis = val;
}
if (strcmp(var, "username") == 0) {
caller_profile.username = val;
}
}
SWITCH_DECLARE(void) CoreSession::setHangupHook(void *hangup_func) {
this_check_void();