<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Hello,</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">I have
a problem with RTPProxy. <br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Scenario:</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">SS7
(PSTN) ---> ASTERISK BOX --> Kamailio --> UAC<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">In case
of incoming call from PSTN, when called party answer the call
after 60 seconds of ringing, then the call is without audio
and in this case I see in the log this message:</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Creating
session<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Jul 11
11:24:32 b2b-voice-sipproxy-v3 rtpproxy[731]:
<a class="moz-txt-link-freetext" href="INFO:handle_command">INFO:handle_command</a>: new session
<a class="moz-txt-link-abbreviated" href="mailto:766d0e006d8969d36c628e363ea7c3e1@upc.cz">766d0e006d8969d36c628e363ea7c3e1@upc.cz</a>, tag as7a7c86ae;1
requested, type strong<br>
Jul 11 11:24:32 b2b-voice-sipproxy-v3 rtpproxy[731]:
<a class="moz-txt-link-freetext" href="INFO:handle_command">INFO:handle_command</a>: new session on a port 52902 created, tag
as7a7c86ae;1<br>
Jul 11 11:24:32 b2b-voice-sipproxy-v3 rtpproxy[731]:
<a class="moz-txt-link-freetext" href="INFO:handle_command">INFO:handle_command</a>: pre-filling caller's address with
XXX.XXX.XXX.XXX:32740<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Answer
after approx 60 seconds<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Jul 11
11:25:40 b2b-voice-sipproxy-v3 rtpproxy[731]:
<a class="moz-txt-link-freetext" href="INFO:handle_command">INFO:handle_command</a>: lookup request failed: session
<a class="moz-txt-link-abbreviated" href="mailto:766d0e006d8969d36c628e363ea7c3e1@upc.cz">766d0e006d8969d36c628e363ea7c3e1@upc.cz</a>, tags
as7a7c86ae;1/l0g9iusua2;1 not found<br>
Jul 11 11:25:40 b2b-voice-sipproxy-v3 rtpproxy[731]:
<a class="moz-txt-link-freetext" href="INFO:handle_delete">INFO:handle_delete</a>: forcefully deleting session 1 on ports
35196/36656<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Kamailio
log (answer)<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Jul 11
11:25:40 b2b-voice-sipproxy-v3 kamailio[5268]: INFO:
<script>: <a class="moz-txt-link-abbreviated" href="mailto:UID:766d0e006d8969d36c628e363ea7c3e1@upc.cz">UID:766d0e006d8969d36c628e363ea7c3e1@upc.cz</a> --
ONREPLY_ROUTE: rtpproxy_manage(co)<br>
Jul 11 11:25:40 b2b-voice-sipproxy-v3 kamailio[5268]: ERROR:
rtpproxy [rtpproxy.c:2536]: force_rtp_proxy(): incorrect port
0 in reply from rtp proxy<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">It
looks like there is somewhere 60 seconds session timeout. But
I don't know where. When the call is answered during first 60
seconds, then everything is OK and we have both audio.<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Kamailio
reply route configuration:<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">onreply_route[REPLYROUTE]
{<br>
#<br>
#-- On-replay block routing --<br>
#<br>
xlog("L_INFO","UID:$ci -- ONREPLY_ROUTE1: $rm $si avp
$avp(s:131) $avp(s:132)");<br>
if(has_body("application/sdp")) {<br>
xlog("L_INFO","UID:$ci -- ONREPLY_ROUTE:
rtpproxy_manage(co)");<br>
rtpproxy_manage("co");<br>
}<br>
<br>
if ((isflagset(FLT_NATS) || isbflagset(FLB_NATB))
&& status=~"(183)|(2[0-9][0-9])"){<br>
xlog("L_INFO","UID:$ci -- ONREPLY_ROUTE1:
force_rtp_proxy");<br>
append_hf("P-hint:
onreply_route|force_rtp_proxy \r\n");<br>
}<br>
<br>
if (isbflagset(FLB_NATB)) {<br>
xlog("L_INFO","UID:$ci -- ONREPLY_ROUTE1:
P-hint: Onreply-route - fixcontact");<br>
append_hf("P-hint: Onreply-route - fixcontact
\r\n");<br>
fix_nated_contact();<br>
}<br>
exit;<br>
}<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Some
parameters settings.<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">modparam("rtpproxy",
"rtpproxy_sock", "udp:127.0.0.1:7722")<br>
modparam("rtpproxy", "extra_id_pv", "$avp(extra_id)")<br>
modparam("rtpproxy", "rtpproxy_disable_tout", 20)<br>
modparam("rtpproxy", "rtpproxy_tout", 2)<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">modparam("tm",
"disable_6xx_block", 1)<br>
modparam("tm", "fr_timer", 5000) ## 5 seconds. <br>
modparam("tm", "restart_fr_on_each_reply", 0)<br>
modparam("tm", "auto_inv_100_reason", "Trying")<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">modparam("dialog",
"dlg_flag", 4)<br>
modparam("dialog", "rr_param", "rtp")<br>
modparam("dialog", "default_timeout", 7230)<br>
modparam("dialog", "dlg_match_mode", 1)<br>
modparam("dialog", "db_mode", 1)<br>
modparam("dialog", "enable_stats", 1)<br>
modparam("dialog", "send_bye", 1)<br>
modparam("dialog", "lreq_callee_headers", "TH: dlh\r\n")<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">modparam("rr",
"enable_full_lr", 1)<br>
modparam("rr", "append_fromtag", 1)<br>
modparam("rr", "enable_double_rr", 1)<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">RTPproxy
is installed from Debian package:<br>
</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif"> /usr/bin/rtpproxy
-s udp:127.0.0.1 7722 -u rtpproxy rtpproxy -p
/var/run/rtpproxy/rtpproxy.pid -F -l XXX.XXX.XXX.XXX -d DBUG
LOG_LOCAL0</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Any
advice?</font></font></p>
<p><font size="-1"><font face="Helvetica, Arial, sans-serif">Thanks<br>
</font></font></p>
<br>
</body>
</html>