]> 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:26 +0000 (22:05 +0000)
commita0d0c47d064206b61b958a016322dd3b1144ed3c
tree3cb8ed989e01ac7ba0ce89ddd1baf71450602ce6
parentd53f96b6afb74ff44df7c8882857ff1ae55c0172
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