added export and import of RDNIS channel variable
[asterisk/asterisk.git] / channels / misdn / isdn_msg_parser.c
index 5bce3f5..5eb7e1f 100644 (file)
@@ -277,6 +277,13 @@ msg_t *build_setup (struct isdn_msg msgs[], struct misdn_bchannel *bc, int nt)
                if (bc->dad[0])
                        enc_ie_called_pn(&setup->CALLED_PN, msg, bc->dnumplan, 1, bc->dad, nt,bc);
        }
+
+       {
+               if (bc->rad[0])
+                       enc_ie_redir_nr(&setup->REDIR_NR, msg, 1, 1,  bc->pres, bc->screen, 0, bc->rad, nt,bc);
+       }
+
+       
   
        if (*bc->display) {
                enc_ie_display(&setup->DISPLAY, msg, bc->display, nt,bc);
@@ -300,6 +307,8 @@ msg_t *build_setup (struct isdn_msg msgs[], struct misdn_bchannel *bc, int nt)
                        break;
                case INFO_CAPABILITY_DIGITAL_UNRESTRICTED: capability = 8;
                        user=-1;
+                       mode=bc->mode;
+                       rate=bc->rate;
                        break;
                case INFO_CAPABILITY_DIGITAL_RESTRICTED: capability = 9;
                        user=-1;