[SR-Users] cfg. parser: failed to find command force_rtp_proxy
Daniel-Constantin Mierla
miconda at gmail.com
Sat Sep 15 09:51:25 CEST 2012
Hello,
you better use rtpproxy_manage(), to be work also when the sdp is in
200ok and ACK (not in INVITE).
Cheers,
Daniel
On 9/14/12 11:47 PM, Cenk İlker İzanlı wrote:
> I've found the answer on this link, at the bottom of page says:
>
> http://www.kamailio.org/wiki/install/upgrade/3.1.x-to-3.2.0
>
>
> modules/rtpproxy
>
> *
> force_rtp_proxy() removed
> o
> use rtpproxy_offer() when it is SDP offer (mainly on INVITE
> request) and rtpproxy_answer() when it is SDP answer (mainly
> on INVITE replies)
> o
> new alternative is to use rtpproxy_manage() which does the
> detection of SDP offer/answer internally
>
> Then, on the line 729 replace force_rtp_proxy() with
> *rtpproxy_offer()* and on the line 806, replace force_rtp_proxy() with
> *rtpproxy_answer()*
>
>
>
>
> 2012/9/15 Cenk İlker İzanlı <cenkilker at gmail.com
> <mailto:cenkilker at gmail.com>>
>
> Hi,
>
> I'm installing kamailio and rtpproxy with this guide.
>
> http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour
>
> Versions of the programs:
> # aptitude versions rtpproxy
> i 1.2.1-1 stable 500
> root at li304-234:~# kamailio -V
> version: kamailio 3.3.0 (x86_64/linux)
> 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
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
> 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled on 22:18:19 Jun 18 2012 with gcc 4.4.5
>
>
> When I start kamailio, I get this error,
>
> Sep 14 17:08:44 (none) kamailio: ERROR: <core> [cfg.y:3455]: cfg.
> parser: failed to find command force_rtp_proxy
> 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
> Sep 14 17:08:44 (none) kamailio: ERROR: <core> [cfg.y:3455]: cfg.
> parser: failed to find command force_rtp_proxy
> 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
>
> Related lines throwing error are below.
>
> 724 route[RTPPROXY] {
> 725 #!ifdef WITH_NAT
> 726 if (is_method("BYE")) {
> 727 unforce_rtp_proxy();
> 728 } else if (is_method("INVITE")){
> 729 force_rtp_proxy();
> 730 }
> 731 if (!has_totag()) add_rr_param(";nat=yes");
> 732 #!endif
> 733 return;
> 734 }
> 735
>
>
> 803 #!ifdef WITH_NAT
> 804 if ((isflagset(FLT_NATS) || isbflagset(FLB_NATB))
> 805 && status=~"(183)|(2[0-9][0-9])") {
> 806 force_rtp_proxy();
> 807 }
> 808 if (isbflagset("6")) {
> 809 fix_nated_contact();
> 810 }
> 811 #!endif
>
> Does anyone know what's the problem with cfg file?
>
> Thx.
> Cenk
>
>
>
>
> _______________________________________________
> 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
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120915/99737b25/attachment.htm>
More information about the sr-users
mailing list