From 3c061000b5841a73be4a3e8c5aea5b63f097dc59 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Tue, 14 Feb 2006 19:30:32 +0000 Subject: [PATCH] Make sure we reset the field if we get one in a disconnect git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@310 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/q931.c b/q931.c index 72f86ba..f42b09e 100644 --- a/q931.c +++ b/q931.c @@ -3516,6 +3516,8 @@ int q931_receive(struct pri *pri, q931_h *h, int len) pri->ev.hangup.cause = c->cause; pri->ev.hangup.call = c; pri->ev.hangup.aoc_units = c->aoc_units; + libpri_copy_string(pri->ev.hangup.useruserinfo, c->useruserinfo, sizeof(pri->ev.ring.useruserinfo)); + c->useruserinfo[0] = '\0'; if (c->alive) return Q931_RES_HAVEEVENT; else