[asterisk-commits] mattf: branch 1.6.0 r115940 - in /branches/1.6.0: ./ channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 13 15:13:39 CDT 2008


Author: mattf
Date: Tue May 13 15:13:39 2008
New Revision: 115940

URL: http://svn.digium.com/view/asterisk?view=rev&rev=115940
Log:
Merged revisions 115939 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r115939 | mattf | 2008-05-13 15:11:20 -0500 (Tue, 13 May 2008) | 1 line

Add support for receiving calling party category
........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/channels/chan_zap.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_zap.c?view=diff&rev=115940&r1=115939&r2=115940
==============================================================================
--- branches/1.6.0/channels/chan_zap.c (original)
+++ branches/1.6.0/channels/chan_zap.c Tue May 13 15:13:39 2008
@@ -702,6 +702,7 @@
 	char lspi_ident[50];
 	unsigned int call_ref_ident;
 	unsigned int call_ref_pc;
+	unsigned char calling_party_cat;
 	int transcap;
 	int cic;							/*!< CIC associated with channel */
 	unsigned int dpc;						/*!< CIC's DPC */
@@ -9231,6 +9232,11 @@
 	/* Clear this after we set it */
 	p->call_ref_pc = 0;
 
+	snprintf(tmp, sizeof(tmp), "%d", p->calling_party_cat);
+	pbx_builtin_setvar_helper(c, "SS7_CALLING_PARTY_CATEGORY", tmp);
+	/* Clear this after we set it */
+	p->call_ref_pc = 0;
+
 	if (!ast_strlen_zero(p->redirecting_num)) {
 		pbx_builtin_setvar_helper(c, "SS7_REDIRECTING_NUMBER", p->redirecting_num);
 		/* Clear this after we set it */
@@ -9527,6 +9533,7 @@
 				ast_copy_string(p->orig_called_num, e->iam.orig_called_num, sizeof(p->orig_called_num));
 				ast_copy_string(p->redirecting_num, e->iam.redirecting_num, sizeof(p->redirecting_num));
 				ast_copy_string(p->generic_name, e->iam.generic_name, sizeof(p->generic_name));
+				p->calling_party_cat = e->iam.calling_party_cat;
 					
 				/* Set DNID */
 				if (!ast_strlen_zero(e->iam.called_party_num))




More information about the asterisk-commits mailing list