Search code examples
voipfreeswitch

Freeswitch: play ringing tone to A-leg, while we play some message to called party B-leg


In asterisk dial command A(x): Play an announcement (x.gsm) to the called party. is available to play some message to b-leg and still keep a-leg hear ringing tone.

In freeswitch i tried

_nolocal_execute_on_answer=playback <file>

and

bridge_pre_execute_bleg_app=playback bridge_pre_execute_bleg_data=<file>

I get initial ringtone before bridge. But then after b-leg asnwer, A-leg gets only silent audio until the audio file gets completed on B-leg. How do i make it such that A-leg still gets ring tone, while there is a message being played only to B-leg? Your suggestion might help me a lot!


Solution

  • group_confirm_file is the best option for playing a message to callee before bridging the call to A leg

    <action application="set" data="group_confirm_file=playback /path/to/prompt.wav"/> <action application="set" data="group_confirm_key=exec"/>

    Reference: FS-jira and FS-wiki