180 'ringing' trigger ringback in app locally

Hello, newcomer and first post so please go easy on me if/when i say something stupid :slight_smile:

In our web app at the moment we are having success where 18x SDP Early Media from the PSTN / Far End is sent it plays the desired media but if a clean 180 or a 183 (no SDP) is sent and the app gets the ‘ringing’ event how do we trigger this to play a local ringtone?

Trying to mimic the behaviour of a SIP phone but in the case of the app as there is no OFFER we can’t pipe the audio through but at the moment can’t work out if this can be generated locally.

Any help appreciated

Just use that 180/183 trigger to locally play an audio sound in an <audio> element. This has nothing to do with Janus or WebRTC, it’s part of the client application logic.

1 Like

Thanks for the reply. We resolved this another way, converting the 18x to a 183SDP every time and playing the Ringtone of our choice that way (region specific) but going to review this option and see what will be best in the long run. Thanks for the reply