diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-21 20:50:26 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-21 20:50:26 +0000 |
commit | 83a89cc17ed42bbed7a60f750d9f5e6e8c99c28b (patch) | |
tree | fd3d5e9b170b171d919dad11f14abe0e63f7dc7b | |
parent | 1e66fcde410b77a3944855905e0ae783a2004a69 (diff) |
We should only clear this value if we have to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94551 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_zap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index d25e02575..d3adaf3ed 100644 --- 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); |