2005-11-19 20:07:43 +00:00
|
|
|
/*
|
|
|
|
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
|
|
|
* Copyright (C) 2005/2006, Anthony Minessale II <anthmct@yahoo.com>
|
|
|
|
*
|
|
|
|
* Version: MPL 1.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Anthony Minessale II <anthmct@yahoo.com>
|
|
|
|
* Portions created by the Initial Developer are Copyright (C)
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
2007-12-06 19:51:55 +00:00
|
|
|
|
2005-11-19 20:07:43 +00:00
|
|
|
*
|
|
|
|
* Anthony Minessale II <anthmct@yahoo.com>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* switch_caller.c -- Caller Identification
|
|
|
|
*
|
|
|
|
*/
|
2006-04-29 01:00:52 +00:00
|
|
|
#include <switch.h>
|
2006-04-29 06:05:03 +00:00
|
|
|
#include <switch_caller.h>
|
2005-11-19 20:07:43 +00:00
|
|
|
|
2007-09-29 01:06:08 +00:00
|
|
|
|
|
|
|
#define profile_dup(a,b,p) if (!switch_strlen_zero(a)) { b = switch_core_strdup(p, a); } else { b = SWITCH_BLANK_STRING; }
|
|
|
|
#define profile_dup_clean(a,b,p) if (!switch_strlen_zero(a)) { b = switch_clean_string(switch_core_strdup(p, a)); } else { b = SWITCH_BLANK_STRING; }
|
|
|
|
|
2007-03-30 00:15:25 +00:00
|
|
|
SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memory_pool_t *pool,
|
2007-02-19 03:23:02 +00:00
|
|
|
const char *username,
|
|
|
|
const char *dialplan,
|
|
|
|
const char *caller_id_name,
|
|
|
|
const char *caller_id_number,
|
|
|
|
const char *network_addr,
|
|
|
|
const char *ani,
|
2007-03-29 22:31:56 +00:00
|
|
|
const char *aniii,
|
2007-09-29 01:06:08 +00:00
|
|
|
const char *rdnis,
|
|
|
|
const char *source,
|
|
|
|
const char *context,
|
2007-03-30 00:15:25 +00:00
|
|
|
const char *destination_number)
|
2005-11-19 20:07:43 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
2006-04-29 06:05:03 +00:00
|
|
|
switch_caller_profile_t *profile = NULL;
|
2005-11-19 20:07:43 +00:00
|
|
|
|
2007-09-29 01:06:08 +00:00
|
|
|
profile = switch_core_alloc(pool, sizeof(*profile));
|
|
|
|
assert(profile != NULL);
|
|
|
|
|
|
|
|
if (!context) {
|
|
|
|
context = "default";
|
2005-11-19 20:07:43 +00:00
|
|
|
}
|
|
|
|
|
2007-09-29 01:06:08 +00:00
|
|
|
profile_dup_clean(username, profile->username, pool);
|
|
|
|
profile_dup_clean(dialplan, profile->dialplan, pool);
|
|
|
|
profile_dup_clean(caller_id_name, profile->caller_id_name, pool);
|
|
|
|
profile_dup_clean(caller_id_number, profile->caller_id_number, pool);
|
|
|
|
profile_dup_clean(network_addr, profile->network_addr, pool);
|
|
|
|
profile_dup_clean(ani, profile->ani, pool);
|
|
|
|
profile_dup_clean(aniii, profile->aniii, pool);
|
|
|
|
profile_dup_clean(rdnis, profile->rdnis, pool);
|
|
|
|
profile_dup_clean(source, profile->source, pool);
|
|
|
|
profile_dup_clean(context, profile->context, pool);
|
|
|
|
profile_dup_clean(destination_number, profile->destination_number, pool);
|
|
|
|
profile->uuid = SWITCH_BLANK_STRING;
|
|
|
|
profile->chan_name = SWITCH_BLANK_STRING;
|
|
|
|
|
|
|
|
switch_set_flag(profile, SWITCH_CPF_SCREEN);
|
|
|
|
profile->pool = pool;
|
2005-11-19 20:07:43 +00:00
|
|
|
return profile;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-08-28 16:41:38 +00:00
|
|
|
SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_dup(switch_memory_pool_t *pool, switch_caller_profile_t *tocopy)
|
2005-11-19 20:07:43 +00:00
|
|
|
{
|
2006-04-29 06:05:03 +00:00
|
|
|
switch_caller_profile_t *profile = NULL;
|
2007-08-28 16:41:38 +00:00
|
|
|
|
2007-09-29 01:06:08 +00:00
|
|
|
profile = switch_core_alloc(pool, sizeof(*profile));
|
|
|
|
assert(profile != NULL);
|
|
|
|
|
|
|
|
profile_dup(tocopy->username, profile->username, pool);
|
|
|
|
profile_dup(tocopy->dialplan, profile->dialplan, pool);
|
|
|
|
profile_dup(tocopy->caller_id_name, profile->caller_id_name, pool);
|
|
|
|
profile_dup(tocopy->caller_id_number, profile->caller_id_number, pool);
|
|
|
|
profile_dup(tocopy->network_addr, profile->network_addr, pool);
|
|
|
|
profile_dup(tocopy->ani, profile->ani, pool);
|
|
|
|
profile_dup(tocopy->aniii, profile->aniii, pool);
|
|
|
|
profile_dup(tocopy->rdnis, profile->rdnis, pool);
|
|
|
|
profile_dup(tocopy->source, profile->source, pool);
|
|
|
|
profile_dup(tocopy->context, profile->context, pool);
|
|
|
|
profile_dup(tocopy->destination_number, profile->destination_number, pool);
|
|
|
|
profile_dup(tocopy->uuid, profile->uuid, pool);
|
|
|
|
profile_dup(tocopy->chan_name, profile->chan_name, pool);
|
|
|
|
|
|
|
|
profile->caller_ton = tocopy->caller_ton;
|
|
|
|
profile->caller_numplan = tocopy->caller_numplan;
|
|
|
|
profile->ani_ton = tocopy->ani_ton;
|
|
|
|
profile->ani_numplan = tocopy->ani_numplan;
|
|
|
|
profile->rdnis_ton = tocopy->rdnis_ton;
|
|
|
|
profile->rdnis_numplan = tocopy->rdnis_numplan;
|
|
|
|
profile->destination_number_ton = tocopy->destination_number_ton;
|
|
|
|
profile->destination_number_numplan = tocopy->destination_number_numplan;
|
|
|
|
profile->flags = tocopy->flags;
|
|
|
|
profile->pool = pool;
|
2005-11-19 20:07:43 +00:00
|
|
|
|
|
|
|
return profile;
|
|
|
|
}
|
|
|
|
|
2007-08-28 16:41:38 +00:00
|
|
|
|
|
|
|
SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_clone(switch_core_session_t *session, switch_caller_profile_t *tocopy)
|
|
|
|
{
|
|
|
|
switch_memory_pool_t *pool;
|
|
|
|
|
|
|
|
pool = switch_core_session_get_pool(session);
|
|
|
|
|
|
|
|
return switch_caller_profile_dup(pool, tocopy);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-01 11:28:26 +00:00
|
|
|
SWITCH_DECLARE(const char *) switch_caller_get_field_by_name(switch_caller_profile_t *caller_profile, const char *name)
|
2006-05-10 03:23:05 +00:00
|
|
|
{
|
|
|
|
if (!strcasecmp(name, "dialplan")) {
|
|
|
|
return caller_profile->dialplan;
|
|
|
|
}
|
2006-05-26 16:00:08 +00:00
|
|
|
if (!strcasecmp(name, "username")) {
|
|
|
|
return caller_profile->username;
|
|
|
|
}
|
2006-05-10 03:23:05 +00:00
|
|
|
if (!strcasecmp(name, "caller_id_name")) {
|
|
|
|
return caller_profile->caller_id_name;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "ani")) {
|
|
|
|
return caller_profile->ani;
|
|
|
|
}
|
2006-10-17 23:33:32 +00:00
|
|
|
if (!strcasecmp(name, "aniii")) {
|
|
|
|
return caller_profile->aniii;
|
2006-05-10 03:23:05 +00:00
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "caller_id_number")) {
|
|
|
|
return caller_profile->caller_id_number;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "network_addr")) {
|
|
|
|
return caller_profile->network_addr;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "rdnis")) {
|
|
|
|
return caller_profile->rdnis;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "destination_number")) {
|
|
|
|
return caller_profile->destination_number;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "uuid")) {
|
|
|
|
return caller_profile->uuid;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "source")) {
|
|
|
|
return caller_profile->source;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "context")) {
|
|
|
|
return caller_profile->context;
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "chan_name")) {
|
|
|
|
return caller_profile->chan_name;
|
|
|
|
}
|
2007-08-28 16:41:38 +00:00
|
|
|
if (!strcasecmp(name, "caller_ton")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->caller_ton);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "caller_numplan")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->caller_numplan);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "destination_number_ton")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->destination_number_ton);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "destination_number_numplan")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->destination_number_numplan);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "ani_ton")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->ani_ton);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "ani_numplan")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->ani_numplan);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "rdnis_ton")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->rdnis_ton);
|
|
|
|
}
|
|
|
|
if (!strcasecmp(name, "rdnis_numplan")) {
|
|
|
|
return switch_core_sprintf(caller_profile->pool, "%u", caller_profile->rdnis_numplan);
|
|
|
|
}
|
2006-05-10 03:23:05 +00:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2007-05-12 14:48:14 +00:00
|
|
|
SWITCH_DECLARE(void) switch_caller_profile_event_set_data(switch_caller_profile_t *caller_profile, const char *prefix, switch_event_t *event)
|
2005-12-23 21:09:36 +00:00
|
|
|
{
|
2005-12-26 19:09:59 +00:00
|
|
|
char header_name[1024];
|
|
|
|
|
2006-05-26 16:00:08 +00:00
|
|
|
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->username)) {
|
2006-05-26 16:00:08 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Username", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->username);
|
2006-05-26 16:00:08 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->dialplan)) {
|
2005-12-26 19:09:59 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Dialplan", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->dialplan);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->caller_id_name)) {
|
2005-12-26 19:09:59 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Caller-ID-Name", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->caller_id_name);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->caller_id_number)) {
|
2005-12-26 19:09:59 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Caller-ID-Number", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->caller_id_number);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->network_addr)) {
|
2005-12-26 19:09:59 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Network-Addr", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->network_addr);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->ani)) {
|
2005-12-26 19:09:59 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-ANI", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->ani);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->aniii)) {
|
2006-10-17 23:33:32 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-ANI-II", prefix);
|
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->aniii);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->destination_number)) {
|
2005-12-26 19:09:59 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Destination-Number", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->destination_number);
|
2005-12-26 19:09:59 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->uuid)) {
|
2006-04-11 14:55:14 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Unique-ID", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->uuid);
|
2006-04-11 14:55:14 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->source)) {
|
2006-04-28 19:46:57 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Source", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->source);
|
2006-04-21 22:31:08 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->context)) {
|
2006-04-28 19:46:57 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Context", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->context);
|
2006-04-28 19:46:57 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->rdnis)) {
|
2006-04-21 22:31:08 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-RDNIS", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->rdnis);
|
2006-04-21 22:31:08 +00:00
|
|
|
}
|
2007-02-12 18:13:14 +00:00
|
|
|
if (!switch_strlen_zero(caller_profile->chan_name)) {
|
2006-04-11 14:55:14 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Channel-Name", prefix);
|
2006-10-06 22:39:49 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->chan_name);
|
2006-04-11 14:55:14 +00:00
|
|
|
}
|
2007-05-31 14:42:23 +00:00
|
|
|
if (caller_profile->times) {
|
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Channel-Created-Time", prefix);
|
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%" SWITCH_TIME_T_FMT, caller_profile->times->created);
|
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Channel-Answered-Time", prefix);
|
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%" SWITCH_TIME_T_FMT, caller_profile->times->answered);
|
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Channel-Hangup-Time", prefix);
|
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%" SWITCH_TIME_T_FMT, caller_profile->times->hungup);
|
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Channel-Transfer-Time", prefix);
|
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%" SWITCH_TIME_T_FMT, caller_profile->times->transferred);
|
|
|
|
}
|
2005-12-23 21:09:36 +00:00
|
|
|
|
2006-10-16 04:39:00 +00:00
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Screen-Bit", prefix);
|
2007-03-30 00:13:31 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, switch_test_flag(caller_profile, SWITCH_CPF_SCREEN) ? "yes" : "no");
|
2006-10-16 04:39:00 +00:00
|
|
|
|
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Privacy-Hide-Name", prefix);
|
2007-03-30 00:13:31 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NAME) ? "yes" : "no");
|
2006-10-16 04:39:00 +00:00
|
|
|
|
|
|
|
snprintf(header_name, sizeof(header_name), "%s-Privacy-Hide-Number", prefix);
|
2007-03-30 00:13:31 +00:00
|
|
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER) ? "yes" : "no");
|
2006-10-16 04:39:00 +00:00
|
|
|
|
2007-05-31 14:42:23 +00:00
|
|
|
|
2006-10-16 04:39:00 +00:00
|
|
|
|
2005-12-23 21:09:36 +00:00
|
|
|
}
|
|
|
|
|
2007-05-12 14:48:14 +00:00
|
|
|
SWITCH_DECLARE(switch_caller_extension_t *) switch_caller_extension_new(switch_core_session_t *session, const char *extension_name, const char *extension_number)
|
2005-11-19 20:07:43 +00:00
|
|
|
{
|
2006-04-29 06:05:03 +00:00
|
|
|
switch_caller_extension_t *caller_extension = NULL;
|
2005-11-19 20:07:43 +00:00
|
|
|
|
2006-04-29 06:05:03 +00:00
|
|
|
if ((caller_extension = switch_core_session_alloc(session, sizeof(switch_caller_extension_t))) != 0) {
|
2005-11-19 20:07:43 +00:00
|
|
|
caller_extension->extension_name = switch_core_session_strdup(session, extension_name);
|
|
|
|
caller_extension->extension_number = switch_core_session_strdup(session, extension_number);
|
|
|
|
caller_extension->current_application = caller_extension->last_application = caller_extension->applications;
|
|
|
|
}
|
|
|
|
|
|
|
|
return caller_extension;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-04-29 06:05:03 +00:00
|
|
|
SWITCH_DECLARE(void) switch_caller_extension_add_application(switch_core_session_t *session,
|
2007-05-12 14:48:14 +00:00
|
|
|
switch_caller_extension_t *caller_extension, const char *application_name, const char *application_data)
|
2005-11-19 20:07:43 +00:00
|
|
|
{
|
2006-04-29 06:05:03 +00:00
|
|
|
switch_caller_application_t *caller_application = NULL;
|
2005-11-19 20:07:43 +00:00
|
|
|
|
|
|
|
assert(session != NULL);
|
|
|
|
|
2006-04-29 06:05:03 +00:00
|
|
|
if ((caller_application = switch_core_session_alloc(session, sizeof(switch_caller_application_t))) != 0) {
|
2005-11-19 20:07:43 +00:00
|
|
|
caller_application->application_name = switch_core_session_strdup(session, application_name);
|
|
|
|
caller_application->application_data = switch_core_session_strdup(session, application_data);
|
|
|
|
if (!caller_extension->applications) {
|
|
|
|
caller_extension->applications = caller_application;
|
2006-01-20 15:05:05 +00:00
|
|
|
} else if (caller_extension->last_application) {
|
2005-11-19 20:07:43 +00:00
|
|
|
caller_extension->last_application->next = caller_application;
|
|
|
|
}
|
|
|
|
|
|
|
|
caller_extension->last_application = caller_application;
|
|
|
|
caller_extension->current_application = caller_extension->applications;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2006-11-27 22:30:48 +00:00
|
|
|
|
|
|
|
/* For Emacs:
|
|
|
|
* Local Variables:
|
|
|
|
* mode:c
|
2007-02-09 02:36:03 +00:00
|
|
|
* indent-tabs-mode:t
|
2006-11-27 22:30:48 +00:00
|
|
|
* tab-width:4
|
|
|
|
* c-basic-offset:4
|
|
|
|
* End:
|
|
|
|
* For VIM:
|
|
|
|
* vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
|
|
|
|
*/
|