Author: mikej Date: Tue Aug 21 10:01:24 2007 New Revision: 5647 Modified: freeswitch/trunk/src/include/switch_caller.h freeswitch/trunk/src/switch_caller.c Log: add type of number and number plan vars to the caller profile Modified: freeswitch/trunk/src/include/switch_caller.h ============================================================================== --- freeswitch/trunk/src/include/switch_caller.h (original) +++ freeswitch/trunk/src/include/switch_caller.h Tue Aug 21 10:01:24 2007 @@ -67,16 +67,24 @@ char *caller_id_name; /*! Caller ID Number */ char *caller_id_number; + uint8_t caller_ton; + uint8_t caller_numplan; /*! Caller Network Address (when applicable) */ char *network_addr; /*! ANI (when applicable) */ char *ani; + uint8_t ani_ton; + uint8_t ani_numplan; /*! ANI II (when applicable) */ char *aniii; /*! RDNIS */ char *rdnis; + uint8_t rdnis_ton; + uint8_t rdnis_numplan; /*! Destination Number */ char *destination_number; + uint8_t destination_number_ton; + uint8_t destination_number_numplan; /*! channel type */ char *source; /*! channel name */ Modified: freeswitch/trunk/src/switch_caller.c ============================================================================== --- freeswitch/trunk/src/switch_caller.c (original) +++ freeswitch/trunk/src/switch_caller.c Tue Aug 21 10:01:24 2007 @@ -86,6 +86,14 @@ profile->source = switch_core_session_strdup(session, tocopy->source); profile->context = switch_core_session_strdup(session, tocopy->context); profile->chan_name = switch_core_session_strdup(session, tocopy->chan_name); + 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; }
participants (1)
-
Freeswitch SVN