tmp=pbx_builtin_getvar_helper(chan,"PRI_USER1");
if (tmp) bc->user1=atoi(tmp);
+
+ tmp=pbx_builtin_getvar_helper(chan,"RDNIS");
+ if (tmp) ast_copy_string(bc->rad,tmp,sizeof(bc->rad));
+
}
void export_ies(struct ast_channel *chan, struct misdn_bchannel *bc)
sprintf(tmp,"%d",bc->user1);
pbx_builtin_setvar_helper(chan,"PRI_USER1",tmp);
+
+ pbx_builtin_setvar_helper(chan,"RDNIS",bc->rad);
}
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);