]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: set CHANNEL(hangupsource) when a PRI channel hangs up
authorFrederic LE FOLL <frederic.lefoll@c-s.fr>
Thu, 5 Sep 2019 15:52:13 +0000 (17:52 +0200)
committerFrederic LE FOLL <frederic.lefoll@c-s.fr>
Tue, 10 Sep 2019 15:59:02 +0000 (10:59 -0500)
commit9e67c925027ec59154406f82cea4cb3934bdf2a7
tree9fd8dc1fa0e6df87046e26a52cf218456e67748c
parent03625b4bc6bfc4d239ae75bd6b4d49ef6707d6bd
chan_dahdi: set CHANNEL(hangupsource) when a PRI channel hangs up

When the remote ISDN party ends an ISDN call on a PRI link
(DISCONNECT), CHANNEL(hangupsource) information is not available.

chan_dahdi already contains an ast_set_hangupsource() in
__dahdi_exception() function but it seems that ISDN message processing
does not use this part of code.

Two other channel modules associate ast_queue_hangup() and
ast_set_hangupsource() functions calls:
- chan_pjsip in chan_pjsip_session_end() function,
- chan_sip in sip_queue_hangup_cause() function.
chan_iax2 separates them, in iax2_queue_hangup()/iax2_destroy() and
set_hangup_source_and_cause().

Thus, I propose to add ast_set_hangupsource() beside
ast_queue_hangup() in sig_pri_queue_hangup(), like chan_pjsip and
chan_sip already do.

ASTERISK-28525

Change-Id: I0f588a4bcf15ccd0648fd69830d1b801c3f21b7c
channels/sig_pri.c