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