[asterisk-commits] trunk r11017 - in /trunk/channels: chan_misdn.c misdn/isdn_msg_parser.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 24 10:38:46 MST 2006


Author: crichter
Date: Fri Feb 24 11:38:43 2006
New Revision: 11017

URL: http://svn.digium.com/view/asterisk?rev=11017&view=rev
Log:
added export and import of RDNIS channel variable

Modified:
    trunk/channels/chan_misdn.c
    trunk/channels/misdn/isdn_msg_parser.c

Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?rev=11017&r1=11016&r2=11017&view=diff
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Fri Feb 24 11:38:43 2006
@@ -2946,6 +2946,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)
@@ -2963,6 +2967,8 @@
 	
 	sprintf(tmp,"%d",bc->user1);
 	pbx_builtin_setvar_helper(chan,"PRI_USER1",tmp);
+	
+	pbx_builtin_setvar_helper(chan,"RDNIS",bc->rad);
 }
 
 

Modified: trunk/channels/misdn/isdn_msg_parser.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/misdn/isdn_msg_parser.c?rev=11017&r1=11016&r2=11017&view=diff
==============================================================================
--- trunk/channels/misdn/isdn_msg_parser.c (original)
+++ trunk/channels/misdn/isdn_msg_parser.c Fri Feb 24 11:38:43 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 asterisk-commits mailing list