<div dir="ltr">Do you want to change/update the SDP once the call is established ? <div>shouldn't it just work like this:</div><div><br></div><div>if(has_totag() && is_method("INVITE")) {<br>      if(search_body("video") {<br>      set_rtpproxy_set("1");<br>      unforce_rtpproxy();<br>      set_rtpproxy_set("2");<br>      offer_rtpproxy("$avp(myflags)"); <br>     }<br>}<br><br>Since it is already a ReINVITE any modification in the SDP c= part should be happily accepted !?<br><br>Regards,</div><div>Sammy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 10:18 AM, Koray Vatansever <span dir="ltr"><<a href="mailto:koray.vatansever@gmail.com" target="_blank">koray.vatansever@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sammy,<div><br></div><div>I'm not sure it will work.</div><div>Assume the following scenario:</div><div>Kamailio receives INVITE with audio only SDP and selects rtpproxy-1.</div><div>After a while video is enabled with REINVITE. </div><div>Now SDP has video and kamailio selects rtpproxy-2 according to your solution.</div><div>In this case, most probably video and audio rtp packages will flow through rtpproxy-2.<br></div><div>However what I want to do is to keep rtpproxy-1 for audio packages and add rtpproxy-2 for video packages </div><div>and release audio ports from rtpproxy-1 and video ports from rtpproxy-2 when BYE received.</div><div><br></div><div>Is there any easy way to do that in Kamailio?</div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 3:30 PM, SamyGo <span dir="ltr"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi, <br>
Yes thats possible as I think you can do a search in SDP body for "video" if found then select the rtpproxy instance else select other one. </p>
<p dir="ltr">Regards,<br>
Sammy</p>
<div class="gmail_quote"><div><div>On Jan 14, 2016 06:39, "Koray Vatansever" <<a href="mailto:koray.vatansever@gmail.com" target="_blank">koray.vatansever@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi everybody,<div><br></div><div>Is there a way to use different rtpproxies for different media types?</div><div>I want to use one rtpproxy set for audio, and use another one for video.</div><div>Is this possible in kamailio?</div><div><br></div><div><br></div><div>Regards,</div><div>Koray</div></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>