Re: [OpenSIPS-Users] Load-Balancer Module - status destinations in database?

2017-01-24 Thread Johan De Clercq
as far as I know, you can only do this with mi. As the status depends on probing, in my opinion, it doesn't make sense to store this in a db. BR, Johan. 2017-01-25 1:16 GMT+01:00 Mundkowsky, Robert : > Is there a way to get the status (enabled or disabled) of load balancer

[OpenSIPS-Users] Load-Balancer Module - status destinations in database?

2017-01-24 Thread Mundkowsky, Robert
Is there a way to get the status (enabled or disabled) of load balancer destinations in database? Or is lb_list MI only way? This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the

[OpenSIPS-Users] FW: OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Ramachandran, Agalya (Contractor)
From: Ramachandran, Agalya (Contractor) Sent: Tuesday, January 24, 2017 11:42 AM To: 'Bogdan-Andrei Iancu' Subject: RE: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service Hi Bogdan, 1) do you get warning only for the tm-utimer job ? or do you see other

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Bogdan-Andrei Iancu
Hi Agalya, 1)do you get warning only for the tm-utimer job ? or do you see other too ? 2) do you have some load on the server (in terms of traffic) ? or is it idle/almost-idle ? 3) the "ps" and the logs are not from the same run (the pid's do not match) - can you get thedata from same run

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Ramachandran, Agalya (Contractor)
Hi Bogdan, Please find the result of “opensipsctl fifo ps” and the warnings am seeing in logs. Process:: ID=0 PID=3497 Type=attendant Process:: ID=1 PID=3498 Type=MI FIFO Process:: ID=2 PID=3499 Type=time_keeper Process:: ID=3 PID=3500 Type=timer Process:: ID=4 PID=3501 Type=SIP receiver

Re: [OpenSIPS-Users] Async DB statement

2017-01-24 Thread Bogdan-Andrei Iancu
Ahmed, after an async() call, the execution never returns, but it continues exclusively via the resume route. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/24/2017 05:06 PM, Ahmed Munir wrote: I mean to say, after calling async

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Bogdan-Andrei Iancu
OK, that should work for sure. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/24/2017 03:02 PM, Khalil Khamlichi wrote: sorry : # record routing record_route(); # create dialog with timeout if ( !create_dialog("B") ) {

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Bogdan-Andrei Iancu
The versions before 2.1 had a completely different approach on hoe the timer jobs were handled - different code, so no such warnings. The 2.1 introduces the a more flexible and scalable processing for the timer jobs. Could you confirm that removing the DB op from the startup route eliminates

Re: [OpenSIPS-Users] Async DB statement

2017-01-24 Thread Bogdan-Andrei Iancu
Could you please rephrase / detail your question, as I do not understand what you are asking. Thanks, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/24/2017 03:44 PM, Ahmed Munir wrote: Thanks, have been working on this and it is working. Btw, I

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Ahmed Munir
Yes, using startup route in my routing script and running DB query. This kind of warning I didn't face using 1.6 and 1.8 opensips versions but 2.2.2. Will you recommend async statement for my current routing (see below) for the startup? startup_route { $var(res) = 1; $avp(tmp) = "1";

Re: [OpenSIPS-Users] Async DB statement

2017-01-24 Thread Ahmed Munir
Thanks, have been working on this and it is working. Btw, I would like to know, is there a way to resume route while using async avp_db_query? As currently setting/declaring another async route for DB query, looking for resume route in main routing script. On Tue, Jan 24, 2017 at 6:45 AM,

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Alberto Gonzales
lunch time here, gracias khalil. On Tue, Jan 24, 2017 at 1:02 PM, Khalil Khamlichi < khamlichi.kha...@gmail.com> wrote: > sorry : > > # record routing >record_route(); > ># create dialog with timeout >if ( !create_dialog("B") ) { >

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Khalil Khamlichi
sorry : # record routing record_route(); # create dialog with timeout if ( !create_dialog("B") ) { send_reply("500","Internal Server Error"); exit; } # apply transformations from dialplan table

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Bogdan-Andrei Iancu
I see no indication of creating a dialog in your script sample :(...Are you sure about this ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/24/2017 02:20 PM, Alberto Gonzales wrote: I am using dialog in my script, here is the part of main

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Alberto Gonzales
I am using dialog in my script, here is the part of main function # apply transformations from dialplan table dp_translate("0","$rU/$rU"); # route calls based on prefix if ( !do_routing("1","W",,"$var(rule_attrs)","$var(gw_attrs)") ) {

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Bogdan-Andrei Iancu
Hi, It should be ok, but in your case the TH will not benefit from the dialog module (you do not use it) - all the info to he hidden will be appended to the Contact hdr (as extra param), while when using the dialog support, this info is stored into the dialog. To be honest, I never tried

Re: [OpenSIPS-Users] Opensips 1.6 as a Proxy and Presence Server

2017-01-24 Thread Bogdan-Andrei Iancu
Hi, Those are SIP URIs to be used as contacts by the presence server (a SIP URI pointing back - as address- to the presence server); in a Contact URI, the username part is no relevant (as the contact is a reference to the IP location of the device), so you can put whatever you want as

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Bogdan-Andrei Iancu
Hi, You can do TH with nathelper, BUT be sure to create the dialog + TH AFTER doing the fix_nated_contact(). Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/20/2017 12:42 PM, Alberto Gonzales wrote: We used instruction in the book, which

Re: [OpenSIPS-Users] topology hiding in opensips

2017-01-24 Thread Bogdan-Andrei Iancu
Hi Alberto, Do you have any logs to show the crash ? also, do you get a corefile (see http://www.opensips.org/Documentation/TroubleShooting-Crash). Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/20/2017 12:14 PM, Alberto Gonzales wrote: I

Re: [OpenSIPS-Users] Async DB statement

2017-01-24 Thread Bogdan-Andrei Iancu
Hi Ahmed, Note the $rc holds the return code of the LAST executed statement/instruction/function in the script. In the first case you do it right by saving the ret code of the avp_db_query into a separate variable, so you can use it even later. In the sync script, the $rc, when entering the

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Bogdan-Andrei Iancu
Hi Ahmed, So, the warnings pop up ONLY during startup sequence. Do you use startup route or any module performing mem caching of some DB table (drouting, permission, etc) ? Usually, the first UDP child is doing some heavy lifting during startup. Regards, Bogdan-Andrei Iancu OpenSIPS

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Bogdan-Andrei Iancu
Hi Agalya, Please provide the output of "opensipsctl fifo ps" Best regards. Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/19/2017 04:55 PM, Ramachandran, Agalya (Contractor) wrote: Hi Razvan, I didn’t see any process that is using more than 80%

Re: [OpenSIPS-Users] OpenSIPs 2.2.2 warnings during start service

2017-01-24 Thread Bogdan-Andrei Iancu
Hi, Does this happen ONLY at startup ? without any other warnings during runtime ? There is something interesting in your logs: First is this log, saying you do an infinite loop in a "while" in the script: Jan 18 13:04:35 qorblpsisprxyd1 /usr/sbin/opensips[3089]: INFO:core:do_action:

Re: [OpenSIPS-Users] tcp with opensips .

2017-01-24 Thread Bogdan-Andrei Iancu
Hi Sasmita, 1.6 is a real old version. The oldest still maintained version is 1.11, so you should consider it. The newer version have support for async (none blocking) TCP support (connect, read, write) so it should not be a problem at all. Regards, Bogdan-Andrei Iancu OpenSIPS Founder

Re: [OpenSIPS-Users] scheduled concurrent call reporting

2017-01-24 Thread Khalil Khamlichi
I looked up at the docs, $stat(active_dialogs) is for the whole system, If there is no way to call get_profile_size() automatically from whithin opensips I will need to fall back to MI fifo from an external script. On Tue, Jan 24, 2017 at 8:49 AM, Khalil Khamlichi < khamlichi.kha...@gmail.com>

Re: [OpenSIPS-Users] scheduled concurrent call reporting

2017-01-24 Thread Khalil Khamlichi
Hi Răzvan, would $stat(active_dialogs) give detailed stats ? I mean for each label I put on the calls ? example if I am labeling by IP would I get from $stat(active_dialogs) stats by label ? On Tue, Jan 24, 2017 at 8:38 AM, Răzvan Crainea wrote: > Hello, Khalil! > > You

Re: [OpenSIPS-Users] scheduled concurrent call reporting

2017-01-24 Thread Răzvan Crainea
Hello, Khalil! You could check the $stat(active_dialogs) pvar, which will return the number of ongoing dialogs. Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 01/24/2017 01:05 AM, Khalil Khamlichi wrote: the idea is that I don't need to get the