Got it.
That is something that I dont think is possible with RTPproxy. Just read
the functions for nathelper as well as rtpproxy twice and it just says it
will modify the seasion level c= or media connection but nowhere it says we
can tell which specific c attrib to modify.
Im only assuming that
Hi everybody,
Is there a way to use different rtpproxies for different media types?
I want to use one rtpproxy set for audio, and use another one for video.
Is this possible in kamailio?
Regards,
Koray
___
SIP Express Router (SER) and Kamailio
Hi,
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.
Regards,
Sammy
On Jan 14, 2016 06:39, "Koray Vatansever"
wrote:
> Hi everybody,
>
> Is there a way to use different
I think I couldn't explain myself clearly.
I want to see the following media lines in resulting SDP:
m=audio 10076 RTP/AVP 97 98
c=IN IP4 rtpproxy1.example.com
a=rtpmap:97 speex/8000
a=fmtp:97 vbr=on
a=rtpmap:98 telephone-event/8000
m=video 20007 RTP/AVP 96
c=IN IP4 rtpproxy2.example.com
Do you want to change/update the SDP once the call is established ?
shouldn't it just work like this:
if(has_totag() && is_method("INVITE")) {
if(search_body("video") {
set_rtpproxy_set("1");
unforce_rtpproxy();
set_rtpproxy_set("2");
offer_rtpproxy("$avp(myflags)");
Hi Sammy,
I'm not sure it will work.
Assume the following scenario:
Kamailio receives INVITE with audio only SDP and selects rtpproxy-1.
After a while video is enabled with REINVITE.
Now SDP has video and kamailio selects rtpproxy-2 according to your
solution.
In this case, most probably video