[asterisk-commits] mattf: trunk r190947 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 28 17:07:28 CDT 2009


Author: mattf
Date: Tue Apr 28 17:07:24 2009
New Revision: 190947

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190947
Log:
Add support setting CPC from channel variable

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=190947&r1=190946&r2=190947
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Tue Apr 28 17:07:24 2009
@@ -3434,6 +3434,7 @@
 		const char *call_ref_id = NULL;
 		const char *call_ref_pc = NULL;
 		const char *send_far = NULL;
+	        const char *calling_party_category = NULL;
 
 		c = strchr(dest, '/');
 		if (c) {
@@ -3542,6 +3543,10 @@
 			isup_set_callref(p->ss7call, atoi(call_ref_id),
 					 call_ref_pc ? atoi(call_ref_pc) : 0);
 		}
+
+                calling_party_category = pbx_builtin_getvar_helper(ast, "SS7_CALLING_PARTY_CATEGORY");
+                if (calling_party_category)  
+                       isup_set_calling_party_category(p->ss7call, atoi(calling_party_category)); 
 
 		send_far = pbx_builtin_getvar_helper(ast, "SS7_SEND_FAR");
 		if ((send_far) && ((strncmp("NO", send_far, strlen(send_far))) != 0 ))




More information about the asterisk-commits mailing list