mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
Rename ani2 to aniii and ANI2 to ANI-II where appropriate. Because its not ANI2 its ANI II (eye eye)
What is ANI II ? Refer to: http://en.wikipedia.org/wiki/Automatic_number_identification Thanks, /b git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3073 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5148aa2da6
commit
614010db63
10 files changed
+29
-29
No files matched your search
+8
-8
@@ -39,7 +39,7 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor
|
||||
char *caller_id_number,
|
||||
char *network_addr,
|
||||
char *ani,
|
||||
char *ani2,
|
||||
char *aniii,
|
||||
char *rdnis,
|
||||
char *source,
|
||||
char *context,
|
||||
@@ -59,7 +59,7 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor
|
||||
profile->caller_id_number = switch_core_strdup(pool, caller_id_number);
|
||||
profile->network_addr = switch_core_strdup(pool, network_addr);
|
||||
profile->ani = switch_core_strdup(pool, ani);
|
||||
profile->ani2 = switch_core_strdup(pool, ani2);
|
||||
profile->aniii = switch_core_strdup(pool, aniii);
|
||||
profile->rdnis = switch_core_strdup(pool, rdnis);
|
||||
profile->source = switch_core_strdup(pool, source);
|
||||
profile->context = switch_core_strdup(pool, context);
|
||||
@@ -80,7 +80,7 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_clone(switch_cor
|
||||
profile->dialplan = switch_core_session_strdup(session, tocopy->dialplan);
|
||||
profile->caller_id_name = switch_core_session_strdup(session, tocopy->caller_id_name);
|
||||
profile->ani = switch_core_session_strdup(session, tocopy->ani);
|
||||
profile->ani2 = switch_core_session_strdup(session, tocopy->ani2);
|
||||
profile->aniii = switch_core_session_strdup(session, tocopy->aniii);
|
||||
profile->caller_id_number = switch_core_session_strdup(session, tocopy->caller_id_number);
|
||||
profile->network_addr = switch_core_session_strdup(session, tocopy->network_addr);
|
||||
profile->rdnis = switch_core_session_strdup(session, tocopy->rdnis);
|
||||
@@ -109,8 +109,8 @@ SWITCH_DECLARE(char *) switch_caller_get_field_by_name(switch_caller_profile_t *
|
||||
if (!strcasecmp(name, "ani")) {
|
||||
return caller_profile->ani;
|
||||
}
|
||||
if (!strcasecmp(name, "ani2")) {
|
||||
return caller_profile->ani2;
|
||||
if (!strcasecmp(name, "aniii")) {
|
||||
return caller_profile->aniii;
|
||||
}
|
||||
if (!strcasecmp(name, "caller_id_number")) {
|
||||
return caller_profile->caller_id_number;
|
||||
@@ -169,9 +169,9 @@ SWITCH_DECLARE(void) switch_caller_profile_event_set_data(switch_caller_profile_
|
||||
snprintf(header_name, sizeof(header_name), "%s-ANI", prefix);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->ani);
|
||||
}
|
||||
if (caller_profile->ani2) {
|
||||
snprintf(header_name, sizeof(header_name), "%s-ANI2", prefix);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->ani2);
|
||||
if (caller_profile->aniii) {
|
||||
snprintf(header_name, sizeof(header_name), "%s-ANI-II", prefix);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, header_name, "%s", caller_profile->aniii);
|
||||
}
|
||||
if (caller_profile->destination_number) {
|
||||
snprintf(header_name, sizeof(header_name), "%s-Destination-Number", prefix);
|
||||
|
||||
Reference in new issue
Block a user