Ok let us solve this with my kamailio 5.1.4 version in ubuntu server.
I have installed rtpproxy by apt-get install rtpproxy.
i have edited "/etc/default/rtpproxy" file with the line 'EXTRA_OPTS="-F -s udp:127.0.0.1:7722 -l 34.201.122.249 -d DBUG:LOG_LOCAL0"'
i have edited "/etc/init.d/rtpproxy" file as follows, DAEMON=/usr/bin/$NAME PIDFILE="/run/$NAME/$NAME.pid
I have provided "#!define WITH_NAT" and "modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")" in my cfg file.
started rtpproxy "service rtpproxy start"
when i try "netstat -tulpn | grep rtp" it shows udp 0 0 127.0.0.1:9000 0.0.0.0:* 1422/rtpproxy
So i think the rtpproxy is currently running fine.
Now we can go to kamailio part. I have attached my cfg file in this mail. Ip addresses of my client servers are named as dummy.
I have gone through the document " https://www.kamailio.org/docs/modules/5.0.x/modules/rtpproxy.html" to set up rtpproxy in the cfg file.
checking the rtp ports "kamcmd rtpproxy.list" showing { setid: 0 url: udp:localhost:12221 index: 0 disabled: 1 weight: 1 recheck: 14661928 } { setid: 0 url: udp:127.0.0.1:7722 index: 1 disabled: 1 weight: 1 recheck: 14661928 }
I have enabled rtp proxy using "kamcmd rtpproxy.enable udp:localhost:12221 1" "kamcmd rtpproxy.enable udp:127.0.0.1:7722 1".
So i think ports are ready for rtp proxy.
Now i will explain the call flow. please take a look at my cfg file. I have enabled log using L_BUG.
when i try a call from hangout number through my twilio trunk to my asterisk freepbx extension, set_rtp_proxy_set("1"); giving true value. But rtpproxy_offer(); giving -3 as result. And also my header is not changed. As a result actuall rtp is going end to end between asterisk and twilio not through kamailio. Please help me with the details.
On Thu, Aug 9, 2018 at 3:12 PM Alex Balashov abalashov@evaristesys.com wrote:
If you are looking for examples of how rtpproxy is used, you can find them in the stock config file that ships with Kamailio, and also here:
https://github.com/kamailio/kamailio/tree/master/src/modules/rtpproxy/exampl...
On August 9, 2018 5:25:00 AM EDT, ANOOP V M anoop185728@gmail.com wrote:
i have version 4x and 5x installed in seperate servers. Can you tell me where should i start to set up this.
On Thu, Aug 9, 2018 at 2:20 PM Alex Balashov abalashov@evaristesys.com wrote:
There are not any quick solutions or shortcuts to elementary understanding of what you are doing, no.
On Thu, Aug 09, 2018 at 10:48:33AM +0530, ANOOP V M wrote:
can you provide me correct video or any guide to set up this
rtpproxy and
solve my problem. I have tried many of your documents. But none of
them
tells the correct and complete path to set up this rtpproxy. I need
to
solve this quick.
On Wed, Aug 8, 2018 at 3:48 PM Alex Balashov
wrote:
On Wed, Aug 08, 2018 at 01:36:14PM +0530, ANOOP V M wrote:
Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]:
ERR:create_twinlistener:
can't bind to the IPv4 port 63826: Cannot assign requested
address
It seems to me the error is staring you in the face. :-)
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
-- Alex
-- Sent via mobile, please forgive typos and brevity.
Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev