]> 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)
committerIgor Goncharovsky <igorg@iqtek.ru>
Tue, 7 Oct 2025 15:26:56 +0000 (15:26 +0000)
commit4f45f21b712b1506bfc02a42e8cc6787437b1b91
tree08269e95f05c3b5d16af96b2c23595eb01857e0a
parent129f90e3db42f66275432638fefa18bf996aae9b
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