]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 30 Oct 2025 16:09:10 +0000 (16:09 +0000)
commit17ae831db531e91fec00f27ee4d6dff3eacbb5a2
treec273254bf7a31b23c411d5d5dc6272efdecd60c6
parent9b96b6bd59b0928aebd70cc36e2fe2812cc9597e
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