Re: [OpenSIPS-Users] How to avoid many warnings about "handle_timer_job".

2016-05-17 Thread Rodrigo Pimenta Carvalho
Ok. Thank you very much! If necessary I can take a look in the source code too. Best regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 De: Bogdan-Andrei Iancu Enviado: terça-feira, 17 de

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Bogdan-Andrei Iancu
So far, yes. But to be 100% you need to check via a pcap the fragmentation flags in the IP packet(s) for the SIP INVITE. This will tell you (1) if the packet is fragmented and (2) if all the IP packets (UDP fragments) are present. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer

[OpenSIPS-Users] Security presentation on opensips

2016-05-17 Thread John Nash
I saw http://www.opensips.org/pub/events/2012-08-07_ClueCon_Chicago/VLAD_PAIU-OpenSIPS-Securing_SIP_Networks.pdf . I would love to watch the video session of this, is there any place I can get the video? Tried searching google but did not find. Regards John

Re: [OpenSIPS-Users] Drouting memory usage

2016-05-17 Thread John Nash
Hello Bogdan, The version is Server:: OpenSIPS (2.1.2 (x86_64/linux)) Since this is live we do not have detailed debug. Below is what happened before crash (We had multiple such entries). I figured it might be related to malformed SIP message so I applied sipmsg_validate() function even for so

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Russell Treleaven
Look for the fragmentation flag. On May 17, 2016 1:08 PM, "Nabeel" wrote: > In that case, the answer to your question seems to be that the UDP packets > did not reach the OpenSIPS server, because nothing was added to the > OpenSIPS logs using debug level 4. All of this

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Nabeel
In that case, the answer to your question seems to be that the UDP packets did not reach the OpenSIPS server, because nothing was added to the OpenSIPS logs using debug level 4. All of this seems to point to the cause being UDP packet fragmentation. Is this correct? On 17 May 2016 4:24 pm,

Re: [OpenSIPS-Users] How to avoid many warnings about "handle_timer_job".

2016-05-17 Thread Rodrigo Pimenta Carvalho
Ok. I agree with you. But, do you have some comment on how to handle locked tables when I'm using DB_SQLite module from OpenSIPS? I know that SQLite has a mechanism to handle this condition and I have already used it in another project without OpenSIPs. But, as log as the connection to

Re: [OpenSIPS-Users] OpenSIPS 2.2 cross compiled decreases RAM by 28 bytes periodically.

2016-05-17 Thread Rodrigo Pimenta Carvalho
Hi Liviu. Thank you very much! Answers: 1 - It really keeps leaking for hours and hours. But, I will investigate again and take more detaisl about frequency of the 28 bytes leaking. 2 - I intend to run Valgrind and OpenSIPS in such environment just to check if there is leaks. I will

Re: [OpenSIPS-Users] Possible dialog/topology hiding bug

2016-05-17 Thread Bogdan-Andrei Iancu
Hi Pete, No, this is not a know bug, nor an intended behavior. So, simply restarting opensips during a TH call will lead to this error ? no special setup, just a proxy between 2 end points, right ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com

Re: [OpenSIPS-Users] Drouting memory usage

2016-05-17 Thread Bogdan-Andrei Iancu
Hi Nash, What version of OpenSIPS are you using ? also, before that CRITICAL message, do you see any other error messages in the logs ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 12.05.2016 08:46, John Nash wrote: Actually crash happened

Re: [OpenSIPS-Users] OpenSIPS 2.2 cross compiled decreases RAM by 28 bytes periodically.

2016-05-17 Thread Liviu Chircu
Hi Rodrigo, I will answer with two questions, so I can get a better picture of what's going on: * How long is your sample period? Does it really keep leaking for hours and hours? * Are you sure the memory is "leaked", and not "buffered"? This is a common topic for discussion in Linux

Re: [OpenSIPS-Users] Where to write an Internal format of a db_text table?

