[asterisk-commits] trunk r8799 - /trunk/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 27 16:55:37 MST 2006


Author: mattf
Date: Fri Jan 27 17:55:37 2006
New Revision: 8799

URL: http://svn.digium.com/view/asterisk?rev=8799&view=rev
Log:
Add rdnis rx/tx support to chan_iax2 (#6348)

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?rev=8799&r1=8798&r2=8799&view=diff
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Fri Jan 27 17:55:37 2006
@@ -522,6 +522,8 @@
 	char ani[80];
 	/*! DNID */
 	char dnid[80];
+	/*! RDNIS */
+	char rdnis[80];
 	/*! Requested Extension */
 	char exten[AST_MAX_EXTENSION];
 	/*! Expected Username */
@@ -2995,6 +2997,8 @@
 		iax_ie_append_str(&ied, IAX_IE_LANGUAGE, c->language);
 	if (!ast_strlen_zero(c->cid.cid_dnid))
 		iax_ie_append_str(&ied, IAX_IE_DNID, c->cid.cid_dnid);
+	if (!ast_strlen_zero(c->cid.cid_rdnis))
+		iax_ie_append_str(&ied, IAX_IE_RDNIS, c->cid.cid_rdnis);
 
 	if (pds.context)
 		iax_ie_append_str(&ied, IAX_IE_CALLED_CONTEXT, pds.context);
@@ -3402,6 +3406,8 @@
 			ast_copy_string(tmp->language, i->language, sizeof(tmp->language));
 		if (!ast_strlen_zero(i->dnid))
 			tmp->cid.cid_dnid = ast_strdup(i->dnid);
+		if (!ast_strlen_zero(i->rdnis))
+			tmp->cid.cid_rdnis = ast_strdup(i->rdnis);
 		tmp->cid.cid_pres = i->calling_pres;
 		tmp->cid.cid_ton = i->calling_ton;
 		tmp->cid.cid_tns = i->calling_tns;
@@ -4711,6 +4717,8 @@
 		ast_copy_string(iaxs[callno]->ani, ies->calling_ani, sizeof(iaxs[callno]->ani));
 	if (ies->dnid)
 		ast_copy_string(iaxs[callno]->dnid, ies->dnid, sizeof(iaxs[callno]->dnid));
+	if (ies->rdnis)
+		ast_copy_string(iaxs[callno]->rdnis, ies->rdnis, sizeof(iaxs[callno]->rdnis));
 	if (ies->called_context)
 		ast_copy_string(iaxs[callno]->context, ies->called_context, sizeof(iaxs[callno]->context));
 	if (ies->language)



More information about the asterisk-commits mailing list