Need to clear calling_party_cat variable after we retrieve it

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Matthew Fredrickson 17 years ago
parent df175cebc3
commit a439ea6fe2

@ -9242,7 +9242,7 @@ static void ss7_start_call(struct zt_pvt *p, struct zt_ss7 *linkset)
snprintf(tmp, sizeof(tmp), "%d", p->calling_party_cat); snprintf(tmp, sizeof(tmp), "%d", p->calling_party_cat);
pbx_builtin_setvar_helper(c, "SS7_CALLING_PARTY_CATEGORY", tmp); pbx_builtin_setvar_helper(c, "SS7_CALLING_PARTY_CATEGORY", tmp);
/* Clear this after we set it */ /* Clear this after we set it */
p->call_ref_pc = 0; p->calling_party_cat = 0;
if (!ast_strlen_zero(p->redirecting_num)) { if (!ast_strlen_zero(p->redirecting_num)) {
pbx_builtin_setvar_helper(c, "SS7_REDIRECTING_NUMBER", p->redirecting_num); pbx_builtin_setvar_helper(c, "SS7_REDIRECTING_NUMBER", p->redirecting_num);

Loading…
Cancel
Save