[OpenSIPS-Users] MOH / rtpengine

Miha miha at softnet.si
Mon Aug 9 06:19:40 EST 2021


Hi

when call is being trasfered to another number MS Teams sends new Invite 
with SDP as 'a=inactive'. How can I put ringback ton as MOH for this 
sitation?

I tried with:

if(is_audio_on_hold()) {
                  xlog("L_INFO", "onHOLD");
                                     rtpengine_play_media("file=/home/ringback.wav");
                   }

 From logs i can see that due to a=inactive rtpengine will not play 
media. I tried also to replace inactive with sendonly with function 
body_replace before I call rtpengine_play_media but it does not help.


thank you
miha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210809/f999906c/attachment.html>


More information about the Users mailing list