Inject a playback into a simple bridge connection?!

Hy guys!

I would like to inject a playback into a simple bridge connection.

For example when I call the xxxyyyzzz number and the xxxyyyzzz answered Me and the callered would like to hear a welcome sound in same time.

Is it possible?
If yes, how can a do this?

Has anyone suggestion how can I solve this problem? :smile:

Try this “untested” code.

[incoming]
exten => _X.,1,Noop(INCOMING CALL)
same => n,Set(__CALLEE=${EXTEN})
same => n,Dial(SIP/${CALLEE},M(callanswered))

[macro-callanswered]
exten => s,1,Noop(${CALLEE} answered the call)
same => n,Originate(Local/${CALLEE}@spy,app,Playback,my_announcement)
;my_announcement is an audio file name

[spy]
exten => _X.,1,Noop(PLAY MUSIC THROUGH CHANSPY)
same => n,Answer()
same => n,ChanSpy(SIP/${EXTEN},BE)
same => n,Hangup()

–Satish Barot
satish4asterisk@gmail.com