2016-05-17 Thread Bogdan-Andrei Iancu
Hi Rodrigo, The format of the tables is not part of the opensips script. Is like in mysql, where you define the tables in mysql itself and not in opensips. The db text files (the actual tables) are to be placed where ever you want on the disk. What you need to do from OpenSIPS cfg is to point

Re: [OpenSIPS-Users] Can I use DB_SQLite and DB_Text at same time in a script?

2016-05-17 Thread Bogdan-Andrei Iancu
Hi Rodrigo, Of course you can use any combination of SQL backends - when you define the db_url for a module, just select the db backend you want for it. Now, the timer error you get here is related to the SQLite - I noticed in one of your more recent posts that you get an error from sqlite

Re: [OpenSIPS-Users] IS_MYSELF() always uses 5060 if received port is 0

2016-05-17 Thread Bogdan-Andrei Iancu
Hi, That is a great catch, thank you for finding and reporting this. See the attach patch that should address the problem. Could you please give it a try to see if it really solves the problem ? Best Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Bogdan-Andrei Iancu
The TCP/IP stack of your server may decide to drop an UDP packet if it cannot re-assemble it correctly (like not all the IP fragments were received). In such a case, you see the IP packets (carrying the fragments) on network level, but they are never delivered at application level. Regards,

[OpenSIPS-Users] Possible dialog/topology hiding bug

2016-05-17 Thread Pete Kelly
I am seeing something interesting with topology_hiding + dialog on 2.1. If I let the dialog flush to the DB and kill opensips, opensips loads back in the dialog info on startup as expected. However any new in dialog requests (e.g. BYE) do not proxy - it looks like Via, Call-ID and Contact are

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Nabeel
> > The next question - is this INVITE reaching your opensips script ? to be > sure that the OS delivers the UDP packet to the opensips application. I don't have any firewall on my server. Why would the UDP packet get blocked between entering the server and reaching opensips script? The opensips

Re: [OpenSIPS-Users] Transfer issue with Cisco unified call manager

2016-05-17 Thread Sasmita Panda
Hi , I have encountered similar issue . B2BUA mode of opensips not able to change the SDP . I have tried to do this with Opensips-1.11 . I think it cant even change the SDP . As for my understanding , Opensips only work as a middle man between two User Agent . It only change the

[OpenSIPS-Users] Transfer issue with Cisco unified call manager

2016-05-17 Thread Chen-Che Huang
Dear all, For collaboration purpose and some reasons, we have set up a kind-of-weird architecture with Cisco unified call manager (abbreviated CUCM) as follows. client A client B <>OpenSIPS SIP proxy<>CUCM client C | RTP proxy

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Bogdan-Andrei Iancu
You can check it in the pcap - if an UDP packet is fragmented into multiple IP packets, you have some fragmentation flag set into the IP header (see https://www.cs.nyu.edu/courses/fall98/G22.2262-001/class11.txt, look for "fragmentation" ). Also, at SIP level, you may check if the advertised

Re: [OpenSIPS-Users] How to overcome SIP ALG on Wi-Fi routers

2016-05-17 Thread Bogdan-Andrei Iancu
As per that capture, I assume that 162.249.6.110 is your server. And there is nothing send further from that IP - only incoming traffic. The next question - is this INVITE reaching your opensips script ? to be sure that the OS delivers the UDP packet to the opensips application. Regards,

Re: [OpenSIPS-Users] How to avoid many warnings about "handle_timer_job".

2016-05-17 Thread Bogdan-Andrei Iancu
Hi Rodrigo, I'm back also. The logs indicate there is a serious delay in the execution of the ul-timer (user location). According to your logs, it is almost 15 minutes :O . What db_mode do you use in usrloc module ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer

Re: [OpenSIPS-Users] SIPTRAce module

2016-05-17 Thread Bogdan-Andrei Iancu
Hi, You can use the script_trace() function : http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc43 to trace the executions through your script. Place this function first thing in your script and check the its output for your OPTIONS. Regards, Bogdan-Andrei Iancu OpenSIPS