[asterisk-commits] mattf: trunk r94551 - /trunk/channels/chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 21 14:50:26 CST 2007
Author: mattf
Date: Fri Dec 21 14:50:26 2007
New Revision: 94551
URL: http://svn.digium.com/view/asterisk?view=rev&rev=94551
Log:
We should only clear this value if we have to
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=94551&r1=94550&r2=94551
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Dec 21 14:50:26 2007
@@ -8905,10 +8905,11 @@
/* Clear this after we set it */
p->gen_dig_scheme = 0;
- if (!ast_strlen_zero(p->lspi_ident))
+ if (!ast_strlen_zero(p->lspi_ident)) {
pbx_builtin_setvar_helper(c, "SS7_LSPI_IDENT", p->lspi_ident);
- /* Clear this after we set it */
- p->lspi_ident[0] = 0;
+ /* Clear this after we set it */
+ p->lspi_ident[0] = 0;
+ }
snprintf(tmp, sizeof(tmp), "%d", p->call_ref_ident);
pbx_builtin_setvar_helper(c, "SS7_CALLREF_IDENT", tmp);
More information about the asterisk-commits
mailing list