mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 19:24:14 +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
@@ -1839,7 +1839,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
|
||||
cid_num,
|
||||
ldl_session_get_ip(dlsession),
|
||||
ldl_session_get_value(dlsession, "ani"),
|
||||
ldl_session_get_value(dlsession, "ani2"),
|
||||
ldl_session_get_value(dlsession, "aniii"),
|
||||
ldl_session_get_value(dlsession, "rdnis"),
|
||||
(char *)modname,
|
||||
context,
|
||||
|
||||
@@ -1211,7 +1211,7 @@ static int on_ring(struct sangoma_pri *spri, sangoma_pri_event_t event_type, pri
|
||||
|
||||
if ((session = switch_core_session_request(&wanpipe_endpoint_interface, NULL))) {
|
||||
struct private_object *tech_pvt;
|
||||
char ani2str[4] = "";
|
||||
char aniiistr[4] = "";
|
||||
//wanpipe_tdm_api_t tdm_api;
|
||||
|
||||
switch_core_session_add_stream(session, NULL);
|
||||
@@ -1229,8 +1229,8 @@ static int on_ring(struct sangoma_pri *spri, sangoma_pri_event_t event_type, pri
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (event->ring.ani2 >= 0) {
|
||||
snprintf(ani2str, 5, "%.2d", event->ring.ani2);
|
||||
if (event->ring.aniii >= 0) {
|
||||
snprintf(aniiistr, 5, "%.2d", event->ring.aniii);
|
||||
}
|
||||
|
||||
if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
|
||||
@@ -1239,7 +1239,7 @@ static int on_ring(struct sangoma_pri *spri, sangoma_pri_event_t event_type, pri
|
||||
"FreeSWITCH",
|
||||
event->ring.callingnum,
|
||||
event->ring.callingani,
|
||||
switch_strlen_zero(ani2str) ? NULL : ani2str,
|
||||
switch_strlen_zero(aniiistr) ? NULL : aniiistr,
|
||||
NULL,
|
||||
NULL,
|
||||
(char *)modname,
|
||||
|
||||
Reference in new issue
Block a user