Re: [OpenSIPS-Users] Presence issue

2018-09-24 Thread Bogdan-Andrei Iancu

Hi Dan,

I'm trying to hunt this issue for a while , see:

https://github.com/OpenSIPS/opensips/issues/1422
https://github.com/OpenSIPS/opensips/issues/1378

But I never was able to reproduce it local, in order to debug it. Can 
you reproduce it ?



Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 09/21/2018 02:16 PM, Dan Pascu wrote:

After I started to test the lastest git code from master I noticed errors like 
this in my logs:


Sep 21 13:01:41 node03 /usr/sbin/opensips[22838]: 
CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1062): 
Duplicate entry 'dan-test.sip2sip.info-presence-a.1537527127.22838.2.1' for key 
'presentity_idx'
Sep 21 13:01:41 node03 /usr/sbin/opensips[22838]: ERROR:core:db_do_update: 
error while submitting query
Sep 21 13:01:41 node03 /usr/sbin/opensips[22838]: 
ERROR:presence:update_presentity: updating published info in database
Sep 21 13:01:41 node03 /usr/sbin/opensips[22838]: 
ERROR:presence:handle_publish: when updating presentity


I checked the presentity table and there is NO record with etag = 
a.1537527127.22838.2.1 in the database. I found however multiple records in the 
database for that particular account some of which are long expired yet not 
deleted from the database. The records seem to increase every time I publish 
presence:

MariaDB [opensips]> select username, domain, event, etag from presentity where 
username = 'dan';
+--+---+--++
| username | domain| event| etag   |
+--+---+--++
| dan  | test.sip2sip.info | presence | a.1537455410.31931.2.2 |
| dan  | test.sip2sip.info | presence | a.1537456928.2432.2.0  |
| dan  | test.sip2sip.info | presence | a.1537526062.20412.1.0 |
| dan  | test.sip2sip.info | presence | a.1537526092.20529.2.0 |
| dan  | test.sip2sip.info | presence | a.1537526122.20854.1.0 |
| dan  | test.sip2sip.info | presence | a.1537526997.22186.2.0 |
| dan  | test.sip2sip.info | presence | a.1537527037.22557.1.0 |
| dan  | test.sip2sip.info | presence | a.1537527072.22698.1.0 |
| dan  | test.sip2sip.info | presence | a.1537527127.22835.2.0 |
+--+---+--++
9 rows in set (0.00 sec)


I also checked an older opensips-1.11 server and there I only have 1 record per 
AOR and I never see such errors in syslog:

mysql> select username, domain, event, etag from presentity where username = 
'dan';
+--+-+--++
| username | domain  | event| etag   |
+--+-+--++
| dan  | ag-projects.com | presence | a.1530701145.32175.100449.152  |
| dan  | sip2sip.info| presence | a.1530701145.32185.100643.3251 |
+--+-+--++
2 rows in set (0.00 sec)


I use the same SIP client in both cases, but I only see the errors on the 
latest opensips from master. These errors happen every time I publish presence 
for that account.

In addition I noticed other presence related errors in syslog, which might or 
might not be related to this:

Sep 21 13:02:08 node03 /usr/sbin/opensips[22889]: 
ERROR:presence:delete_phtable_query: Record not found [a.1537526997.22186.2.0]
Sep 21 13:02:08 node03 /usr/sbin/opensips[22889]: 
ERROR:presence:msg_presentity_clean: deleting from pres hash table
Sep 21 13:02:08 node03 /usr/sbin/opensips[22889]: 
ERROR:presence:delete_phtable_query: Record not found [a.1537527037.22557.1.0]
Sep 21 13:02:08 node03 /usr/sbin/opensips[22889]: 
ERROR:presence:msg_presentity_clean: deleting from pres hash table
Sep 21 13:02:08 node03 /usr/sbin/opensips[22889]: 
ERROR:presence:delete_phtable_query: Record not found [a.1537527072.22698.1.0]
Sep 21 13:02:08 node03 /usr/sbin/opensips[22889]: 
ERROR:presence:msg_presentity_clean: deleting from pres hash table


--
Dan





___
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] SIP Proxy and Paid Support

2018-09-24 Thread Bogdan-Andrei Iancu

Hi Rick,

Doh, thanks for the heads-up on the broken form - it was affected by 
some latest changes into the SMTP server. We will fixit asap.


Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 09/24/2018 02:14 AM, Rick Pearce wrote:

Hi All,

