After dialing to a remote callcenter and getting past the IVR, my customer's staff usually end up waiting a long time for an agent to pickup, while listening to hold music. I am considering a possibility where they can transfer the call to a dialplan on their local freeswitch, which awaits the ringtone of the remote agent. Once the dialplan detects that the agent phone ringing, it should forward the call back to the original caller.
There are not many examples for tone_detect application. Assuming it is US ring tone, how should the tone specification look like?
<action application="tone_detect" data="ring 440,480 r 0 transfer '1000 XML default' 2">
I doubt the above will work because, US ring tone plays 440+480 Hz on for 2000ms off for 4000ms. I am not sure how I can specify that.