Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty

2016-09-29 Thread Bogdan-Andrei Iancu

Hi Denis,

The log you attached shows one single dr_reload command received, 
leading to the load of 198 GWs. After that there are no logs related to 
DR at all.


Regards,
Bogdan

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.09.2016 09:47, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Hello, Liviu!

The problem is still active.
In attachment you can see the latest log of the problem.

After the last string mysql connection became correct.

I want to ask, does it make any sense to increase timer parameters for 
mysql connection.
Ok, suppose we have some problem with the server and increasing of 
 timer parameters will help for it, but why does dr_rules becomes 
empty if it has mysql connection problem?



mailto:denis7...@mail.ru


	Correct, Denis - they have nothing to do with each other. I am just 
trying to isolate our problem (by excluding "too many reconnects"), so 
we can better understand what's happening.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 12.09.2016 15:45, Denis wrote:

	Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Liviu, and one 
interesting thing.
if we have some problem with mysql connection, why does dr_rules 
becomes "empty"?


mailto:denis7...@mail.ru


	Since you are using OpenSIPS 2.2, you can tune the following 
modparams of "db_mysql" [1], and see if behavior improves:

- max_db_queries (how many times a query is attempted)
- max_db_retries (for each query attempt above ^, how many attempts to 
connect to the MySQL server)


[1]: 
http://www.opensips.org/html/docs/modules/2.2.x/db_mysql.html#id249634

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 12.09.2016 13:02, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Hello,. Liviu!

I saw in log "too many reconnects". Unfortunately it does not 
reflected in log files that i attached early but it was there.

So.
I have two servers with two mysql + Opensips  installation. As you 
probably gassed one server is active and another is stand by.
Active server has "Server version: 5.5.50-0ubuntu0.12.04.1-log 
(Ubuntu)" mysql installation and standby  server has "Server version: 
5.5.44-0ubuntu0.14.04.1-log (Ubuntu)" mysql installation.
Respectively active server has "Ubuntu 12.04.5 LTS precise" and 
standby has "Ubuntu 14.04.3 LTS trusty"

Mysql replication master-master has been customized between two servers.

mailto:denis7...@mail.ru


Hi Denis,
Looking through the logs, this one seems to be relevant, and we need 
to understand the root cause for why it's happening:
Aug 19 17:00:37 opensips-main 
/usr/local/opensips2.1/sbin/opensips[17749]: 
WARNING:drouting:dr_load_routing_info: table "ast_dr_rules" is empty


As far as I can understand, one "dr_reload" command finds the table 
empty, then the next one properly retrieves the data! Although I see 
several disconnect events in there (for each process!), the driver 
should have reported "too many reconnects" errors if those were really 
the cause.


Could you provide more info about your MySQL setup? Is it a server, 
slave or cluster? What software and what version?

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 09.09.2016 09:19, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Hello!

Any ideas about the problem?

mailto:denis7...@mail.ru




Hello, Bogdan

I am sorry that i did not describe the problem more clearly.
404 opensips sends because in opensips.cfg i wrote a logic that if in 
dr_rules opensips finds no rules for routing it must send 404.
And the problem i think is there. Opensips began rejects all calls 
with 404, i.e. it could not find any rules in dr_rules table.
Everthing began fine after fifo dr_reload command execution, i.e. 
after dr_rules updating.


/--
/mailto:denis7...@mail.ru 


Hi,

OpenSIPS by itself does not send any 404. If it does, it does it 
because you put that into the script. So, you have to look into your 
script and see the logical path that makes OpenSIPS to get to sending 
a 404 reply.


You may use the script_trace :
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 30.08.2016 22:26, Denis wrote:

Re: Opensips 2.2.1 dr_rules is empty Hello!

Some time ago i wrote about a problem when Opensips began reject all 
calls with 404 code.

