Re: [OpenSIPS-Users] change_reply_status - dropping SDP from 183?

2019-10-28 Thread Fabian Gast

You can use something like

loadmodule "sipmsgops.so"

onreply_route[myreply] {

if (t_check_status("183")) {
change_reply_status("180", "Ringing");
remove_body_part("application/sdp");
}
}

Fabian

- Ursprüngliche Mail -
Von: "Monideth Pen" 
An: "OpenSIPS users mailling list" 
Gesendet: Freitag, 18. Oktober 2019 10:06:42
Betreff: [OpenSIPS-Users] change_reply_status - dropping SDP from 183?

Hi, 
I am able to map 183 to 180 using the change_reply_status() function. 

However, I would also like to drop SDP if it is present in the 183. How could I 
achieve this? 

Thank you. 

___ 
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


[OpenSIPS-Users] change_reply_status - dropping SDP from 183?

2019-10-28 Thread Monideth Pen
Hi,

I am able to map 183 to 180 using the change_reply_status() function.

However, I would also like to drop SDP if it is present in the 183. How
could I achieve this?

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


Re: [OpenSIPS-Users] change_reply_status - dropping SDP from 183?

2019-10-18 Thread solarmon
Hi,

If found the solution to my question. I used remove_body_part():

remove_body_part("application/sdp");

Thanks you.

On Fri, 18 Oct 2019 at 09:08, solarmon  wrote:

> Hi,
>
> I am able to map 183 to 180 using the change_reply_status() function.
>
> However, I would also like to drop SDP if it is present in the 183. How
> could I achieve this?
>
> Thank you.
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users