I'm trying to contact someone at OpenSIPS to assist in setting up a 
carrier solution using the OpenSIPS proxy. I need OpenSIPS sitting 
behind a firewall on a 1to1 NAT with multiple individual customer 
FreePBXs on the same private subnet


Is there a modern setup tutorial available for this type of solution 
using the newer versions?


I would also like to engage paid support however the contact form 
doesn't appear to respond


The form at http://www.opensips-solutions.com/contact.html freezes and 
there doesn't appear to be another contact address other than the 
mailing list, IRC or facebook. Unless of course I have read this 
completely wrong :/


Please advise the support email so I can engage paid support, discuss 
an ongoing support contract plus training - sorry for the using the list


Thanks and regards
Rick


___
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 performing strict routing

2018-09-24 Thread Bogdan-Andrei Iancu

Hi Aqs,

the 'loose_routing' mechanism was not changed it terms of behavior - if 
a local IP/domain is found in RURI, it considers that the previous hop 
was a strict router. So, either 45.77.69.46 it should not be listed as 
local IP, either the routing is broken making 45.77.69.46 IP to get into 
RURI.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 09/23/2018 07:25 PM, Aqs Younas wrote:
ok, digging more i see this used to happen when RURI contains the 
address added into opensips as domain. I remember this used to work 
fine before.
As i am routing dispatching request to multiple media servers based 
upon domain.


Any pointer on this?

Br, Aqs.

On Sun, 23 Sep 2018 at 00:08, Aqs Younas > wrote:


Greetings list,

I am using opensips to bridge between two different networks. But
I see my in-dialog requests being messed up inside the opensips.
Looks like opensips is performing strict routing at loose_route()
function resulting in-dialog requests to never reach destination.

Bye Coming to opensips.

2018/09/22 18:34:48.230224 39.38.137.105:5060
 -> 167.99.37.41:5080

BYE sip:1005@45.77.69.46:5060;transport=udp SIP/2.0
CSeq: 3 BYE
From: "1010" mailto:sip%3A1010@45.77.69.46>>;tag=54afd375
To: mailto:sip%3A1005@45.77.69.46>>;tag=B6DU3jrK9mjBc
Call-ID: 0c42f165809a65019216a92969e38cb6@0:0:0:0:0:0:0:0
Max-Forwards: 70
Route:

,
Via: SIP/2.0/UDP
192.168.10.3:5060;branch=z9hG4bK-323230-ef1af21aa6eeac828830f4063d89d607
Contact: "1010"

Proxy-Authorization: Digest

username="1010",realm="45.77.69.46",nonce="2874ff58-bf0e-4ede-aecf-74ddd539ac62",uri="sip:1005@45.77.69.46

",response="a931d609c29b569494ffa7e11c7c6c9b",algorithm
D5,qop=auth,cnonce="xyz",nc=0001
User-Agent: Jitsi2.10.5550Windows 10
Content-Length: 0

Bye leaving opensips.

2018/09/22 18:34:48.234429 167.99.37.41:5080
 -> 167.99.37.41:6060

*BYE sip:167.99.37.41:6060;r2=on;lr;ftag=54afd375;nat=yes SIP/2.0*
CSeq: 3 BYE
From: "1010" mailto:sip%3A1010@45.77.69.46>>;tag=54afd375
To: mailto:sip%3A1005@45.77.69.46>>;tag=B6DU3jrK9mjBc
Call-ID: 0c42f165809a65019216a92969e38cb6@0:0:0:0:0:0:0:0
Max-Forwards: 69
Via: SIP/2.0/UDP 167.99.37.41:5080;branch=z9hG4bK0993.18510595.0
Via: SIP/2.0/UDP

192.168.10.3:5060;rport=5060;received=39.38.137.105;branch=z9hG4bK-323230-ef1af21aa6eeac828830f4063d89d607
Contact: "1010"

Proxy-Authorization: Digest

username="1010",realm="45.77.69.46",nonce="2874ff58-bf0e-4ede-aecf-74ddd539ac62",uri="sip:1005@45.77.69.46

",response="a931d609c29b569494ffa7e11c7c6c9b",algorithm
D5,qop=auth,cnonce="xyz",nc=0001
User-Agent: Jitsi2.10.5550Windows 10
Content-Length: 0

Could someone give me some pointers on this?

Any help is much appreciated.

Br, Aqs.



___
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] SIP Proxy and Paid Support

2018-09-24 Thread Daniel Zanutti
Hi Rick

I have a lot of experience on Opensips, maybe I can take a look at your
project.

Let me know if interested.

Thanks


On Mon, Sep 24, 2018 at 1:06 AM Alexander Jankowsky 
wrote:

