Hello Miha,

You can try in dialog requests section use

       if(has_body("application/sdp")) {
                if(search_body("a=sendonly") || search_body("a=inactive")) {

Also might need try use

from-tag parameter, address (media address from the SDP), SRTP flags


volga629

On 8/9/21 3:19 AM, Miha via Users wrote:
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

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to