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
remotes/origin/1.4
Matthew Fredrickson 19 years ago
parent a98061f019
commit 3c061000b5

@ -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

Loading…
Cancel
Save