[asterisk-commits] mattf: trunk r103794 - /trunk/channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 18 15:57:50 CST 2008
Author: mattf
Date: Mon Feb 18 15:57:50 2008
New Revision: 103794
URL: http://svn.digium.com/view/asterisk?view=rev&rev=103794
Log:
Commit chan_zap portion of #11964: add the ability to get ORIG_CALLED_NUM
Modified:
trunk/channels/chan_zap.c
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=103794&r1=103793&r2=103794
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Mon Feb 18 15:57:50 2008
@@ -684,6 +684,7 @@
char charge_number[50];
char gen_add_number[50];
char gen_dig_number[50];
+ char orig_called_num[50];
unsigned char gen_add_num_plan;
unsigned char gen_add_nai;
unsigned char gen_add_pres_ind;
@@ -9105,6 +9106,11 @@
/* Clear this after we set it */
p->gen_dig_number[0] = 0;
}
+ if (!ast_strlen_zero(p->orig_called_num)) {
+ pbx_builtin_setvar_helper(c, "SS7_ORIG_CALLED_NUM", p->orig_called_num);
+ /* Clear this after we set it */
+ p->orig_called_num[0] = 0;
+ }
snprintf(tmp, sizeof(tmp), "%d", p->gen_dig_type);
pbx_builtin_setvar_helper(c, "SS7_GENERIC_DIGTYPE", tmp);
@@ -9414,6 +9420,7 @@
p->gen_dig_type = e->iam.gen_dig_type;
p->gen_dig_scheme = e->iam.gen_dig_scheme;
ast_copy_string(p->jip_number, e->iam.jip_number, sizeof(p->jip_number));
+ ast_copy_string(p->orig_called_num, e->iam.orig_called_num, sizeof(p->orig_called_num));
/* Set DNID */
if (!ast_strlen_zero(e->iam.called_party_num))
More information about the asterisk-commits
mailing list