Unfortunately i did not received any answer.
Since that time i have made upgrade from 2.1.2 to 2.2.1 and today i 
have got the same problem. Opensips began rejects all calls with 404 
code.


Based on the information from log, i make suggest that problem began 
when dr_reload command has been received.
And the problem has been solved, again, when the dr_reload command has 
been received (the period about two commands is about a couple of 

[OpenSIPS-Users] Opensips bugs-please help(Media proxy)

2016-09-29 Thread Satish Sakthi
 Opensips team,

In opensips, I have facing problem in ,audio/video ,outside/public network

i) Connection established-end to end user but
 peer to peer connection(one to one)=no video/no audio.





Regards,
Sathiskumar
Kpostteam.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Routing in opensips

2016-09-29 Thread Eric Freeman
It is still not working, I added my public IP as requested. I do not have any 
gateways or anything set up. Do I need to add anything?

I added this to the route statement:


if (!uri==myself) {

append_hf("P-hint: outbound\r\n");

set_advertised_address("XXX.XX.XXX.X");

route(relay);


I am still receiving these errors:

Sep 29 12:10:22 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: 
DBG:rr:find_first_route: No Route headers found

Sep 29 12:10:22 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: 
DBG:rr:loose_route: There is no Route HF

Sep 29 12:10:22 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: 
DBG:core:parse_headers: flags=78



Eric Freeman

Technical Director/NA for TBWA\Chiat\Day

TBWA\Chiat\Day New York
488 Madison Ave.
New York NY 10022
United States of America
Tel: +12128041324


From: Bogdan-Andrei Iancu 
Sent: Tuesday, September 20, 2016 8:38:31 AM
To: Eric Freeman; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Routing in opensips

He Eric,

In the script (generated by menuconfig), you have an IF block with :
append_hf("P-hint: outbound\r\n");

That block is executed if one of your users is dialing an external SIP domain. 
So, that is the place where the calls will break out to public internet.

As your OpenSIPS has a private IP (not routable in internet), you need to 
configure it to advertise the public IP of your NAT via the 
set_advertise_address() - see:
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc46

Put there the public IP of your NAT. Also, be sure you create in your router 
(running the NAT) a port forwarding from the public IP port 5060 UDP to the 
private IP of your OpenSIPS port 5060 UDP.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 15.09.2016 13:10, Eric Freeman wrote:
Yes.

Get Outlook for iOS


From: Bogdan-Andrei Iancu 
Sent: Thursday, September 15, 2016 4:57:45 AM
To: Eric Freeman; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Routing in opensips

Hello Eric,

So, you OpenSIPS is running behind a NAT ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 14.09.2016 18:43, Eric Freeman wrote:

Thank you. I am using the residential script and my device is registered. When 
I register two devices I can call between them. But, when I want to send the 
traffic out to the Internet I receive these types of errors. My device is a 10 
address trying to call public IPs on the Internet. It appears I need to add a 
default route in opensips? It seems like it can't send the traffic to the 
Internet or a default route. The opensips server itself can get onto the 
Internet.


Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: 
DBG:core:get_hdr_field

: found end of header

Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: 
DBG:rr:find_first_rout

e: No Route headers found

Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: 
DBG:rr:loose_route: Th

ere is no Route HF

Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: 
DBG:dialog:w_create_di

alog2: bye on timeout activated


Thank you,


Eric Freeman


From: Bogdan-Andrei Iancu 
Sent: Wednesday, September 14, 2016 10:47:23 AM
To: OpenSIPS users mailling list; Eric Freeman
Subject: Re: [OpenSIPS-Users] Routing in opensips

Hi Eric,

A good starting point is the residential script that can be generated via the 
menuconfig tool. See:
http://www.opensips.org/Documentation/Generating-Configs-2-2

Then have your unit registered with your OpenSIPS.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 12.09.2016 18:15, Eric Freeman wrote:

I am very new to opensips and I want to use it for one application. I have 
installed version: opensips 2.2.1 (x86_64/linux)

on Ubuntu 14.04.2 LTS

Release: 14.04


I have a video conference unit and I want to be able make SIP calls to other 
video conference

units over the Internet.


I believe I need to set up some type of routing to route calls from this device 
out

to the Internet. I believe I need to add some commands to the route section of 
the configuration file. Can someone please let me know what commands I need to 
the config to allow the unit to call other units via sip over the Internet. I 
am using the “default routing” from the residential script.


I have registered the video conference unit to the opensips server


Contact:: 
sip:LifeSize@10.89.71.12;transport=UDP
 Q=


from config

listen=udp:10.88.23.13:5060   # CUSTOMIZE ME


listen=tcp:10.88.23.13:5060   # CUSTOMIZE ME


Please let me know 

Re: [OpenSIPS-Users] 回复: [OpenSIPS-Devel] how to config opensips compile with a specialopenssl version and path

2016-09-29 Thread viperlong
thank you  Bogdan,I  did it as you  said.


Liu jinlong


发自我的小米手机在 2016年9月29日 下午3:59,Bogdan-Andrei Iancu 写道:
  
  
Hello,

The 2.2.1 requires openssl only for the proto_tls modules.
  The core does not requires it.

For the proto_tls, you may try:

  CROSS_COMPILE=yes LOCALBASE=/exprot/opensips/3rdpart/opensssl
  make modules modules=modules/proto_tls

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 26.09.2016 14:35, 龙 wrote:


  hi Bogdan:
   my opensips version is 2.2.1
  


liujinlong
-- 原始邮件 --

  发件人: "Bogdan-Andrei
Iancu";;
  发送时间: 2016年9月26日(星期一) 下午5:47
  收件人: "OpenSIPS devel mailling
list";
"龙"; 
  主题: Re: [OpenSIPS-Devel] how to config opensips
compile with a specialopenssl version and paths



Hello,
  
  Which version of OpenSIPS are you trying to compile ?
  
  Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 26.09.2016 10:14, 龙 wrote:


  hello everyone:
           I want compile  opensips with special openssl
which I compile and install it in        
 "/exprot/opensips/3rdpart/opensssl"  .  
           I need your help .thank you.
  
  
  liujinlong
  
  
  
  ___
Devel mailing list
de...@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel



  


  


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty

2016-09-29 Thread Denis
Hello, Bogdan!

Yes, in the log i noticed only one dr_reload when the problem appears.
I wanted to show that opensips tries to make many attempts to connect to mysql 
but dr_rules becomes empty.

Next dr_reload had been applied over 9 minutes about.

mailto:denis7...@mail.ru


Hi Denis,

The log you attached shows one single dr_reload command received, leading to 
the load of 198 GWs. After that there are no logs related to DR at all.

Regards,
Bogdan
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 27.09.2016 09:47, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Hello, Liviu!

The problem is still active.
In attachment you can see the latest log of the problem.

After the last string mysql connection became correct.

I want to ask, does it make any sense to increase timer parameters for mysql 
connection.
Ok, suppose we have some problem with the server and increasing of  timer 
parameters will help for it, but why does dr_rules becomes empty if it has 
mysql connection problem?


mailto:denis7...@mail.ru


Correct, Denis - they have nothing to do with each other. I am just trying to 
isolate our problem (by excluding "too many reconnects"), so we can better 
understand what's happening.
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 12.09.2016 15:45, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Liviu, and one 
interesting thing.
if we have some problem with mysql connection, why does dr_rules becomes 
"empty"?

mailto:denis7...@mail.ru


Since you are using OpenSIPS 2.2, you can tune the following modparams of 
"db_mysql" [1], and see if behavior improves:
- max_db_queries (how many times a query is attempted)
- max_db_retries (for each query attempt above ^, how many attempts to connect 
to the MySQL server)

[1]: http://www.opensips.org/html/docs/modules/2.2.x/db_mysql.html#id249634
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 12.09.2016 13:02, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Hello,. Liviu!

I saw in log "too many reconnects". Unfortunately it does not reflected in log 
files that i attached early but it was there.
So.
I have two servers with two mysql + Opensips  installation. As you probably 
gassed one server is active and another is stand by. 
Active server has "Server version: 5.5.50-0ubuntu0.12.04.1-log (Ubuntu)" mysql 
installation and standby  server has "Server version: 
5.5.44-0ubuntu0.14.04.1-log (Ubuntu)" mysql installation.
Respectively active server has "Ubuntu 12.04.5 LTS precise" and standby has 
"Ubuntu 14.04.3 LTS trusty"
Mysql replication master-master has been customized between two servers.

mailto:denis7...@mail.ru


Hi Denis,
Looking through the logs, this one seems to be relevant, and we need to 
understand the root cause for why it's happening:
Aug 19 17:00:37 opensips-main /usr/local/opensips2.1/sbin/opensips[17749]: 
WARNING:drouting:dr_load_routing_info: table "ast_dr_rules" is empty

As far as I can understand, one "dr_reload" command finds the table empty, then 
the next one properly retrieves the data! Although I see several disconnect 
events in there (for each process!), the driver should have reported "too many 
reconnects" errors if those were really the cause.

Could you provide more info about your MySQL setup? Is it a server, slave or 
cluster? What software and what version?
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 09.09.2016 09:19, Denis wrote:

Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty Hello!

Any ideas about the problem?

mailto:denis7...@mail.ru



Hello, Bogdan

I am sorry that i did not describe the problem more clearly.
404 opensips sends because in opensips.cfg i wrote a logic that if in dr_rules 
opensips finds no rules for routing it must send 404.
And the problem i think is there. Opensips began rejects all calls with 404, 
i.e. it could not find any rules in dr_rules table.
Everthing began fine after fifo dr_reload command execution, i.e. after 
dr_rules updating.   

-- 
mailto:denis7...@mail.ru


Hi,

OpenSIPS by itself does not send any 404. If it does, it does it because you 
put that into the script. So, you have to look into your script and see the 
logical path that makes OpenSIPS to get to sending a 404 reply.

You may use the script_trace :
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 30.08.2016 22:26, Denis wrote:

Re: Opensips 2.2.1 dr_rules is empty Hello!

Some time ago i wrote about a problem when Opensips began reject all calls with 
404 code.
Unfortunately i did not received any answer.
Since that time i have made upgrade from 2.1.2 to 2.2.1 and today i have got 
the same problem. Opensips began rejects all calls with 404 code. 

Based on the information from log, i make suggest that problem began when 
dr_reload 

Re: [OpenSIPS-Users] 回复: [OpenSIPS-Devel] how to config opensips compile with a specialopenssl version and path

2016-09-29 Thread Bogdan-Andrei Iancu

Hello,

The 2.2.1 requires openssl only for the proto_tls modules. The core does 
not requires it.


For the proto_tls, you may try:

  CROSS_COMPILE=yes LOCALBASE=/exprot/opensips/3rdpart/opensssl make 
modules modules=modules/proto_tls


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 26.09.2016 14:35, ?? wrote:

hi Bogdan:
my opensips version is 2.2.1

liujinlong
--  --
*??:* "Bogdan-Andrei Iancu";;
*:* 2016??9??26??(??) 5:47
*??:* "OpenSIPS devel mailling list"; 
"??";
*:* Re: [OpenSIPS-Devel] how to config opensips compile with a 
specialopenssl version and paths


Hello,

Which version of OpenSIPS are you trying to compile ?

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 26.09.2016 10:14, ?? wrote:

hello everyone??
 I want compile  opensips with special openssl which I 
compile and install it in  "/exprot/opensips/3rdpart/opensssl"  .

 I need your help .thank you.

liujinlong


___
Devel mailing list
de...@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users