<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000066">
<font face="Courier New, Courier, monospace">Hello;<br>
I am trying to rtp processing with rtpproxy. i couldnt find
why it truncate the sdp body. there is no clue in debug mod 4.<br>
Could you hava a look what is wrong?<br>
<br>
rtpproxy running like that "rtpproxy -l public_ip -s
udp:127.0.0.1:7723 -F -m 10000 -M 20000 -d DBUG:LOG_DAEMON"<br>
kamailio version : 4.4.0-pre0<br>
rtpproxy version : Basic version: 20040107<br>
...cfg..<br>
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7723")<br>
modparam("rtpproxy", "nortpproxy_str", "a=sdpmangled:yes\r\n")<br>
</font><br>
<font face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace">route[NATMANAGE] {<br>
#!ifdef WITH_NAT<br>
if (is_request()) {<br>
if(has_totag()) {<br>
if(check_route_param("nat=yes")) {<br>
setbflag(FLB_NATB);<br>
}<br>
}<br>
}<br>
if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))<br>
return;<br>
if (nat_uac_test("8")) {<br>
rtpproxy_manage("co");<br>
}else{<br>
rtpproxy_manage("cor");<br>
}<br>
<br>
if (is_request()) {<br>
if (!has_totag()) {<br>
if(t_is_branch_route()) {<br>
add_rr_param(";nat=yes");<br>
}<br>
}<br>
}<br>
if (is_reply()) {<br>
if(isbflagset(FLB_NATB)) {<br>
#fix_nated_contact();<br>
if(is_first_hop())<br>
set_contact_alias();<br>
}<br>
}<br>
#!endif<br>
return;<br>
}</font><br>
<br>
....<br>
Call flows<br>
<br>
route[NATMANAGE] {<br>
#!ifdef WITH_NAT<br>
if (is_request()) {<br>
if(has_totag()) {<br>
if(check_route_param("nat=yes")) {<br>
setbflag(FLB_NATB);<br>
}<br>
}<br>
}<br>
if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB)))<br>
return;<br>
if (nat_uac_test("8")) {<br>
rtpproxy_manage("co");<br>
}else{<br>
rtpproxy_manage("cor");<br>
}<br>
<br>
if (is_request()) {<br>
if (!has_totag()) {<br>
if(t_is_branch_route()) {<br>
add_rr_param(";nat=yes");<br>
}<br>
}<br>
}<br>
if (is_reply()) {<br>
if(isbflagset(FLB_NATB)) {<br>
#fix_nated_contact();<br>
if(is_first_hop())<br>
set_contact_alias();<br>
}<br>
}<br>
#!endif<br>
return;<br>
}<br>
<br>
<br>
UAC 1 ---> Kamailio ---> UAC 2<br>
RTPPROXY<br>
<br>
Before kamailio <br>
-----------<br>
v=0<br>
<br>
o=Z 0 0 IN IP4 192.168.0.223<br>
<br>
s=Z<br>
<br>
c=IN IP4 192.168.0.223<br>
<br>
t=0 0<br>
<br>
m=audio 8000 RTP/AVP 3 110 8 0 98 101<br>
<br>
a=rtpmap:110 speex/8000<br>
<br>
a=rtpmap:98 iLBC/8000<br>
<br>
a=fmtp:98 mode=20<br>
<br>
a=rtpmap:101 telephone-event/8000<br>
<br>
a=fmtp:101 0-15<br>
<br>
a=sendrecv<br>
------<br>
<br>
after kamailio<br>
------------<br>
v=0<br>
<br>
o=Z 0 0 IN IP4 19<br>
------------<br>
<br>
<br>
</font>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<div align="left">
<div style="width:300px;" align="left">
<a href="http://www.netgsm.com.tr" target="_blank">
<br>
</a>
</div>
</div>
</div>
</body>
</html>