<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Calibri Light">Hi<br>
<br>
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?<br>
<br>
I tried with:<br>
<br>
</font>
<div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(212,212,212)">if(is_audio_on_hold()) {</span></div><div><span style="color:rgb(212,212,212)"> xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(206,145,120)">"onHOLD"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div><div><span style="color:rgb(212,212,212)"> </span></div><div><span style="color:rgb(212,212,212)"> rtpengine_play_media(</span><span style="color:rgb(206,145,120)">"file=/home/ringback.wav"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div>
<div><span style="color:rgb(212,212,212)"> }
</span></div></div>
<br>
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.<br>
<br>
<br>
thank you<br>
miha<br>
</body>
</html>