projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ce9ec2
)
We should only clear this value if we have to
author
Matthew Fredrickson
<creslin@digium.com>
Fri, 21 Dec 2007 20:50:26 +0000
(20:50 +0000)
committer
Matthew Fredrickson
<creslin@digium.com>
Fri, 21 Dec 2007 20:50:26 +0000
(20:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94551
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_zap.c
patch
|
blob
|
history
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
d25e025
..
d3adaf3
100644
(file)
--- a/
channels/chan_zap.c
+++ b/
channels/chan_zap.c
@@
-8905,10
+8905,11
@@
static void ss7_start_call(struct zt_pvt *p, struct zt_ss7 *linkset)
/* 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);