Hi all,
Trying to install Openser1.3.2.... everything is OK and fine... but when I try to add support for snmp there are errors.. Dig dep into google, recheck all dependencies and didn't succeed... My env is FreeBSD 7.0-STABLE i386 The full net-snmp package is installed: atila# pkg_info | grep net-snmp net-snmp-5.3.2_3 An extendable SNMP implementation
These are the error messages....
make modules/libsnmpstats modules.... Compiling alarm_checks.c gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"snmpstats"' -DNAME='"openser"' -DVERSION='"1.3.2-notls"' -DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 4.2.1"' -D__CPU_i386 -D__OS_freebsd -D__SMP_no -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_NETINET_IN_SYSTM -DHAVE_KQUEUE -DHAVE_SELECT -c alarm_checks.c -o alarm_checks.o In file included from alarm_checks.c:38: openserObjects.h:41:38: error: net-snmp/net-snmp-config.h: No such file or directory openserObjects.h:42:40: error: net-snmp/net-snmp-includes.h: No such file or directory openserObjects.h:43:52: error: net-snmp/agent/net-snmp-agent-includes.h: No such file or directory
If I edit each file and hardcode the path ... /usr/local/include/net-snmp/... there are no errors... What am I missing in making sure the path to the include files are OK... Tried a couple options but didn't succeed... tehre are tons of include files into the src....
Regards
Ricardo Ferreira Yes, we do run Openser www.vipway.com.br Enterprise VoIP Services
Hi Ricardo,
I think that openser need the smnp heads (source). Do you have ALL source in your system?
Maybe you need reinstall the snmp service...
I hope I have helped you!
Ricardo Alves Ferreira Silva ricardo.ferreira@vipfone.net.br escreveu: Hi all,
Trying to install Openser1.3.2.... everything is OK and fine... but when I try to add support for snmp there are errors.. Dig dep into google, recheck all dependencies and didn't succeed... My env is FreeBSD 7.0-STABLE i386 The full net-snmp package is installed: atila# pkg_info | grep net-snmp net-snmp-5.3.2_3 An extendable SNMP implementation
These are the error messages....
make modules/libsnmpstats modules.... Compiling alarm_checks.c gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"snmpstats"' -DNAME='"openser"' -DVERSION='"1.3.2-notls"' -DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 4.2.1"' -D__CPU_i386 -D__OS_freebsd -D__SMP_no -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_NETINET_IN_SYSTM -DHAVE_KQUEUE -DHAVE_SELECT -c alarm_checks.c -o alarm_checks.o In file included from alarm_checks.c:38: openserObjects.h:41:38: error: net-snmp/net-snmp-config.h: No such file or directory openserObjects.h:42:40: error: net-snmp/net-snmp-includes.h: No such file or directory openserObjects.h:43:52: error: net-snmp/agent/net-snmp-agent-includes.h: No such file or directory
If I edit each file and hardcode the path ... /usr/local/include/net-snmp/... there are no errors... What am I missing in making sure the path to the include files are OK... Tried a couple options but didn't succeed... tehre are tons of include files into the src....
Regards
Ricardo Ferreira Yes, we do run Openser www.vipway.com.br Enterprise VoIP Services
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
--------------------------------- Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
Hello Ricardo,
Trying to install Openser1.3.2.... everything is OK and fine... but when I try to add support for snmp there are errors.. Dig dep into google, recheck all dependencies and didn't succeed... My env is FreeBSD 7.0-STABLE i386 The full net-snmp package is installed: atila# pkg_info | grep net-snmp net-snmp-5.3.2_3 An extendable SNMP implementation
For some reason, the include directory for net-snmp does not get defines in Makefile (the ifeq ($(BUILDER),) condition fails).
As a quick fix, add the line DEFS +=-I$(LOCALBASE)/include just after the first else:
BUILDER = $(shell which net-snmp-config) ifeq ($(BUILDER),) DEFS +=-I$(LOCALBASE)/include BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs - lnetsnmpagent \ -lnetsnmphelpers -lnetsnmp INSTALLMIBDIR = $(cfg-prefix)/share/snmp/mibs else DEFS +=-I$(LOCALBASE)/include BUILDAGENTLIBS = $(shell net-snmp-config --agent-libs) INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config -- prefix)/share/snmp/mibs endif
This will make that module compiles.
Saludos JesusR.
These are the error messages....
make modules/libsnmpstats modules.... Compiling alarm_checks.c gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"snmpstats"' -DNAME='"openser"' -DVERSION='"1.3.2- notls"' -DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 4.2.1"' -D__CPU_i386 -D__OS_freebsd -D__SMP_no -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS - DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL - DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_NETINET_IN_SYSTM -DHAVE_KQUEUE -DHAVE_SELECT -c alarm_checks.c -o alarm_checks.o In file included from alarm_checks.c:38: openserObjects.h:41:38: error: net-snmp/net-snmp-config.h: No such file or directory openserObjects.h:42:40: error: net-snmp/net-snmp-includes.h: No such file or directory openserObjects.h:43:52: error: net-snmp/agent/net-snmp-agent- includes.h: No such file or directory
If I edit each file and hardcode the path ... /usr/local/include/net- snmp/... there are no errors... What am I missing in making sure the path to the include files are OK... Tried a couple options but didn't succeed... tehre are tons of include files into the src....
Regards
Ricardo Ferreira Yes, we do run Openser www.vipway.com.br Enterprise VoIP Services
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Saludos JesusR.
------------------------------------ Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------------
Hi Jesus,
Bingo! right to the point....
Big thanks,
Saude!!! Regards
Ricardo Ferreira Yes, we do run Openser www.vipway.com.br Enterprise VoIP Services
Hello Ricardo,
Trying to install Openser1.3.2.... everything is OK and fine... but when I try to add support for snmp there are errors.. Dig dep into google, recheck all dependencies and didn't succeed... My env is FreeBSD 7.0-STABLE i386 The full net-snmp package is installed: atila# pkg_info | grep net-snmp net-snmp-5.3.2_3 An extendable SNMP implementation
For some reason, the include directory for net-snmp does not get defines in Makefile (the ifeq ($(BUILDER),) condition fails).
As a quick fix, add the line DEFS +=-I$(LOCALBASE)/include just after the first else:
BUILDER = $(shell which net-snmp-config) ifeq ($(BUILDER),) DEFS +=-I$(LOCALBASE)/include BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs - lnetsnmpagent \ -lnetsnmphelpers -lnetsnmp INSTALLMIBDIR = $(cfg-prefix)/share/snmp/mibs else DEFS +=-I$(LOCALBASE)/include BUILDAGENTLIBS = $(shell net-snmp-config --agent-libs) INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config -- prefix)/share/snmp/mibs endif
This will make that module compiles.
Saludos JesusR.
These are the error messages....
make modules/libsnmpstats modules.... Compiling alarm_checks.c gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"snmpstats"' -DNAME='"openser"' -DVERSION='"1.3.2- notls"' -DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 4.2.1"' -D__CPU_i386 -D__OS_freebsd -D__SMP_no -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS - DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL - DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_NETINET_IN_SYSTM -DHAVE_KQUEUE -DHAVE_SELECT -c alarm_checks.c -o alarm_checks.o In file included from alarm_checks.c:38: openserObjects.h:41:38: error: net-snmp/net-snmp-config.h: No such file or directory openserObjects.h:42:40: error: net-snmp/net-snmp-includes.h: No such file or directory openserObjects.h:43:52: error: net-snmp/agent/net-snmp-agent- includes.h: No such file or directory
If I edit each file and hardcode the path ... /usr/local/include/net- snmp/... there are no errors... What am I missing in making sure the path to the include files are OK... Tried a couple options but didn't succeed... tehre are tons of include files into the src....
Regards
Ricardo Ferreira Yes, we do run Openser www.vipway.com.br Enterprise VoIP Services
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
Here is why I ask:
[root@proxy2 openser]# netstat -su Udp: 159293 packets received 2016 packets to unknown port received. 153899 packet receive errors 185342 packets sent
On my proxies, as traffic levels increase, I start getting udp errors, which I think is pretty much a udp buffer overflow. Once it overflows, that proxy is toast until traffic levels die down. I have a pretty basic config, but I can't seem to handle more than 4 or 5 new calls per second. I would expect to be able to do a lot more than that. So I was trying to make sure that no unnecessary udp traffic was going in or out.
The server has two Dual Core Opteron processors, 4 Gb of RAM, running CentOS 5 x86_64.
Any suggestions are appreciated... and I'll happily pay for consulting if someone wants to look into it.
Michael
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Michael Young Sent: Friday, May 16, 2008 9:20 PM To: users@lists.openser.org Subject: [OpenSER-Users] Openser 1.3.2 rev_dns=no
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Hello,
please try the attached patch (is for devel but should apply on 1.3.2, if no, let me know and I send you another). Similar issue was reported to me some time ago, started to investigate but at some point I forgot about. I think you face the same case: somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes. The patch fixed the reverse dns in this case if rev_dns=no. I will look more into it to find a better solution -- detecting if the value is an IP address and avoid DNS lookup, a.s.o, for IP comparisons.
Let me know the results.
Cheers, Daniel
On 05/18/08 22:12, Michael Young wrote:
Here is why I ask:
[root@proxy2 openser]# netstat -su Udp: 159293 packets received 2016 packets to unknown port received. 153899 packet receive errors 185342 packets sent
On my proxies, as traffic levels increase, I start getting udp errors, which I think is pretty much a udp buffer overflow. Once it overflows, that proxy is toast until traffic levels die down. I have a pretty basic config, but I can't seem to handle more than 4 or 5 new calls per second. I would expect to be able to do a lot more than that. So I was trying to make sure that no unnecessary udp traffic was going in or out.
The server has two Dual Core Opteron processors, 4 Gb of RAM, running CentOS 5 x86_64.
Any suggestions are appreciated... and I'll happily pay for consulting if someone wants to look into it.
Michael
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Michael Young Sent: Friday, May 16, 2008 9:20 PM To: users@lists.openser.org Subject: [OpenSER-Users] Openser 1.3.2 rev_dns=no
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Daniel, thanks.
I applied the patch and recompiled, and the reverse DNS lookup no longer occurs. I will load test and let you know how this affects performance.
Michael
-----Original Message----- From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Sunday, May 18, 2008 4:08 PM To: Michael Young Cc: users@lists.openser.org Subject: Re: [OpenSER-Users] Openser 1.3.2 rev_dns=no
Hello,
please try the attached patch (is for devel but should apply on 1.3.2, if no, let me know and I send you another). Similar issue was reported to me some time ago, started to investigate but at some point I forgot about. I think you face the same case: somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes. The patch fixed the reverse dns in this case if rev_dns=no. I will look more into it to find a better solution -- detecting if the value is an IP address and avoid DNS lookup, a.s.o, for IP comparisons.
Let me know the results.
Cheers, Daniel
On 05/18/08 22:12, Michael Young wrote:
Here is why I ask:
[root@proxy2 openser]# netstat -su Udp: 159293 packets received 2016 packets to unknown port received. 153899 packet receive errors 185342 packets sent
On my proxies, as traffic levels increase, I start getting udp errors, which I think is pretty much a udp buffer overflow. Once it overflows, that proxy is toast until traffic levels die down. I have a pretty basic config, but I can't seem to handle more than 4 or 5 new calls per second. I would expect to be able to do a lot more than that. So I was trying to make sure that no unnecessary udp traffic was going in or
out.
The server has two Dual Core Opteron processors, 4 Gb of RAM, running CentOS 5 x86_64.
Any suggestions are appreciated... and I'll happily pay for consulting if someone wants to look into it.
Michael
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Michael Young Sent: Friday, May 16, 2008 9:20 PM To: users@lists.openser.org Subject: [OpenSER-Users] Openser 1.3.2 rev_dns=no
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Hello Michael,
thanks for testing and reporting back. The patch was committed to SVN in all recent branches.
Cheers, Daniel
On 05/19/08 07:24, Michael Young wrote:
Daniel, thanks.
I applied the patch and recompiled, and the reverse DNS lookup no longer occurs. I will load test and let you know how this affects performance.
Michael
-----Original Message----- From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Sunday, May 18, 2008 4:08 PM To: Michael Young Cc: users@lists.openser.org Subject: Re: [OpenSER-Users] Openser 1.3.2 rev_dns=no
Hello,
please try the attached patch (is for devel but should apply on 1.3.2, if no, let me know and I send you another). Similar issue was reported to me some time ago, started to investigate but at some point I forgot about. I think you face the same case: somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes. The patch fixed the reverse dns in this case if rev_dns=no. I will look more into it to find a better solution -- detecting if the value is an IP address and avoid DNS lookup, a.s.o, for IP comparisons.
Let me know the results.
Cheers, Daniel
On 05/18/08 22:12, Michael Young wrote:
Here is why I ask:
[root@proxy2 openser]# netstat -su Udp: 159293 packets received 2016 packets to unknown port received. 153899 packet receive errors 185342 packets sent
On my proxies, as traffic levels increase, I start getting udp errors, which I think is pretty much a udp buffer overflow. Once it overflows, that proxy is toast until traffic levels die down. I have a pretty basic config, but I can't seem to handle more than 4 or 5 new calls per second. I would expect to be able to do a lot more than that. So I was trying to make sure that no unnecessary udp traffic was going in or
out.
The server has two Dual Core Opteron processors, 4 Gb of RAM, running CentOS 5 x86_64.
Any suggestions are appreciated... and I'll happily pay for consulting if someone wants to look into it.
Michael
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Michael Young Sent: Friday, May 16, 2008 9:20 PM To: users@lists.openser.org Subject: [OpenSER-Users] Openser 1.3.2 rev_dns=no
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Reopening an old issue from May -- I installed 1.4.2 from SVN and have the reverse DNS lookups going again, even though dns=no and rev_dns=no.
Was there a syntax change in the config file?
Daniel, you were correct that "somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes" -- I have one carrier who insists on sending ";npdi=yes" in the user portion of the URI:
INVITE sip:+1303XXXXXXXX;npdi=yes@4.X.X.X:5060
And that blows up ENUM lookups (or at least it did in version 1.3). So I have in my config a block like this:
if (src_ip=~".*1.2.3.") { strip_tail(9); xlog("L_INFO", "NOTICE: Stripped npdi because carrier X is stupid: new URI $ru\n"); }
Maybe there is a better way to do this so I am not searching by src_ip?
Michael Young (IP addresses have been changed\munged to protect the guilty)
-----Original Message----- From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Sunday, May 18, 2008 4:08 PM To: Michael Young Cc: users@lists.openser.org Subject: Re: [OpenSER-Users] Openser 1.3.2 rev_dns=no
Hello,
please try the attached patch (is for devel but should apply on 1.3.2, if no, let me know and I send you another). Similar issue was reported to me some time ago, started to investigate but at some point I forgot about. I think you face the same case: somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes. The patch fixed the reverse dns in this case if rev_dns=no. I will look more into it to find a better solution -- detecting if the value is an IP address and avoid DNS lookup, a.s.o, for IP comparisons.
Let me know the results.
Cheers, Daniel
On 05/18/08 22:12, Michael Young wrote:
Here is why I ask:
[root@proxy2 openser]# netstat -su Udp: 159293 packets received 2016 packets to unknown port received. 153899 packet receive errors 185342 packets sent
On my proxies, as traffic levels increase, I start getting udp errors, which I think is pretty much a udp buffer overflow. Once it overflows, that proxy is toast until traffic levels die down. I have a pretty basic config, but I can't seem to handle more than 4 or 5 new calls per second. I would expect to be able to do a lot more than that. So I was trying to make sure that no unnecessary udp traffic was going in or
out.
The server has two Dual Core Opteron processors, 4 Gb of RAM, running CentOS 5 x86_64.
Any suggestions are appreciated... and I'll happily pay for consulting if someone wants to look into it.
Michael
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Michael Young Sent: Friday, May 16, 2008 9:20 PM To: users@lists.openser.org Subject: [OpenSER-Users] Openser 1.3.2 rev_dns=no
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Hello,
On 10/30/08 03:50, Michael Young wrote:
Reopening an old issue from May -- I installed 1.4.2 from SVN and have the reverse DNS lookups going again, even though dns=no and rev_dns=no.
Was there a syntax change in the config file?
Daniel, you were correct that "somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes" -- I have one carrier who insists on sending ";npdi=yes" in the user portion of the URI:
INVITE sip:+1303XXXXXXXX;npdi=yes@4.X.X.X:5060
And that blows up ENUM lookups (or at least it did in version 1.3). So I have in my config a block like this:
if (src_ip=~".*1.2.3.") { strip_tail(9); xlog("L_INFO", "NOTICE: Stripped npdi because carrier X is stupid: new URI $ru\n"); }
you can check if the npdi is in the username part of the R-URI and remove it from there, it will work all the time, not only if the request comes from some IP range.
if(uri=~";npdi =yes@")
You can then use strip or transformations to do that:
http://www.kamailio.org/dokuwiki/doku.php/transformations:1.4.x
Cheers, Daniel
Maybe there is a better way to do this so I am not searching by src_ip?
Michael Young (IP addresses have been changed\munged to protect the guilty)
-----Original Message----- From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Sunday, May 18, 2008 4:08 PM To: Michael Young Cc: users@lists.openser.org Subject: Re: [OpenSER-Users] Openser 1.3.2 rev_dns=no
Hello,
please try the attached patch (is for devel but should apply on 1.3.2, if no, let me know and I send you another). Similar issue was reported to me some time ago, started to investigate but at some point I forgot about. I think you face the same case: somewhere in the script you do an IP comparison (by src_ip or so) and you have the IP address in between quotes. The patch fixed the reverse dns in this case if rev_dns=no. I will look more into it to find a better solution -- detecting if the value is an IP address and avoid DNS lookup, a.s.o, for IP comparisons.
Let me know the results.
Cheers, Daniel
On 05/18/08 22:12, Michael Young wrote:
Here is why I ask:
[root@proxy2 openser]# netstat -su Udp: 159293 packets received 2016 packets to unknown port received. 153899 packet receive errors 185342 packets sent
On my proxies, as traffic levels increase, I start getting udp errors, which I think is pretty much a udp buffer overflow. Once it overflows, that proxy is toast until traffic levels die down. I have a pretty basic config, but I can't seem to handle more than 4 or 5 new calls per second. I would expect to be able to do a lot more than that. So I was trying to make sure that no unnecessary udp traffic was going in or
out.
The server has two Dual Core Opteron processors, 4 Gb of RAM, running CentOS 5 x86_64.
Any suggestions are appreciated... and I'll happily pay for consulting if someone wants to look into it.
Michael
-----Original Message----- From: users-bounces@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Michael Young Sent: Friday, May 16, 2008 9:20 PM To: users@lists.openser.org Subject: [OpenSER-Users] Openser 1.3.2 rev_dns=no
In my openser.cfg (running 1.3.2), I have:
dns=no rev_dns=no
but a packet capture shows OpenSER doing a reverse DNS lookup on my provider's proxy IP address with every invite. Are those lines no longer supported? I tried starting OpenSER with -R, but same behavior.
Michael Young
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1446 - Release Date: 5/16/2008 7:42 AM
No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.20/1453 - Release Date: 5/18/2008 9:31 AM