]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE()
authorIgor Goncharovsky <igorg@iqtek.ru>
Thu, 4 Sep 2025 04:54:27 +0000 (10:54 +0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 7 Oct 2025 15:27:04 +0000 (15:27 +0000)
commit517766299093d7a9798af68b39951ed8b2469836
treef0c7507dc23d21897695b0da4e1b0847d5fb9eb5
parentcf9c107e4d7dde39ae9a8d1e6d2bf2d929f3699a
func_hangupcause.c: Add access to Reason headers via HANGUPCAUSE()

As soon as SIP call may end with several Reason headers, we
want to make all of them available through the HAGUPCAUSE() function.
This implementation uses the same ao2 hash for cause codes storage
and adds a flag to make difference between last processed sip
message and content of reason headers.

UserNote: Added a new option to HANGUPCAUSE to access additional
information about hangup reason. Reason headers from pjsip
could be read using 'tech_extended' cause type.
funcs/func_hangupcause.c
include/asterisk/channel.h
include/asterisk/frame.h
main/channel_internal_api.c
res/res_pjsip_rfc3326.c