[SR-Users] how to replace sdp c line?

Peter Dunkley peter.dunkley at crocodilertc.net
Thu Oct 17 11:14:30 CEST 2013


I was using one of these functions on SDP with Git master around 3 or 4
months ago.

I can't remember exactly what I did as fixes to the equipment I was
connected to allowed me to take out the "hack", but it worked at that point.

Regards,

Peter


On 17 October 2013 09:53, Juha Heinanen <jh at tutpro.com> wrote:

> Peter Dunkley writes:
>
> > I think I used replace_body_re() from textops.
>
> peter,
>
> replace_body_re() does not exist, but replace_body(re,txt) does.
>
> i made a test call:
>
> replace_body("c=IN IP4", "c=IN IP5");
>
> and result was that original c=IN IP4 ... line is still in outgoing
> request, but a new line
>
> c=IN IP5
>
> is added as the last line to the sdp.
>
> very weird.  perhaps a bug in the function?
>
> -- juha
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131017/49dd81bb/attachment.html>


More information about the sr-users mailing list