]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix for destination_number_ton and destination_number_npi not set on incoming calls
authorDavid Yat Sin <dyatsin@sangoma.com>
Thu, 14 Oct 2010 18:19:54 +0000 (14:19 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Thu, 14 Oct 2010 18:19:54 +0000 (14:19 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c

index 691e3104c0ac1a6cc4a2a55d94b1d5ecd1057f50..a77fb053834a771ddf64aecda27228211f13dd8d 100644 (file)
@@ -188,11 +188,11 @@ ftdm_status_t cpy_called_num_from_stack(ftdm_caller_data_t *ftdm, CdPtyNmb *cdPt
        }
 
        if (cdPtyNmb->nmbPlanId.pres == PRSNT_NODEF) {
-               ftdm->cid_num.plan = cdPtyNmb->nmbPlanId.val;
+               ftdm->dnis.plan = cdPtyNmb->nmbPlanId.val;
        }
 
        if (cdPtyNmb->typeNmb0.pres == PRSNT_NODEF) {
-               ftdm->cid_num.type = cdPtyNmb->typeNmb0.val;
+               ftdm->dnis.type = cdPtyNmb->typeNmb0.val;
        }
        
        if (cdPtyNmb->nmbDigits.pres == PRSNT_NODEF) {