<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you better use rtpproxy_manage(), to be work also when the sdp is in
200ok and ACK (not in INVITE).<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 9/14/12 11:47 PM, Cenk İlker İzanlı
wrote:<br>
</div>
<blockquote
cite="mid:CAHyEZiA9FbcOca9JWCPKW=ny9MTdBMa1oApedrn00QRCbTysGQ@mail.gmail.com"
type="cite">I've found the answer on this link, at the bottom of
page says:<br>
<br>
<a moz-do-not-send="true"
href="http://www.kamailio.org/wiki/install/upgrade/3.1.x-to-3.2.0">http://www.kamailio.org/wiki/install/upgrade/3.1.x-to-3.2.0</a><br>
<h3 class="sectionedit15">
<a moz-do-not-send="true" name="modulesrtpproxy"
id="modulesrtpproxy">modules/rtpproxy</a></h3>
<div class="level3">
<ul>
<li class="level1">
<div class="li"> force_rtp_proxy() removed</div>
<ul>
<li class="level2">
<div class="li"> use rtpproxy_offer() when it is SDP
offer (mainly on INVITE request) and rtpproxy_answer()
when it is SDP answer (mainly on INVITE replies)</div>
</li>
<li class="level2">
<div class="li"> new alternative is to use
rtpproxy_manage() which does the detection of SDP
offer/answer internally</div>
</li>
</ul>
</li>
</ul>
<p>Then, on the line 729 replace force_rtp_proxy() with <b>rtpproxy_offer()</b>
and on the line 806, replace force_rtp_proxy() with <b>rtpproxy_answer()</b><br>
</p>
<p><br>
</p>
</div>
<br>
<br>
<div class="gmail_quote">2012/9/15 Cenk İlker İzanlı <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:cenkilker@gmail.com" target="_blank">cenkilker@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm installing kamailio and rtpproxy with this guide.<br>
<br>
<a moz-do-not-send="true"
href="http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour"
target="_blank">http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour</a><br>
<br>
Versions of the programs:<br>
# aptitude versions rtpproxy<br>
i
1.2.1-1
stable 500<br>
root@li304-234:~# kamailio -V<br>
version: kamailio 3.3.0 (x86_64/linux)<br>
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT
PKG_SIZE 4MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt,
select.<br>
id: unknown<br>
compiled on 22:18:19 Jun 18 2012 with gcc 4.4.5<br>
<br>
<br>
When I start kamailio, I get this error,<br>
<br>
Sep 14 17:08:44 (none) kamailio: ERROR: <core>
[cfg.y:3455]: cfg. parser: failed to find command
force_rtp_proxy<br>
Sep 14 17:08:44 (none) kamailio: : <core> [cfg.y:3594]:
parse error in config file /etc/kamailio/kamailio.cfg, line
729, column 19: unknown command, missing loadmodule?#012<br>
Sep 14 17:08:44 (none) kamailio: ERROR: <core>
[cfg.y:3455]: cfg. parser: failed to find command
force_rtp_proxy<br>
Sep 14 17:08:44 (none) kamailio: : <core> [cfg.y:3594]:
parse error in config file /etc/kamailio/kamailio.cfg, line
806, column 19: unknown command, missing loadmodule?#012<br>
<br>
Related lines throwing error are below.<br>
<br>
724 route[RTPPROXY] {<br>
725 #!ifdef WITH_NAT<br>
726 if (is_method("BYE")) {<br>
727 unforce_rtp_proxy();<br>
728 } else if (is_method("INVITE")){<br>
729 force_rtp_proxy();<br>
730 }<br>
731 if (!has_totag()) add_rr_param(";nat=yes");<br>
732 #!endif<br>
733 return;<br>
734 }<br>
735<br>
<br>
<br>
803 #!ifdef WITH_NAT<br>
804 if ((isflagset(FLT_NATS) || isbflagset(FLB_NATB))<br>
805 &&
status=~"(183)|(2[0-9][0-9])") {<br>
806 force_rtp_proxy();<br>
807 }<br>
808 if (isbflagset("6")) {<br>
809 fix_nated_contact();<br>
810 }<br>
811 #!endif<br>
<br>
Does anyone know what's the problem with cfg file?<br>
<br>
Thx.<span class="HOEnZb"><font color="#888888"><br>
Cenk<br>
<br>
</font></span></blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a></pre>
</body>
</html>