Hello

 have issue with replace_body as it does not change SDP.
My code looks like this:

if (has_body("application/sdp")){
            if(search_body("a=inactive")){
*replace_body("^a=inactive$", "a=sendonly");*

            }

                 $var(rtpengine_flags) ="trust-address replace-origin replace-session-connection  ICE=remove RTP/AVP rtcp-mux-demux";
                 rtpengine_offer("$var(rtpengine_flags)");

                  if(is_audio_on_hold()) {

                    rtpengine_play_media("callee file=/home/ringback.wav");
                  }

             t_on_reply("1");
}

What could be wrong that inactive is not replaced by sendonly?
On a leg I can see "a=inactive" and also on b leg "a=inactive".


thank you
miha
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to