>
>
> Hello Rick,
>
>
>
> There are some books around with the fundamentals so you can experiment
> and learn with the basics.
>
> There are formal courses some free and further higher levels for a fee so
> you can learn more formally.
>
>
>
> What is the time frame within which all of this has to happen or at least
> be started as work in progress.
>
> How many exactly do you mean by multiple, tens of, hundreds of, it would
> help to be a little more specific.
>
>
>
> There is a fair amount of documentation available to search out. Sometimes
> things move very quickly.
>
> In some cases the documentation is version specific and may not have
> caught up with what is being used.
>
> What version have you tried on what platform where have you specifically
> been running into problems.
>
>
>
> Alex
>
>
>
> *From:* Users [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Rick
> Pearce
> *Sent:* Monday, 24 September 2018 8:45 AM
> *To:* users@lists.opensips.org
> *Subject:* [OpenSIPS-Users] SIP Proxy and Paid Support
>
>
>
> Hi All,
>
>
>
> I'm trying to contact someone at OpenSIPS to assist in setting up a
> carrier solution using the OpenSIPS proxy. I need OpenSIPS sitting behind a
> firewall on a 1to1 NAT with multiple individual customer FreePBXs on the
> same private subnet
>
>
>
> Is there a modern setup tutorial available for this type of solution using
> the newer versions?
>
>
>
> I would also like to engage paid support however the contact form doesn't
> appear to respond
>
>
>
> The form at http://www.opensips-solutions.com/contact.html freezes and
> there doesn't appear to be another contact address other than the mailing
> list, IRC or facebook. Unless of course I have read this completely wrong :/
>
>
>
> Please advise the support email so I can engage paid support, discuss an
> ongoing support contract plus training - sorry for the using the list
>
>
>
> Thanks and regards
>
> Rick
> ___
> 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 cannot connect to "mediaproxy/dispatcher.sock"

2018-09-24 Thread Pasan Meemaduma via Users
Hi Steven,

Are you sure your dispatcher and relay daemons are running ?
use "ps aux | grep media" and see if they are actually running as background 
processes

btw look of it your dispatcher doesn't seems to be running. if it was, it'll 
create the socket file given in the config.
 

On Monday, 24 September 2018, 6:07:15 PM GMT+5:30, Steven Platt 
 wrote:  
 
 Greetings, 
I am having difficulty getting OpensSIPS to connect to MediaProxy for the 
purpose of bridging media of clients behind NAT, and hope the community has 
advice on how to resolve. 
I have installed MediaProxy from the Debian Jessie repository, and updated the 
config.ini file to disable TLS, Radius, etc - and set the dispatcher and relay 
IP to the public IP of my opensips server. I have mediaproxy and opensips 
installed to the same server with a direct public IP. 
Currently, it looks as though opensips correctly detects the client is behind 
NAT and tried to invoke mediaproxy. The calls seem to fail when opensips goes 
to connect to mediaproxy using the designated socket. Although mediaproxy 
service is running - it does not create the socket. 
Opensips version = 2.3.5

cat /var/log/opensips.log shows | tail 
root@[my-server]:~# cat /var/log/opensips.log | tailSep 21 19:08:59 [my-server] 
/usr/sbin/opensips[16080]: INFO:core:probe_max_sock_buff: using snd buffer of 
416 kbSep 21 19:08:59 [my-server] /usr/sbin/opensips[16080]: 
INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 61Sep 21 
19:09:21 [my-server] /usr/sbin/opensips[16081]: 
ERROR:mediaproxy:mediaproxy_connect: failed to connect to 
/var/run/mediaproxy/dispatcher.sock: No such file or directorySep 21 19:09:21 
[my-server] /usr/sbin/opensips[16081]: new branch at 
sip:1000@[client-outside-nat-ip]:44180;rinstance=4050910af32f1c09;transport=TCPSep
 21 19:09:21 [my-server] /usr/sbin/opensips[16081]: 
INFO:core:probe_max_sock_buff: using snd buffer of 416 kbSep 21 19:09:21 
[my-server] /usr/sbin/opensips[16081]: INFO:core:init_sock_keepalive: TCP 
keepalive enabled on socket 63Sep 21 19:13:34 [my-server] 
/usr/sbin/opensips[16081]: ERROR:mediaproxy:mediaproxy_connect: failed to 
connect to /var/run/mediaproxy/dispatcher.sock: No such file or directorySep 21 
19:13:34 [my-server] /usr/sbin/opensips[16081]: new branch at 
sip:1000@[client-outside-nat-ip]:44180;rinstance=4050910af32f1c09;transport=TCPSep
 21 19:13:34 [my-server] /usr/sbin/opensips[16081]: 
INFO:core:probe_max_sock_buff: using snd buffer of 416 kbSep 21 19:13:34 
[my-server] /usr/sbin/opensips[16081]: INFO:core:init_sock_keepalive: TCP 
keepalive enabled on socket 63
  

/etc/init.d/mediaproxy-relay and mediaproxy-dispatcher start does not give any 
error, and returns OK status for MediaProxy. 
The opensips module config for MediaProxy is: 
 Media Proxy moduleloadmodule "mediaproxy.so"modparam("mediaproxy", 
"mediaproxy_socket", 
"/var/run/mediaproxy/dispatcher.sock")modparam("mediaproxy", 
"mediaproxy_timeout", 500)modparam("mediaproxy", "signaling_ip_avp", 
"$avp(nat_ip)")modparam("mediaproxy", "media_relay_avp", 
"$avp(media_relay)")modparam("mediaproxy", "ice_candidate", 
"low-priority")modparam("mediaproxy", "ice_candidate_avp", 
"$avp(ice_candidate)")
The MediaProxy config.ini set the socket to this as well: 
[Dispatcher]; Local socket on which to communicate with OpenSIPS. The OpenSIPS 
mediaproxy; module should be configured to connect to this socket. If a 
relative path,; /var/run/mediaproxy will be prepended. Default value is 
dispatcher.sock.;socket_path = dispatcher.sock
Any advice for this would be much appreciated. I have tried to resolve and find 
configuration examples for a few hours now. 
___
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


[OpenSIPS-Users] OpenSIPS cannot connect to "mediaproxy/dispatcher.sock"

2018-09-24 Thread Steven Platt
Greetings,

I am having difficulty getting OpensSIPS to connect to MediaProxy for the
purpose of bridging media of clients behind NAT, and hope the community has
advice on how to resolve.

I have installed MediaProxy from the Debian Jessie repository, and updated
the config.ini file to disable TLS, Radius, etc - and set the dispatcher
and relay IP to the public IP of my opensips server. I have mediaproxy and
opensips installed to the same server with a direct public IP.

Currently, it looks as though opensips correctly detects the client is
behind NAT and tried to invoke mediaproxy. The calls seem to fail when
opensips goes to connect to mediaproxy using the designated socket.
Although mediaproxy service is running - it does not create the socket.

Opensips version = 2.3.5



cat /var/log/opensips.log shows | tail

root@[my-server]:~# cat /var/log/opensips.log | tail
Sep 21 19:08:59 [my-server] /usr/sbin/opensips[16080]:
INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
Sep 21 19:08:59 [my-server] /usr/sbin/opensips[16080]:
INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 61
Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]:
ERROR:mediaproxy:mediaproxy_connect: failed to connect to
/var/run/mediaproxy/dispatcher.sock: No such file or directory
Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]: new branch at
sip:1000@
[client-outside-nat-ip]:44180;rinstance=4050910af32f1c09;transport=TCP
Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]:
INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]:
INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 63
Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]:
ERROR:mediaproxy:mediaproxy_connect: failed to connect to
/var/run/mediaproxy/dispatcher.sock: No such file or directory
Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]: new branch at
sip:1000@
[client-outside-nat-ip]:44180;rinstance=4050910af32f1c09;transport=TCP
Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]:
INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]:
INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 63



/etc/init.d/mediaproxy-relay and mediaproxy-dispatcher start does not give
any error, and returns OK status for MediaProxy.

The opensips module config for MediaProxy is:

 Media Proxy module
loadmodule "mediaproxy.so"
modparam("mediaproxy", "mediaproxy_socket",
"/var/run/mediaproxy/dispatcher.sock")
modparam("mediaproxy", "mediaproxy_timeout", 500)
modparam("mediaproxy", "signaling_ip_avp", "$avp(nat_ip)")
modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")
modparam("mediaproxy", "ice_candidate", "low-priority")
modparam("mediaproxy", "ice_candidate_avp", "$avp(ice_candidate)")

The MediaProxy config.ini set the socket to this as well:

[Dispatcher]
; Local socket on which to communicate with OpenSIPS. The OpenSIPS
mediaproxy
; module should be configured to connect to this socket. If a relative path,
; /var/run/mediaproxy will be prepended. Default value is dispatcher.sock.
;
socket_path = dispatcher.sock

Any advice for this would be much appreciated. I have tried to resolve and
find configuration examples for a few hours now.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users