]> 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)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 11 Feb 2025 22:05:42 +0000 (22:05 +0000)
commit71eb8a262f53f0a417991232ecff0eb67a3bca6a
treea217dd5d555819b94ee2a1511f6368d27caa9b05
parent896a488cd569651a41070984524bab64d99b413b
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