versatica / JsSIP

JsSIP, the JavaScript SIP library
https://jssip.net
Other
2.4k stars 739 forks source link

Play audio or tone to remote user. #840

Closed jahoppe closed 9 months ago

jahoppe commented 9 months ago

I would like to see the ability to play an audio file or tone (specifying frequency and pitch) to the remote user while not blocking the audio stream. This can be used for playing a call recording notification beep (or tone) to the other party every X seconds. We can use it to play a previously recorded perfect answer right before the agent starts to speak. It would allow us to have an answering machine type functionality for incoming calls.

playback(audio file name and location); playback(various options for playing a tone);

NOTE: It would have to handle not only peer to peer connections, but also peer to Asterisk connections. I don't know if there would be a distinction between these two scenarios, so I am bringing it up.

Thanks

jahoppe commented 9 months ago

playback(audio file name); playback(options for playing tone);

ibc commented 9 months ago

Sorry, that's not the purpose of JsSIP.