Re: [OpenSIPS-Users] port number in record-route
Record-Route headers contain URIs, and like any SIP URI, they can contain a port component. If that port component is omitted, 5060 is presumed. On March 29, 2017 6:27:30 PM EDT, Satish Patel wrote: >what is the use of port number in record-route? > >I am having major issue with that look like we are running sip server >on different port to protect ourself from sip scanner we are using >non-standard port like 6060/7070 multiple port on single server so it >will failover to other port if firewall block them. > >I am seeing record-route adding first port in listen: directive for >example > >listen=udp:x.x.x.x:7070 udp:x.x.x.x:7070 udp:x.x.x.x:5062 > >In this case my record-route always using 7070 in header default >recordless request coming on 5062. > >I found one more issue here someone posted while ago > >https://lists.cs.columbia.edu/pipermail/sip-implementors/2001-March/000601.html > >___ >Users mailing list >Users@lists.opensips.org >http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex -- Principal, Evariste Systems LLC (www.evaristesys.com) Sent from my Google Nexus. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] port number in record-route
what is the use of port number in record-route? I am having major issue with that look like we are running sip server on different port to protect ourself from sip scanner we are using non-standard port like 6060/7070 multiple port on single server so it will failover to other port if firewall block them. I am seeing record-route adding first port in listen: directive for example listen=udp:x.x.x.x:7070 udp:x.x.x.x:7070 udp:x.x.x.x:5062 In this case my record-route always using 7070 in header default recordless request coming on 5062. I found one more issue here someone posted while ago https://lists.cs.columbia.edu/pipermail/sip-implementors/2001-March/000601.html ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] need some help in registrar module .
http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294862 There are several functions in the registrar module to help you determine if a Contact is already registered using a given AOR. After that you can use flags to the save command to indicate if you want to set a max number of contacts for an AOR (for example one contact) and if you want to throw away this registration or over ride the existing one in the event that max is already met. http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294033 Hope this helps. On Wed, Mar 29, 2017 at 7:10 AM, Sasmita Panda wrote: > Hi , > I am using opensips-2.2.2 . I wanted to override a contact only by > checking the username if its already registered earlier rather than adding > another contact of same username . > >What should I do ? I am searching for this but I am not getting > anything which can do this . Please help me if this is possible . > > *Thanks & Regards* > *Sasmita Panda* > *Network Testing and Software Engineer* > *3CLogic , ph:07827611765* > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 2.2.2 memory issue?
Dear Liviu, Regarding other UDP processes, I tried 1850 but wasn't showing backtraces with memory information on it or any other info It seemed to be normal but i have't kept them. 1851,1852 gave me almost the same results. Also Cpu load started increasing by the time the problem started happening. Here is the screenshot to see. No other reason for High CPU load. CPU Usage came back to normal after restarting processes. here is the cpu graph on this server : http://oi68.tinypic.com/2m79irs.jpg I will try to enable DBG_MALLOC and see if this happens again , so as I can understand you don't see any obvious thing around Thank you *Vasilios Tzanoudakis* | Technology Director t. +30-212-222-8003 | f. +30-212-222-8001 2, Klisthenous Str., Metamorfosi, 144 52, Attica, Greece vasilios.tzanouda...@voiceland.gr | www.voiceland.gr On Wed, Mar 29, 2017 at 12:25 PM, Vasilios Tzanoudakis < vasilios.tzanouda...@voiceland.gr> wrote: > Dear all, > > After 11 days os usage Opensips process was not responding at all. > > This is the second time I am facing this kind of issue. > I am sending you all the information below: > > System has 4 CPU Cores / 4 GB Ram > > Opensips version 2.2.2 > > *Run parameters : * > S_MEMORY=2048 > P_MEMORY=1024 > > *uname -a* > Linux 4.4.0-62-generic #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 > x86_64 x86_64 x86_64 GNU/Linux > > *Compiled with the following flags:* > > PKG_MALLOC > SHM_MMAP > USE_MCAST > DISABLE_NAGLE > STATISTICS > HAVE_RESOLV_RES > F_MALLOC > F_MALLOC_OPTIMIZATIONS > NO_DEBUG > > *and with the following extra modules : * > > db_mysql > dialplan > regex > snmpstats > > *Loaded modules in opensips.cfg* > > loadmodule "proto_udp.so" > loadmodule "mi_datagram.so" > loadmodule "signaling.so" > loadmodule "sl.so" > loadmodule "tm.so" > loadmodule "rr.so" > loadmodule "maxfwd.so" > loadmodule "sipmsgops.so" > loadmodule "mi_fifo.so" > loadmodule "uri.so" > loadmodule "db_mysql.so" > loadmodule "usrloc.so" > loadmodule "registrar.so" > loadmodule "auth.so" > loadmodule "auth_db.so" > loadmodule "dialog.so" > loadmodule "nathelper.so" > loadmodule "rtpproxy.so" > loadmodule "drouting.so" > loadmodule "uac.so" > > */usr/local/opensips2/sbin/opensipsctl fifo ps* > > Process:: ID=0 PID=1843 Type=attendant > Process:: ID=1 PID=1845 Type=MI FIFO > Process:: ID=2 PID=1846 Type=MI Datagram > Process:: ID=3 PID=1847 Type=time_keeper > Process:: ID=4 PID=1849 Type=timer > Process:: ID=5 PID=1850 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=6 PID=1851 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=7 PID=1852 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=8 PID=1853 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=9 PID=1854 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=10 PID=1855 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=11 PID=1856 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=12 PID=1857 Type=SIP receiver udp:X.X.X.X:65100 > Process:: ID=13 PID=1859 Type=Timer handler > > *gdb /usr/local/opensips2/sbin/opensips 1851* > > Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging > symbols found)...done. > Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1 > Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...Reading > symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_dns-2.19.so.. > .done. > done. > Loaded symbols for /lib/x86_64-linux-gnu/libnss_dns.so.2 > 0x7faee52c36cd in parse_backslash (offset=0x7ffc, > words=, max_length=0x7ffc32c06040, word_length=0xd, > word=0x636f732e3379786f) at wordexp.c:222 > 222 wordexp.c: No such file or directory. > > > *(gdb) bt* > #0 0x7faee52c36cd in parse_backslash (offset=0x7ffc, > words=, max_length=0x7ffc32c06040, word_length=0xd, > word=0x636f732e3379786f) at wordexp.c:222 > #1 parse_backtick (ifs_white=0x722f7261762f0001 memory at address* 0x722f7261762f0001>, ifs=0x7fae24ccc960 "", > pwordexp=0x838fd4 , flags=0, offset=0x7ffc, > words=, max_length=0x1, word_length=0x7ffc32c06060, > word=0x7ffc32c060c0) at wordexp.c:2147 > #2 wordexp (words=, pwordexp=, flags=0) at > wordexp.c:2359 > #3 0x7ffc32c06220 in ?? () > #4 0x in ?? () > > > *(gdb) bt full* > #0 0x7faee52c36cd in parse_backslash (offset=0x7ffc, > words=, max_length=0x7ffc32c06040, word_length=0xd, > word=0x636f732e3379786f) at wordexp.c:222 > No locals. > #1 parse_backtick (ifs_white=0x722f7261762f0001 memory at address *0x722f7261762f0001>, ifs=0x7fae24ccc960 "", > pwordexp=0x838fd4 , flags=0, offset=0x7ffc, > words=, max_length=0x1, word_length=0x7ffc32c06060, > word=0x7ffc32c060c0) at wordexp.c:2147 > squoting = > comm_length = 8622050 > *comm = 0x6 * > error = > comm_maxlen = 8700952 > #2 wordexp (words=, pwordexp=, flags=0) at > wordexp.c:2359 > words_offset = 0 > word_length = 0 > max_length = 140388071391744 > word = 0x7
Re: [OpenSIPS-Users] Mediaproxy speed calculations
On 29 Mar 2017, at 0:02, Daniel Zanutti wrote: > Hi Dan > > Based on your explanation, my physical machine with 2.8GHz is computing at > 5MHz, which is surely wrong. Not according to the time it took to compute that. > I have a similar scenario deployed on more than 50 machine and almost every > time Mediaproxy is started at linux boot, it doesn't calculate and show > speed. After restarting the process, speed is calculated fine. This is news to me. In all my years of using the software, over dozens of servers, I have never encountered this problem. > Could you please consider that the software may have a bug? Are you > interested on fixing it? Can I help? Sure. But I never run into this and unless I can reproduce it, or get access to some system that exhibits it I cannot know what is wrong, or if it's a bug or something else. -- Dan ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] need some help in registrar module .
Hi , I am using opensips-2.2.2 . I wanted to override a contact only by checking the username if its already registered earlier rather than adding another contact of same username . What should I do ? I am searching for this but I am not getting anything which can do this . Please help me if this is possible . *Thanks & Regards* *Sasmita Panda* *Network Testing and Software Engineer* *3CLogic , ph:07827611765* ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 2.2.2 memory issue?
Hi Vasilios, Some things to consider: - what are some other UDP processes doing? (e.g. 1850, 1855, etc.) - when doing "make install", the binaries will include debug symbols regardless of any menuconfig options. However, if you want to obtain more clear backtraces, you should also enable "DBG_MALLOC" compile flag, which will also disable compiler optimizations. - any obvious bottlenecks which could lead to the UDP queue being stuck? 100% CPU? Useful logs? Regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 29.03.2017 12:25, Vasilios Tzanoudakis wrote: Dear all, After 11 days os usage Opensips process was not responding at all. This is the second time I am facing this kind of issue. I am sending you all the information below: System has 4 CPU Cores / 4 GB Ram Opensips version 2.2.2 *Run parameters : * S_MEMORY=2048 P_MEMORY=1024 *uname -a* Linux 4.4.0-62-generic #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux *Compiled with the following flags:* PKG_MALLOC SHM_MMAP USE_MCAST DISABLE_NAGLE STATISTICS HAVE_RESOLV_RES F_MALLOC F_MALLOC_OPTIMIZATIONS NO_DEBUG *and with the following extra modules : * db_mysql dialplan regex snmpstats *Loaded modules in opensips.cfg* loadmodule "proto_udp.so" loadmodule "mi_datagram.so" loadmodule "signaling.so" loadmodule "sl.so" loadmodule "tm.so" loadmodule "rr.so" loadmodule "maxfwd.so" loadmodule "sipmsgops.so" loadmodule "mi_fifo.so" loadmodule "uri.so" loadmodule "db_mysql.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "dialog.so" loadmodule "nathelper.so" loadmodule "rtpproxy.so" loadmodule "drouting.so" loadmodule "uac.so" */usr/local/opensips2/sbin/opensipsctl fifo ps* Process:: ID=0 PID=1843 Type=attendant Process:: ID=1 PID=1845 Type=MI FIFO Process:: ID=2 PID=1846 Type=MI Datagram Process:: ID=3 PID=1847 Type=time_keeper Process:: ID=4 PID=1849 Type=timer Process:: ID=5 PID=1850 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=6 PID=1851 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=7 PID=1852 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=8 PID=1853 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=9 PID=1854 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=10 PID=1855 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=11 PID=1856 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=12 PID=1857 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=13 PID=1859 Type=Timer handler *gdb /usr/local/opensips2/sbin/opensips 1851* Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1 Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_dns-2.19.so...done. done. Loaded symbols for /lib/x86_64-linux-gnu/libnss_dns.so.2 0x7faee52c36cd in parse_backslash (offset=0x7ffc, words=, max_length=0x7ffc32c06040, word_length=0xd, word=0x636f732e3379786f) at wordexp.c:222 222wordexp.c: No such file or directory. *(gdb) bt * #0 0x7faee52c36cd in parse_backslash (offset=0x7ffc, words=, max_length=0x7ffc32c06040, word_length=0xd, word=0x636f732e3379786f) at wordexp.c:222 #1 parse_backtick (ifs_white=0x722f7261762f0001 access memory at address* 0x722f7261762f0001>, ifs=0x7fae24ccc960 "", pwordexp=0x838fd4 , flags=0, offset=0x7ffc, words=, max_length=0x1, word_length=0x7ffc32c06060, word=0x7ffc32c060c0) at wordexp.c:2147 #2 wordexp (words=, pwordexp=, flags=0) at wordexp.c:2359 #3 0x7ffc32c06220 in ?? () #4 0x in ?? () *(gdb) bt full * #0 0x7faee52c36cd in parse_backslash (offset=0x7ffc, words=, max_length=0x7ffc32c06040, word_length=0xd, word=0x636f732e3379786f) at wordexp.c:222 No locals. #1 parse_backtick (ifs_white=0x722f7261762f0001 access memory at address *0x722f7261762f0001>, ifs=0x7fae24ccc960 "", pwordexp=0x838fd4 , flags=0, offset=0x7ffc, words=, max_length=0x1, word_length=0x7ffc32c06060, word=0x7ffc32c060c0) at wordexp.c:2147 squoting = comm_length = 8622050 *comm = 0x6 * error = comm_maxlen = 8700952 #2 wordexp (words=, pwordexp=, flags=0) at wordexp.c:2359 words_offset = 0 word_length = 0 max_length = 140388071391744 word = 0x7ffc32c065c8 "" error = ifs = 0x7fae24ccc960 "" ifs_white = "\000\000\000" old_word = {we_wordc = 0, we_wordv = 0x0, we_offs = 0} #3 0x7ffc32c06220 in ?? () No symbol table info available. #4 0x in ?? () No symbol table info available. *ldd -v /usr/local/opensips2/sbin/opensips* linux-vdso.so.1 => (0x7fff96f49000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f75c45de000) libresol
[OpenSIPS-Users] Control Panel 6.2 doesn´t work with postgres and using user management
Hi, I just want to give a heads-up that control panel 6.2 does not work with postgres when using user management. It gives some MDB2 errors. It is related to changed behaviour of select syntax between 6.1 and 6.2. In 6.2 you will find this select syntax in user_management.main.php Line 185 $sql_command="from ".$table." s ".$sql_search." order by s.id asc"; Line 193 $resultset = $link->queryAll("select count(*) ".$sql_command); In 6.1 that still works with postgres for user management and opensips 2.2 select syntax is: Line 157 $sql_command="select * from ".$table." s where (1=1) ".$sql_search." order by s.id asc"; Line 166 $resultset = $link->queryAll($sql_command); Not sure reason of why select syntax is changed in 6.2 but you should correct it so it works for postgres. Meanwhile a workaround is to use cp 6.1 if you use pgsql as db for opensips. Regards, Martin ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Opensips 2.2.2 memory issue?
Dear all, After 11 days os usage Opensips process was not responding at all. This is the second time I am facing this kind of issue. I am sending you all the information below: System has 4 CPU Cores / 4 GB Ram Opensips version 2.2.2 *Run parameters : * S_MEMORY=2048 P_MEMORY=1024 *uname -a* Linux 4.4.0-62-generic #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux *Compiled with the following flags:* PKG_MALLOC SHM_MMAP USE_MCAST DISABLE_NAGLE STATISTICS HAVE_RESOLV_RES F_MALLOC F_MALLOC_OPTIMIZATIONS NO_DEBUG *and with the following extra modules : * db_mysql dialplan regex snmpstats *Loaded modules in opensips.cfg* loadmodule "proto_udp.so" loadmodule "mi_datagram.so" loadmodule "signaling.so" loadmodule "sl.so" loadmodule "tm.so" loadmodule "rr.so" loadmodule "maxfwd.so" loadmodule "sipmsgops.so" loadmodule "mi_fifo.so" loadmodule "uri.so" loadmodule "db_mysql.so" loadmodule "usrloc.so" loadmodule "registrar.so" loadmodule "auth.so" loadmodule "auth_db.so" loadmodule "dialog.so" loadmodule "nathelper.so" loadmodule "rtpproxy.so" loadmodule "drouting.so" loadmodule "uac.so" */usr/local/opensips2/sbin/opensipsctl fifo ps* Process:: ID=0 PID=1843 Type=attendant Process:: ID=1 PID=1845 Type=MI FIFO Process:: ID=2 PID=1846 Type=MI Datagram Process:: ID=3 PID=1847 Type=time_keeper Process:: ID=4 PID=1849 Type=timer Process:: ID=5 PID=1850 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=6 PID=1851 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=7 PID=1852 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=8 PID=1853 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=9 PID=1854 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=10 PID=1855 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=11 PID=1856 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=12 PID=1857 Type=SIP receiver udp:X.X.X.X:65100 Process:: ID=13 PID=1859 Type=Timer handler *gdb /usr/local/opensips2/sbin/opensips 1851* Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1 Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_dns-2.19.so...done. done. Loaded symbols for /lib/x86_64-linux-gnu/libnss_dns.so.2 0x7faee52c36cd in parse_backslash (offset=0x7ffc, words=, max_length=0x7ffc32c06040, word_length=0xd, word=0x636f732e3379786f) at wordexp.c:222 222 wordexp.c: No such file or directory. *(gdb) bt* #0 0x7faee52c36cd in parse_backslash (offset=0x7ffc, words=, max_length=0x7ffc32c06040, word_length=0xd, word=0x636f732e3379786f) at wordexp.c:222 #1 parse_backtick (ifs_white=0x722f7261762f0001 , ifs=0x7fae24ccc960 "", pwordexp=0x838fd4 , flags=0, offset=0x7ffc, words=, max_length=0x1, word_length=0x7ffc32c06060, word=0x7ffc32c060c0) at wordexp.c:2147 #2 wordexp (words=, pwordexp=, flags=0) at wordexp.c:2359 #3 0x7ffc32c06220 in ?? () #4 0x in ?? () *(gdb) bt full* #0 0x7faee52c36cd in parse_backslash (offset=0x7ffc, words=, max_length=0x7ffc32c06040, word_length=0xd, word=0x636f732e3379786f) at wordexp.c:222 No locals. #1 parse_backtick (ifs_white=0x722f7261762f0001 , ifs=0x7fae24ccc960 "", pwordexp=0x838fd4 , flags=0, offset=0x7ffc, words=, max_length=0x1, word_length=0x7ffc32c06060, word=0x7ffc32c060c0) at wordexp.c:2147 squoting = comm_length = 8622050 *comm = 0x6 * error = comm_maxlen = 8700952 #2 wordexp (words=, pwordexp=, flags=0) at wordexp.c:2359 words_offset = 0 word_length = 0 max_length = 140388071391744 word = 0x7ffc32c065c8 "" error = ifs = 0x7fae24ccc960 "" ifs_white = "\000\000\000" old_word = {we_wordc = 0, we_wordv = 0x0, we_offs = 0} #3 0x7ffc32c06220 in ?? () No symbol table info available. #4 0x in ?? () No symbol table info available. *ldd -v /usr/local/opensips2/sbin/opensips* linux-vdso.so.1 => (0x7fff96f49000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f75c45de000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x7f75c43c3000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f75c3ffa000) /lib64/ld-linux-x86-64.so.2 (0x55e9cad86000) Version information: /usr/local/opensips2/sbin/opensips: libresolv.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libresolv.so.2 libdl.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2 libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.15) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.7) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libdl.so.2: