Hi everyone

I am trying to remove a line from the SDP resulting from rtpengine_offer()
but it's not working for me. Can anyone tell me what I am doing wrong
please?

if (is_from_gw("2")) {
                remove_hf("Contact","g");
                insert_hf("Contact: <sip:$fU@
$var(fqdn):5061;did=$DLG_did>\r\n");
                xlog("CUSTOM_LOG: Call to Microsoft - Adjusting SIP Headers
& SDP");
                set_advertised_address("$var(fqdn)");
                record_route_preset("my.fqdn:5061;transport=tls",
"XXX.XXX.XXX.XXX:5060");
                add_rr_param(";r2=on");
                record_route();
                if (replace_body("a=setup:actpass","")) {
                        xlog("CUSTOM_LOG: Removed a=setup:actpass line from
SDP");
                }
}

I have also tried:

if (replace_body("a=setup:actpass\r",""))
and
if (replace_body("a=setup:actpass\r\n",""))

Many thanks
Mark.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to