[SR-Users] sdp_with_transport

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 1 09:38:02 CET 2017


Hello,

looking in the code, the sdp_with_transport() does a strict/exact match
on the transport part - the parameter of the function must be exact
value in the sdp. The sdp_with_transport_like() does a fuzzy match - the
parameter of the function must be part of the value in the sdp.

Therefore, if you want to test the presence of RTP/SAVPF, the
sdp_with_transport_like() should be used.

Cheers,
Daniel


On 31/01/2017 21:00, Serhat Guler wrote:
> Hello,
>
> I have also realized that weird weird behavior with sdp_with_transport
> method and started using sdp_with_transport_like("RTP/SAVPF") instead. 
>
> sdp_with_transport("RTP/SAVPF") returns false for the following
> line: m=audio 56481 UDP/TLS/RTP/SAVPF 109 9 0 8
>
> If anyone could clarify it, it would be perfect.
>
> Cheers,
> Serhat
>
> On 31 January 2017 at 20:03, M. Salman <msalman212 at gmail.com
> <mailto:msalman212 at gmail.com>> wrote:
>
>     Hi Guys,
>
>     Just wanted to clarify the following case:
>
>     what should be result of sdp_with_transport("RTP/SAVPF") on line:
>
>     m=audio 10231 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
>
>     I am having a weird behavior for two different versions of
>     Kamailio. I hope I am doing something wrong. 
>
>     kamailio 4.3.2 => sdp_with_transport("RTP/SAVPF") = true
>     kamailio 4.4.5 => sdp_with_transport("RTP/SAVPF") = false
>
>
>
>     -- 
>     Regards
>
>     M. Salman VoIP Professional
>
>
>     _______________________________________________
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>     list
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>     <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
>
>
>
> _______________________________________________
> 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

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170201/9fbc8344/attachment.html>


More information about the sr-users mailing list