[SR-Users] Kamailio 3.2 + RTP proxy - no errors - no media
Lukas Lani
lanilukas at gmail.com
Sun Jun 10 17:40:59 CEST 2012
Hi Klaus,
I reviewed once again mine kamailio.cfg. I use code from
http://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6
where rtpproxy_manage("FAIE") or rtpproxy_manage("FAEI") functions are to relay
RTP.
/////
# RTPProxy control
route[NATMANAGE] {#!ifdef WITH_NAT
if (is_request()) {
if(has_totag()) {
if(check_route_param("nat=yes")) {
setbflag(FLB_NATB);
} else {
if(check_route_param("nat=v46")) {
setbflag(FLB_V4V6);
}
}
}
}
if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)
|| isbflagset(FLB_V4V6)))
return;
if(isbflagset(FLB_V4V6)) {
if(af==INET6) {
rtpproxy_manage("FAEI");
} else {
rtpproxy_manage("FAIE");
}
} else {
if(af==INET6) {
rtpproxy_manage("FAEE");
} else {
rtpproxy_manage("FAII");
}
}
if (is_request()) {
if (!has_totag()) {
if(isbflagset(FLB_V4V6)) {
add_rr_param(";nat=v46");
} else {
add_rr_param(";nat=yes");
}
}
}
if (is_reply()) {
if(isbflagset(FLB_NATB)) {
if(af==INET) {
fix_nated_contact();
}
}
}#!endif
return;}
/////
...but either it looks like does not work for me.
Lukas
2012/6/6 Klaus Darilion <klaus.mailinglists at pernau.at>
> For "briding" you have to isntruct rtpproxy when to use which interface.
>
> Thus, in kamailio.cfg, when processing a message, find out if the message
> goes from v4 to v6, or vice versa , or v4-v4 or v6-v6.
>
> Then instruct rtpproxy about the direction using the 'e' and 'i' flag. i
> stands for internal and means rtpproxy's first interface, e for external
> and rtpproxy's second interface.
>
> http://kamailio.org/docs/**modules/3.2.x/modules/**rtpproxy.html#id2535618<http://kamailio.org/docs/modules/3.2.x/modules/rtpproxy.html#id2535618>
>
> Thus, when starting rtpproxy with "-l 192.168.6.2 -6
> /2001:6666:6666:6666::2" the internal interface is v4, the external is v6.
>
> Thus, for example when processing an INVITE sent from v4 to v6, use the
> rtpproxy flags 'ie', for the 200 OK use 'ei'.
>
> regards
> Klaus
>
>
> On 05.06.2012 11:15, Lukas Lani wrote:
>
>> Hi,
>>
>> I am trying to use RTPproxy 1.2.1 in bridge mode between IPv4 and IPv6
>> together with Kamailio 3.2. I configured and ran it on server together
>> with Kamailio.
>> I start it with parameters:
>> -l 192.168.6.2 -6 /2001:6666:6666:6666::2 -s udp:localhost:7722
>> SIP messages are correctly exchanged, SDP looks to be translated, but
>> when RTP session starts, I see RTP flow only from UC1 to RTPproxy and
>> nothing more.
>> On RTPproxy server I see 4 open ports for IPv4 address but no one for
>> IPv6 address.
>> When I tried to change start parameters to
>> -6 2001:6666:6666:6666::2 -l /192.168.6.2 <http://192.168.6.2/> -s
>>
>> udp:localhost:7722
>> I could see 4 open ports for IPv6 address but no one for IPv4 address.
>>
>> Can anybody help? do you know about any known error? can it be related
>> to Kamailio or RTPproxy?
>>
>> thank you,
>> Lukas Lani
>>
>>
>> ______________________________**_________________
>> 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<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120610/cc7f6158/attachment.htm>
More information about the sr-users
mailing list