I would like Asterisk to listen to incoming SIP calls. When it gets a call, it should play a wave file as early media (that is, send 180 or 183 Ringing with SDP body and play the whole wave file before sending 200 OK).
I mention I have searched in this forum and in Internet, but I’ve found no results regarding this feature.
Thank you in advance,
Yes, its usual need and solution is very, very simple
exten => s,n,Playback(file.wav,noanswer)
But be careful - in case you send Session Progress + InBand (i.e. 183 + SDP) your VoIP TSP opens only recieving audio channel, not both (it will be done after recieving 200 OK). This is due to TelCo laws significant in most countries…
Hope this helps!