]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix for TON and NPI not passed through to channel variables on incoming calls
authorDavid Yat Sin <dyatsin@sangoma.com>
Wed, 17 Mar 2010 22:35:29 +0000 (22:35 +0000)
committerDavid Yat Sin <dyatsin@sangoma.com>
Wed, 17 Mar 2010 22:35:29 +0000 (22:35 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1067 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/mod_openzap/mod_openzap.c

index a6b6c33c0345bba94c2121f08ac1ccbd809dfa2f..ca7ba37b7a4955dc77dadbef3619b1f8daf5fdf0 100644 (file)
@@ -1417,6 +1417,15 @@ zap_status_t zap_channel_from_event(zap_sigmsg_t *sigmsg, switch_core_session_t
                switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_SCREEN);
        }
 
+       tech_pvt->caller_profile->caller_ton = sigmsg->channel->caller_data.cid_num.type;
+       tech_pvt->caller_profile->caller_numplan = sigmsg->channel->caller_data.cid_num.plan;
+       tech_pvt->caller_profile->ani_ton = sigmsg->channel->caller_data.ani.type;
+       tech_pvt->caller_profile->ani_numplan = sigmsg->channel->caller_data.ani.plan;
+       tech_pvt->caller_profile->destination_number_ton = sigmsg->channel->caller_data.dnis.type;
+       tech_pvt->caller_profile->destination_number_numplan = sigmsg->channel->caller_data.dnis.plan;
+       tech_pvt->caller_profile->rdnis_ton = sigmsg->channel->caller_data.rdnis.type;
+       tech_pvt->caller_profile->rdnis_numplan = sigmsg->channel->caller_data.rdnis.plan;
+
        if (sigmsg->channel->caller_data.pres) {
                switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER);
        }