Is it possible to play a greeting sound during ringing, like in Ring Groups with MOH (Music on Hold) and the “Ring in Use” option selected?
Hi, not tested, but a simple subroutine should do the trick :
Create a file : /etc/asterisk/extensions_extra.d/your_filename.conf
Adapt moh-class to your needs
[user_incall_moh_for_greeting]
exten => s,1,NoOp()
same => n,Set(WAZO_CALLOPTIONS=m(moh-class))
; same => n,Verbose(WAZO_CALLOPTIONS : ${WAZO_CALLOPTIONS})
same => n,Return()
Reload the dialplan :
asterisk -rx 'dialplan reload'
On the user, set user_incall_moh_for_greeting
as subroutine option
1 Like