[svn-commits] branch crichter/0.3.0 r11016 - in
/team/crichter/0.3.0/channels: ./ misdn/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Feb 24 10:29:38 MST 2006
Author: crichter
Date: Fri Feb 24 11:29:34 2006
New Revision: 11016
URL: http://svn.digium.com/view/asterisk?rev=11016&view=rev
Log:
added export and import of RDNIS channel variable
Modified:
team/crichter/0.3.0/channels/chan_misdn.c
team/crichter/0.3.0/channels/misdn/isdn_msg_parser.c
Modified: team/crichter/0.3.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn.c?rev=11016&r1=11015&r2=11016&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Fri Feb 24 11:29:34 2006
@@ -2942,6 +2942,10 @@
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)
@@ -2959,6 +2963,8 @@
sprintf(tmp,"%d",bc->user1);
pbx_builtin_setvar_helper(chan,"PRI_USER1",tmp);
+
+ pbx_builtin_setvar_helper(chan,"RDNIS",bc->rad);
}
Modified: team/crichter/0.3.0/channels/misdn/isdn_msg_parser.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/misdn/isdn_msg_parser.c?rev=11016&r1=11015&r2=11016&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/misdn/isdn_msg_parser.c (original)
+++ team/crichter/0.3.0/channels/misdn/isdn_msg_parser.c Fri Feb 24 11:29:34 2006
@@ -277,6 +277,13 @@
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);
More information about the svn-commits
mailing list