[SR-Users] has_sdp()??

Ovidiu Sas osas at voipembedded.com
Wed Oct 17 18:03:00 CEST 2012


That could be relatively easy to implement because the sdp parser is
able to handle SDP in a multipart/mixed body.

-ovidiu

On Wed, Oct 17, 2012 at 11:57 AM, Juha Heinanen <jh at tutpro.com> wrote:
> Ron Hopson writes:
>
>> I use kamailio 3.3 and it does not exist.  Instead I use:
>>      if(has_body("application/sdp")){
>
> ron,
>
> thanks for your reply although i don't understand how
> has_body("application/sdp") would work, because textops readme on
> has_body tells:
>
>   If a parameter is given, the mime described will be also checked against
>   the “Content-Type” header.
>
> the reason is that content-type can very well be, for example,
> multipart/mixed (or something like that) and still the body can contain
> sdp.
>
> in my opinion rtpproxy functions should tell via return value if sdp
> existed, i.e., if they did something, rather than requiring script
> writer to check it beforehand.
>
> -- 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



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com



More information about the sr-users mailing list