I have to configure the rtp proxy. The sip is working fine . But also i need to transmit the rtp packets also through kamailio.
I was using kamailio version ============== version: kamailio 5.1.4 (x86_64/linux) 9e6f13 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 9e6f13 compiled on 12:13:17 Jul 24 2018 with gcc 5.4.0 ====================
But using this version, Sip proxy is working but rtp proxy not.
I think you have removed the mi_fifo in this version. I have reported this before and did not get any response from you.
So i have installed kamailio version
========================== version: kamailio 4.1.9 (x86_64/linux) ed7bb1 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_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: ed7bb1 compiled on 11:24:29 Aug 7 2018 with gcc 5.4.0 ===============================
Now i have installed rtp proxy and and it is running in my server. kamctl fifo nh_show_rtpp udp:127.0.0.1:7722:: set=0 index:: 0 disabled:: 0 weight:: 1 recheck_ticks:: 0 .
But when i use the rtpproxy it says some error in log file as below.
Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:handle_command: received command "9834_10 Uc0,8,3,111,9,101 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060 52.90.183.183 15712 as60627a88;1" Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: INFO:handle_command: new session 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060, tag as60627a88;1 requested, type strong 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 Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:handle_command: can't create listener Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:doreply: sending reply "9834_10 E10#012"
Also the header is not changing for the sip packets. Please help me. I did not find a complete documentation anywhere. Need your support as soon as possible.
I here by attaching my kamailio.cfg file for the current version and oldest one. Please check it and tell me if any changes needed.
Hi, this article may answer some of your questions
https://www.kamailio.org/wiki/install/upgrade/4.4.x-to-5.0.0
On Wed, Aug 8, 2018, 01:06 ANOOP V M anoop185728@gmail.com wrote:
I have to configure the rtp proxy. The sip is working fine . But also i need to transmit the rtp packets also through kamailio.
I was using kamailio version
version: kamailio 5.1.4 (x86_64/linux) 9e6f13 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 9e6f13 compiled on 12:13:17 Jul 24 2018 with gcc 5.4.0 ====================
But using this version, Sip proxy is working but rtp proxy not.
I think you have removed the mi_fifo in this version. I have reported this before and did not get any response from you.
So i have installed kamailio version
========================== version: kamailio 4.1.9 (x86_64/linux) ed7bb1 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_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: ed7bb1 compiled on 11:24:29 Aug 7 2018 with gcc 5.4.0 ===============================
Now i have installed rtp proxy and and it is running in my server. kamctl fifo nh_show_rtpp udp:127.0.0.1:7722:: set=0 index:: 0 disabled:: 0 weight:: 1 recheck_ticks:: 0 .
But when i use the rtpproxy it says some error in log file as below.
Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:handle_command: received command "9834_10 Uc0,8,3,111,9,101 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060 52.90.183.183 15712 as60627a88;1" Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: INFO:handle_command: new session 75bf3d1c656eb3c8560952220cc6cabd@52.90.183.183:5060, tag as60627a88;1 requested, type strong 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 Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: ERR:handle_command: can't create listener Aug 8 07:34:51 ip-172-30-0-26 rtpproxy[1521]: DBUG:doreply: sending reply "9834_10 E10#012"
Also the header is not changing for the sip packets. Please help me. I did not find a complete documentation anywhere. Need your support as soon as possible.
I here by attaching my kamailio.cfg file for the current version and oldest one. Please check it and tell me if any changes needed. _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
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. :-)
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 abalashov@evaristesys.com 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
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 abalashov@evaristesys.com 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
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 abalashov@evaristesys.com 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
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.
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
Hi,
On Thu, Aug 09, 2018 at 05:59:03PM +0530, ANOOP V M wrote:
Ok let us solve this with my kamailio 5.1.4 version in ubuntu server.
Use of expressions or idioms which command someone to do as you say, or telling them how it's going to be in general, or insinuate that they are obligated to help you in some particular manner, is discouraged if you want free help from the generous public.
While you're at it, you may want to post enquiries to the right mailing list; this is the sr-dev, the Kamailio developers' mailing list. The general users' enquiries list is sr-users:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
You would know that if you took a second to glance at this page:
https://www.kamailio.org/w/mailing-lists/
Or maybe you fell prey to the misapprehension that the developers' list is "second level support", as the page advises you not to do.
You need to learn some manners.
Having said that:
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.
rtpproxy has two different interfaces:
(a) The RTP forwarding interface (34.201.122.249), on which ports are allocated dynamically;
(b) The control socket, which is set via the -s parameter, and which you set to 127.0.0.1:7722.
Yet, clearly, from your own netstat output, rtpproxy is not listening on port 7722.
Perhaps the problem is that /etc/default/rtpproxy is not being appropriately sourced by the init script? Have you checked the init script to make sure it doesn't expect to use /etc/sysconfig/rtpproxy or some other path for the inclusion of these configuration options into the startup environment instead?
If rtpproxy cannot be reached on its control socket, no operations involving it will work.
-- Alex