Hi,
I have already posted this message but it was sent only to Sammy Govind somehow, not to
the mailing list. So I am posting it again to the list. I am sorry if this is double
posting or if this is not the right way to do it.
**Original message***
Hi Sammy
These are the params from my kamilio cfg file. Just a reminder, the whole cfg file is
copied from the link:
http://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6, i just
edited the IP addresses and DB_URL line to fit my settings.
#!ifdef WITH_NAT
# ----- rtpproxy params -----
# modparam("rtpproxy", "rtpproxy_sock",
"udp:localhost:7722")
modparam("rtpproxy", "rtpproxy_sock",
"unix:/var/run/rtpproxy/rtpproxy.sock")
# ----- nathelper params -----
modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
modparam("nathelper", "sipping_from",
"sip:pinger@kamailio.org")
# params needed for NAT traversal in other modules
modparam("nathelper|registrar", "received_avp",
"$avp(RECEIVED)")
modparam("usrloc", "nat_bflag", FLB_NATB)
#!endif
I have tried to use both unix and UDP sockets each at a time.I removed the square braces
from the IP addresses in the rtpproxy default files and its no more complainig about the
"rtpproxy: setbindhost: No address associated with hostname" but still have the
same messages in the logs.
Thank you four your help.
Regards,
Maedot
________________________________
From: Sammy Govind <govoiper(a)gmail.com>
To: nunu abe <nunu_abe(a)yahoo.com>om>; SIP Router - Kamailio (OpenSER) and SIP Express
Router (SER) - Users Mailing List <sr-users(a)lists.sip-router.org>
Sent: Thursday, January 5, 2012 8:13 PM
Subject: Re: [SR-Users] RTPproxy on Kamailio 3.2.1 difficulty.
hi,
quick look at your logs,
14(1596) ERROR: rtpproxy [rtpproxy.c:1466]: can't connect to RTP proxy
15(1597) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (10): nathelper
14(1596) ERROR: rtpproxy [rtpproxy.c:1538]: proxy
<unix:/var/run/rtpproxy/rtpproxy.sock> does not respond, disable it 5(1584) DEBUG:
db_mysql [km_my_con.c:123]: server version is 5.1.41-3ubuntu12.10
14(1596) WARNING: rtpproxy [rtpproxy.c:1395]: can't get version of the RTP proxy
14(1596) WARNING: rtpproxy [rtpproxy.c:1432]: support for RTP proxy
<unix:/var/run/rtpproxy/rtpproxy.sock> has been disabled temporarily
14(1596) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (9): debugger
5(1584) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (5): nathelper
14(1596) DEBUG: debugger [debugger_mod.c:124]: rank is (9) 5(1584) DEBUG: <core>
[sr_module.c:892]: DEBUG: init_mod_child (5): rtpproxy 5(1584) ERROR: rtpproxy
[rtpproxy.c:1466]: can't connect to RTP proxy 5(1584) ERROR: rtpproxy
[rtpproxy.c:1538]: proxy <unix:/var/run/rtpproxy/rtpproxy.sock> does not respond,
disable it 5(1584) WARNING: rtpproxy [rtpproxy.c:1395]: can't get version of the RTP
proxy 5(1584) WARNING: rtpproxy [rtpproxy.c:1432]: support for RTP proxy
<unix:/var/run/rtpproxy/rtpproxy.sock> has been disabled temporarily 5(1584) DEBUG:
<core> [sr_module.c:892]: DEBUG: init_mod_child (5): debugger 5(1584) DEBUG:
debugger [debugger_mod.c:124]: rank is (5)
15(1597) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (10): rtpproxy
15(1597) ERROR: rtpproxy [rtpproxy.c:1466]: can't connect to RTP proxy
15(1597) ERROR: rtpproxy [rtpproxy.c:1538]: proxy
<unix:/var/run/rtpproxy/rtpproxy.sock> does not respond, disable it
15(1597) WARNING: rtpproxy [rtpproxy.c:1395]: can't get version of the RTP proxy
15(1597) WARNING: rtpproxy [rtpproxy.c:1432]: support for RTP proxy
<unix:/var/run/rtpproxy/rtpproxy.sock> has been disabled temporarily
15(1597) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (10): debugger
paste the rtpproxy/nathelper module params lines which are in your kamailio.cfg.
regards,
sammy
On Wed, Jan 4, 2012 at 7:59 PM, nunu abe <nunu_abe(a)yahoo.com> wrote:
Thank you Sammy for noticing :)
Now I have a bit of different but same problem. After the earlier posting the message I
decided to start everything from scratch and I installed everything new.
But I still have problem. The rtpproxy server is not working, it fails to replace the IP
address of the sender in the SDP and hence there is no RTP communication.
These are the steps I followed:
1. Freshly installed kamailio 3.2.1 on Kubuntu from GIT
2. Installed mysql server
4. installed rtpproxy, changed its user to be kamailio.
3.Copied the provided kamailio.cfg file from the link and edited the IP addresses and the
DBURL to reflect my settings
4. Uncommented
the Control socket line and added these lines in the
/etc/default/rtpproxy file
CONTROL_SOCK="unix:/var/run/rtpproxy/rtpproxy.sock"
ADDR_IPV4=[10.10.10.10]
ADDR_IPV6=[3001:0:0:1::10]
EXTRA_OPTS="-l {ADDR_IPV4} -6 /{ADDR_IPV6}"
*** I aslso tried without adding the last three lines, but it made no difference.***
5. Started rtpproxy in a bridge mode
xxxx@DualStackCS:~$ sudo rtpproxy -F -l 10.10.10.10 -6 /3001:0:0:1::10
*** I have also tried to start it this way :xxxx@DualStackCS:~$ sudo rtpproxy -F -l
10.10.10.10 -6 /3001:0:0:1::10 -s unix:/var/run/rtpproxy/rtpproxy.sock - but no
difference****
xxxx@DualStackCS:~$ ps aux|grep rtpproxy
root 1522 0.0 0.0 11384 696 ? Ssl 15:31 0:00 rtpproxy -F -l
10.10.10.10 -6
3001:0:0:1::10
xxxx 1528 0.0 0.0 3324 804 pts/1 S+
15:31 0:00 grep --color=auto rtpproxy
xxxxx@DualStackCS:~$ sudo /etc/init.d/kamailio start
6. Started kamailio
@DualStackCS:~$ sudo /etc/init.d/kamailio restart
I have attached the log file.
Many thanks for your help.
Regards,
Maedot
________________________________
From: Sammy Govind <govoiper(a)gmail.com>
To: miconda(a)gmail.com; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List <sr-users(a)lists.sip-router.org>
Sent: Tuesday, January 3, 2012 2:04 PM
Subject: Re: [SR-Users] RTPproxy on Kamailio 3.2.1 difficulty.
Hi,
I had a good laugh when I read the reply, but going through the whole thread again I found
this:
" It displays the same message even when I replace ADDR_IPV4 and ADDR_IPV6 with IP
addresses. "
So there _IS_ some problem here.
Nuno, can you please copy paste the exact command which you executing, plus paste the
logs,
--
Regards,
Sammy.
On Tue, Jan 3, 2012 at 2:22 PM, Daniel-Constantin Mierla <miconda(a)gmail.com> wrote:
Hello,
>
>the ADDR_IPV4 and ADDR_IPV6 have to be replaced with real IP
addresses that
you have on the system runnin RTPProxy.
>
>Cheers,
>Daniel
>
>
>On 1/3/12 8:56 AM, nunu abe wrote:
>Dear Daniel,
>>Greetings and Happy New year to you all! I would like to thank you very much for
your detailed and well structured tutorials on Kamailio. I am resending this email as I
sent the earlier one before I was a member of the mailing list and I thought it may have
been sent to the spam folder. If not then, I apologize for double posting.
>>I was trying to design a similar scenario like the one " Run your own SIP
VoIP service on both IPv4 and IPv6 " as explained on Asipto
web-page(http://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6). However I ran into
difficulties with rtpproxy. The proxy is not routing media packets as it should. I
followed the instruction regarding the kamailio.cfg file and edited the necessary lines
according to my settings. I think my problem comes from setting up the rtpproxy.
>>1. I edited the /etc/default/rtpproxy file. i.e. I uncommented the line -
CONTROL_SOCK="unix:/var/run/rtpproxy/rtpproxy.sock"
>>2. I started the rtpproxy with this command: rtpproxy -F -l ADDR_IPV4 -6
/ADDR_IPV6 . However, after this command the system returns the message : rtpproxy:
setbindhost: No address associated with hostname
>>It displays the same message even when I replace ADDR_IPV4 and ADDR_IPV6 with IP
addresses.
>>
>>3. I have also tried using the udp socket:- CONTROL_SOCK=udp:127.0.0.1:22222, of
course I have replaced the unix socket by this udp socket in the kamilio.cfg file.
>>So my question is, what did I do wrong with the settings that SIP messages are
traversing normal from IPv4 client to IPv6 client and vice versa but media files(RTP
packets) are not? The rtpproxy receives the media files from one client but fails to
forward them to the other client.
>>Thanks for your help.
>>Maedot
>>
>>
>>_______________________________________________
SIP Express Router (SER) and
Kamailio (OpenSER) - sr-users mailing list sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>--
Daniel-Constantin Mierla --
http://www.asipto.com
http://linkedin.com/in/miconda --
http://twitter.com/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users