Playing a sound to an extension during a call

I’m no scripting guru, but I’ve managed to setup a script that plays a message to an external line during a call when an extension dials ‘*9’.
This is to play a contract message to the external party, after which the system starts recording.
But… the person on the local extension doesn’t know when the outgoing message has finished because they can’t hear it! Is there any way to play a beep, a message, or anything at all back to the internal extension when the message is complete? Even a beep like call-waiting tone would do.

Any clue whatsoever would be greatly appreciated! I’ve had a local telco looking into it for 4 weeks and they seem to be no further towards finding a solution than me!

Cheers,
Jason

Hi

But you havent said what you did to achieve this, I guess its an application map but who knows.

perhaps you could show us what you have done it

To do what you want you could have a applicationmap that crates a local call and then plays the message in a confernece.

Sorry, I had no FTP access where I was, so couldn’t access my code.
Here it is:

features.conf:

[applicationmap]
testfeature => *9,callee,Macro,agreement

extensions_custom.conf:

[macro-agreement]
exten => s,1,GotoIf($["${XAD}" = “0” | “${XAD}” = “”]?startrec:stoprec)

exten => s,n(startrec),NoOp(Starting recording process!)
exten => s,n,Set(XAD=1)
exten => s,n,Set(FILENAME=${TIMESTAMP}-OUT${CALLERID(number)}-^-${UNIQUEID})
; MP3: exten => s,n,Set(MONITOR_EXEC_ARGS=&& nice -n 19 /usr/bin/lame --vbr-new -b 96 -t -F -m m --bitwidth 16 --quiet “/var/spool/asterisk/monitor/${FILENAME}.wav” “/var/spool/asterisk/monitor/${FILENAME}.mp3” && rm -f "/var/spool/asterisk/monitor/${FILENAME}*.wav && rm -f “/var/spool/asterisk/monitor/${FILENAME}.wav”)
exten => s,n,Monitor(wav,${FILENAME},m)
exten => s,n,Playback(agreementmessage)
exten => s,n,MacroExit

exten => s,n(stoprec),NoOp(Stopping recording for agreement)
exten => s,n,StopMonitor
exten => s,n,Set(XAD=0)
exten => s,n,Playback(thank-you-cooperation)
exten => s,n,MacroExit

No suggestions?
As far as I understand it, conferences are initiated by the phone, not the exchange, so I can’t setup a conference to play the message.

Has anyone had any experience of sending audio to the internal extension in this way?

Cheers,
Jason