]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ari/pjsip: Make it possible to control transfers through ARI
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Sat, 15 Jun 2024 08:01:58 +0000 (16:01 +0800)
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>
Tue, 11 Feb 2025 22:05:40 +0000 (22:05 +0000)
commit5e4fca062c9f4b4f0aaf5ce9572ae5a3379d6b25
treee7d45bd2aa7c06f2bebff3736dd5f071c19ab643
parent00af359ea9f41bf16dd3871289764590fc501170
ari/pjsip: Make it possible to control transfers through ARI

Introduce a ChannelTransfer event and the ability to notify progress to
ARI. Implement emitting this event from the PJSIP channel instead of
handling the transfer in Asterisk when configured.

Introduce a dialplan function to the PJSIP channel to switch between the
"core" and "ari-only" behavior.

UserNote: Call transfers on the PJSIP channel can now be controlled by
ARI. This can be enabled by using the PJSIP_TRANSFER_HANDLING(ari-only)
dialplan function.
18 files changed:
channels/chan_pjsip.c
channels/pjsip/dialplan_functions.c
channels/pjsip/dialplan_functions_doc.xml
channels/pjsip/include/dialplan_functions.h
include/asterisk/frame.h
include/asterisk/refer.h
include/asterisk/res_pjsip_session.h
include/asterisk/stasis_channels.h
main/refer.c
main/stasis_channels.c
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_channels.c
res/ari/resource_channels.h
res/res_ari_channels.c
res/res_pjsip_refer.c
rest-api/api-docs/channels.json
rest-api/api-docs/events.json