Re: [OpenSIPS-Users] SIP SDP rfc1918 address fix

2017-04-24 Thread Alex Balashov
The intent of my questions was to get what you think about what you
actually want to accomplish. fix_nated_sdp() allows you to replace the
IP with the received signalling IP:

http://www.opensips.org/html/docs/modules/2.1.x/nathelper.html#id293899

But what about the port? 

On Mon, Apr 24, 2017 at 11:39:14PM -0400, Satish Patel wrote:

> after google found bunch of post where people suggesting use
> fix_nated_sdp()  is that right approach ?
> 
> On Mon, Apr 24, 2017 at 11:25 PM, Alex Balashov
>  wrote:
> > Yes, but RTP can come from a different address than the signalling
> > (SIP). What sense would there be in substituting the source of the SIP
> > message in there?
> >
> > On Mon, Apr 24, 2017 at 11:23:30PM -0400, Satish Patel wrote:
> >
> >> I meant "origin public address of client"  if c line isn't public then
> >> media never work.
> >>
> >> c=IN IP4 192.168.1.8.
> >>
> >> It should be
> >>
> >> c=IN IP4 
> >>
> >> On Mon, Apr 24, 2017 at 11:04 PM, Alex Balashov
> >>  wrote:
> >> > Satish,
> >> >
> >> > When you say "origin public address", do you mean the external source
> >> > address and port of the SIP message, or the incoming RTP stream?
> >> >
> >> > On Mon, Apr 24, 2017 at 11:00:40PM -0400, Satish Patel wrote:
> >> >
> >> >> In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
> >> >> and replace it with origin public address. ex
> >> >>
> >> >> I am seeing following info in INVITE
> >> >>
> >> >> v=0.
> >> >> o=amsip 0 0 IN IP4 192.168.1.8.
> >> >> s= .
> >> >> c=IN IP4 192.168.1.8.
> >> >> t=0 0.
> >> >> m=audio 22530 RTP/AVP 127 111 0 101.
> >> >>
> >> >> ___
> >> >> Users mailing list
> >> >> Users@lists.opensips.org
> >> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >> >
> >> > --
> >> > Alex Balashov | Principal | Evariste Systems LLC
> >> >
> >> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> >> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> >> >
> >> > ___
> >> > 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
> >
> > --
> > Alex Balashov | Principal | Evariste Systems LLC
> >
> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> >
> > ___
> > 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

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [OpenSIPS-Users] SIP SDP rfc1918 address fix

2017-04-24 Thread Satish Patel
after google found bunch of post where people suggesting use
fix_nated_sdp()  is that right approach ?

On Mon, Apr 24, 2017 at 11:25 PM, Alex Balashov
 wrote:
> Yes, but RTP can come from a different address than the signalling
> (SIP). What sense would there be in substituting the source of the SIP
> message in there?
>
> On Mon, Apr 24, 2017 at 11:23:30PM -0400, Satish Patel wrote:
>
>> I meant "origin public address of client"  if c line isn't public then
>> media never work.
>>
>> c=IN IP4 192.168.1.8.
>>
>> It should be
>>
>> c=IN IP4 
>>
>> On Mon, Apr 24, 2017 at 11:04 PM, Alex Balashov
>>  wrote:
>> > Satish,
>> >
>> > When you say "origin public address", do you mean the external source
>> > address and port of the SIP message, or the incoming RTP stream?
>> >
>> > On Mon, Apr 24, 2017 at 11:00:40PM -0400, Satish Patel wrote:
>> >
>> >> In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
>> >> and replace it with origin public address. ex
>> >>
>> >> I am seeing following info in INVITE
>> >>
>> >> v=0.
>> >> o=amsip 0 0 IN IP4 192.168.1.8.
>> >> s= .
>> >> c=IN IP4 192.168.1.8.
>> >> t=0 0.
>> >> m=audio 22530 RTP/AVP 127 111 0 101.
>> >>
>> >> ___
>> >> Users mailing list
>> >> Users@lists.opensips.org
>> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >
>> > --
>> > Alex Balashov | Principal | Evariste Systems LLC
>> >
>> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
>> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>> >
>> > ___
>> > 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
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> 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 SDP rfc1918 address fix

2017-04-24 Thread Alex Balashov
Yes, but RTP can come from a different address than the signalling
(SIP). What sense would there be in substituting the source of the SIP
message in there?

On Mon, Apr 24, 2017 at 11:23:30PM -0400, Satish Patel wrote:

> I meant "origin public address of client"  if c line isn't public then
> media never work.
> 
> c=IN IP4 192.168.1.8.
> 
> It should be
> 
> c=IN IP4 
> 
> On Mon, Apr 24, 2017 at 11:04 PM, Alex Balashov
>  wrote:
> > Satish,
> >
> > When you say "origin public address", do you mean the external source
> > address and port of the SIP message, or the incoming RTP stream?
> >
> > On Mon, Apr 24, 2017 at 11:00:40PM -0400, Satish Patel wrote:
> >
> >> In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
> >> and replace it with origin public address. ex
> >>
> >> I am seeing following info in INVITE
> >>
> >> v=0.
> >> o=amsip 0 0 IN IP4 192.168.1.8.
> >> s= .
> >> c=IN IP4 192.168.1.8.
> >> t=0 0.
> >> m=audio 22530 RTP/AVP 127 111 0 101.
> >>
> >> ___
> >> Users mailing list
> >> Users@lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> > --
> > Alex Balashov | Principal | Evariste Systems LLC
> >
> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> >
> > ___
> > 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

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [OpenSIPS-Users] SIP SDP rfc1918 address fix

2017-04-24 Thread Satish Patel
I meant "origin public address of client"  if c line isn't public then
media never work.

c=IN IP4 192.168.1.8.

It should be

c=IN IP4 

On Mon, Apr 24, 2017 at 11:04 PM, Alex Balashov
 wrote:
> Satish,
>
> When you say "origin public address", do you mean the external source
> address and port of the SIP message, or the incoming RTP stream?
>
> On Mon, Apr 24, 2017 at 11:00:40PM -0400, Satish Patel wrote:
>
>> In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
>> and replace it with origin public address. ex
>>
>> I am seeing following info in INVITE
>>
>> v=0.
>> o=amsip 0 0 IN IP4 192.168.1.8.
>> s= .
>> c=IN IP4 192.168.1.8.
>> t=0 0.
>> m=audio 22530 RTP/AVP 127 111 0 101.
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> 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 SDP rfc1918 address fix

2017-04-24 Thread Alex Balashov
Satish,

When you say "origin public address", do you mean the external source
address and port of the SIP message, or the incoming RTP stream?

On Mon, Apr 24, 2017 at 11:00:40PM -0400, Satish Patel wrote:

> In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
> and replace it with origin public address. ex
> 
> I am seeing following info in INVITE
> 
> v=0.
> o=amsip 0 0 IN IP4 192.168.1.8.
> s= .
> c=IN IP4 192.168.1.8.
> t=0 0.
> m=audio 22530 RTP/AVP 127 111 0 101.
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


[OpenSIPS-Users] SIP SDP rfc1918 address fix

2017-04-24 Thread Satish Patel
In my INVITE/SDP i am seeing sometime rfc1918 address which i want fix
and replace it with origin public address. ex

I am seeing following info in INVITE

v=0.
o=amsip 0 0 IN IP4 192.168.1.8.
s= .
c=IN IP4 192.168.1.8.
t=0 0.
m=audio 22530 RTP/AVP 127 111 0 101.

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


Re: [OpenSIPS-Users] openssl version launching 2.3

2017-04-24 Thread Tito Cumpen
This becomes an issue with centos 7 as there are no supported packages of
openssl 1.0.2 and the latest rabbitmqlib requires the 1.0.1. Also I cannot
find an openssl-devel package of 1.0.2.  I tried 2.4 and had the same
outcome. Any ideas what can be done here ?

On Mon, Apr 24, 2017 at 6:00 PM, Tito Cumpen  wrote:

> Group,
>
> I am having issues launching the latest opensips 2.3. Although I've
> updated openssl and recompillled opensips
>
>
>  ERROR:tls_mgm:mod_init: NOTE: check if you are using openssl 1.0.1e-fips,
> (or other FIPS version of openssl, as this is known to be broken; if so,
> you need to upgrade or downgrade to a different openssl version!
> Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]:
> ERROR:tls_mgm:mod_init: current version: OpenSSL 1.0.1e-fips 11 Feb 2013
> Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]:
> ERROR:core:init_mod: failed to initialize module tls_mgm
> Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: ERROR:core:main:
> error while initializing modules
> Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: INFO:core:cleanup:
> cleanup
> Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: NOTICE:core:main:
> Exiting
> Apr 24 21:48:33 cloud-server-06 opensips: INFO:core:daemonize: pre-daemon
> process exiting with -1
>
>
>
> openssl version -a
>
> OpenSSL 1.0.2k  26 Jan 2017
>
> built on: reproducible build, date unspecified
>
> platform: linux-x86_64
>
> options:  bn(64,64) rc4(8x,int) des(idx,cisc,16,int) idea(int)
> blowfish(idx)
>
> compiler: gcc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall
> -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5
> -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM
> -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
> -DECP_NISTZ256_ASM
>
> OPENSSLDIR: "/usr/local/ssl"
>
>
>
> is there any reason  opensips is using the older version still ?
>
>
>
> Thanks,
>
> Tito
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] openssl version launching 2.3

2017-04-24 Thread Tito Cumpen
Group,

I am having issues launching the latest opensips 2.3. Although I've updated
openssl and recompillled opensips


 ERROR:tls_mgm:mod_init: NOTE: check if you are using openssl 1.0.1e-fips,
(or other FIPS version of openssl, as this is known to be broken; if so,
you need to upgrade or downgrade to a different openssl version!
Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]:
ERROR:tls_mgm:mod_init: current version: OpenSSL 1.0.1e-fips 11 Feb 2013
Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: ERROR:core:init_mod:
failed to initialize module tls_mgm
Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: ERROR:core:main:
error while initializing modules
Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: INFO:core:cleanup:
cleanup
Apr 24 21:48:33 cloud-server-06 /sbin/opensips[14697]: NOTICE:core:main:
Exiting
Apr 24 21:48:33 cloud-server-06 opensips: INFO:core:daemonize: pre-daemon
process exiting with -1



openssl version -a

OpenSSL 1.0.2k  26 Jan 2017

built on: reproducible build, date unspecified

platform: linux-x86_64

options:  bn(64,64) rc4(8x,int) des(idx,cisc,16,int) idea(int)
blowfish(idx)

compiler: gcc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall
-DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5
-DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM
-DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
-DECP_NISTZ256_ASM

OPENSSLDIR: "/usr/local/ssl"



is there any reason  opensips is using the older version still ?



Thanks,

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


Re: [OpenSIPS-Users] mongoc changes

2017-04-24 Thread Tito Cumpen
Liviu,


I downloaded the lib like this :
wget
https://github.com/mongodb/mongo-c-driver/releases/download/1.0.0/mongo-c-driver-1.0.0.tar.gz

and added the configure prefix

 ./*configure* --prefix=/usr --libdir=/usr/lib64


which allowed me to install mongoc in the prefix dir and the install
opensips script had no issues finding it.

On Mon, Apr 24, 2017 at 5:23 PM, Liviu Chircu  wrote:

> Indeed you are right about the docs, Tito - I will get them updated this
> week. Regarding the package, it's "libmongoc" on Debian and
> "mongo-c-driver" on Red Hat.
>
> Regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 24.04.2017 23:23, Tito Cumpen wrote:
>
> Group,
>
>
> I am trying to compile opensips from the latest 2.3 pull. It looks like it
> requires libmongoc-1.0 but the documentation is asking for v 0.6. I am also
> having issues finding 1.0
>
> Package libmongoc-1.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libmongoc-1.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libmongoc-1.0' found
> Package libmongoc-1.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libmongoc-1.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libmongoc-1.0' found
> make[2]: Entering directory `/usr/src/opensips-2.3/
> modules/cachedb_mongodb'
> Package libmongoc-1.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libmongoc-1.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libmongoc-1.0' found
>
>
> is it in /usr/local/lib/
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> 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] mongoc changes

2017-04-24 Thread Liviu Chircu
Indeed you are right about the docs, Tito - I will get them updated this 
week. Regarding the package, it's "libmongoc" on Debian and 
"mongo-c-driver" on Red Hat.


Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 24.04.2017 23:23, Tito Cumpen wrote:

Group,


I am trying to compile opensips from the latest 2.3 pull. It looks 
like it requires libmongoc-1.0 but the documentation is asking for v 
0.6. I am also having issues finding 1.0


Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found
Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found
make[2]: Entering directory 
`/usr/src/opensips-2.3/modules/cachedb_mongodb'

Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found


is it in /usr/local/lib/


___
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] mongoc changes

2017-04-24 Thread Tito Cumpen
Group,


I am trying to compile opensips from the latest 2.3 pull. It looks like it
requires libmongoc-1.0 but the documentation is asking for v 0.6. I am also
having issues finding 1.0

Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found
Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found
make[2]: Entering directory `/usr/src/opensips-2.3/modules/cachedb_mongodb'
Package libmongoc-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmongoc-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmongoc-1.0' found


is it in /usr/local/lib/
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] BLF with only one domain?

2017-04-24 Thread Bogdan-Andrei Iancu
"And when a connection goes from certain server to user 1 it 
uses IP in Invite, not a domain name. "


Wrong . If you want to subscribe to the same entity, the same SIP 
URI must be in the RURI (same username, same domain) .


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/24/2017 03:55 PM, maatohewetbi wrote:

I have a strange behaviour in Opensips. Look at this, In active_watchers
table I get something like this:

presentity_ur i:sip:11...@sip.test.com.pl   
watcher_username: 1
watcher_domain: sip.test.com.pl 
to_user: 1
to_domain:  sip.test.com.p

so it means my user 1 wants to look BLF of itself. And when a connection
goes from certain server  to user 1 it uses IP in Invite, not a domain
name. When it happens, my BLF doesn't work although my user has a
subscription. If I use a domain name in this Invite - it works ok. But the
problem is, that I have many domains, pointing to one IP. My users can use
all domains. So, how can I make Opensips BLF module work domain
independently? My users should use BLF in every domain.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/BLF-with-only-one-domain-tp7607133.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
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] BLF authorize

2017-04-24 Thread Bogdan-Andrei Iancu

Hi

Your script is authorizing just the creation of a subscription (to BLF). 
Onces the subscription is created, there will be no authorization 
anymore and the NOTIFY'es will be sent out. As a subscription is 
periodically refreshed (see the Expire hdr), your auth check will be 
performed upon the next sequential SUBSCRIBE.


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/24/2017 11:13 AM, maatohewetbi wrote:

I've just added BLF to my Opensips 1.11.9 and it seems to work ok, but I want
to start another thing: I want to authorize users, I want to let user to
monitor only certain users. I've just added this to my script:

/
  route[handle_presence]
{
avp_db_query("select user_id from user where sip_login='$fU'",
"$avp(from)");
avp_db_query("select user_id from user where sip_login='$tU'", "$avp(to)");
if ($avp(from)==$avp(to))
{

 if(!t_newtran()){
 sl_reply_error();
 exit;
 }

 if (is_method("PUBLISH")) {
 handle_publish();
 } else

 if (is_method("SUBSCRIBE")) {
 handle_subscribe();
 }

 exit;
}
else
{
xlog("BLF - unauthorized");
 send_reply("405","Method Not Allowed");
 exit;
}
}/

but it seems that after changing user_id, without restarting Opensips NOTIFY
messages still go to unauthorized user. So I've also added:

/ if (is_method("NOTIFY")) {
 xlog("NOTIFY");
 avp_db_query("select user_id from user where sip_login='$fU'",
"$avp(from)");
 avp_db_query("select user_id from user where sip_login='$tU'",
"$avp(to)");
 if (!$avp(from)==$avp(to)) {
 xlog("NOTIFY to unauthorized user!");
 exit;
}
 }/

and it still doesn't work. It looks like NOTIFY messages don't go through
this script. How to make it work without XCAP server?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/BLF-authorize-tp7607123.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
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] ERROR topology_hiding_match() and WSS

2017-04-24 Thread Bogdan-Andrei Iancu

Hi,

Same question, same answer - see 
http://lists.opensips.org/pipermail/users/2017-April/036925.html


Regards,

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/21/2017 07:24 PM, Dragomir Haralambiev wrote:

Hello,

I have problem with "topology_hiding_match()" and WSS.

Zoiper ---(send BYE)--> Opensips --(can not relay to)---> SIP.JS


Here part ot script:
if (has_totag()) {
if (topology_hiding_match()) {
t_relay();
exit;
}
...

Opensips receive BYE. When execute "t_relay()" give follow ERRORS:

INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 23
ERROR:core:tcp_connect_blocking: timeout 99195 ms elapsed from 10 s
ERROR:proto_ws:ws_sync_connect: tcp_blocking_connect failed
ERROR:proto_ws:ws_connect: connect failed
ERROR:proto_ws:proto_ws_send: connect failed
ERROR:tm:msg_send: send() for proto 5 failed
ERROR:tm:t_forward_nonack: sending request failedscheduled

Where is problem?


___
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] Heads-up - OpenSIPS 2.3.0 stable release

2017-04-24 Thread Bogdan-Andrei Iancu

Hi all,

Following a full month of testing and fixing, we are on the right tracks 
in order to go from beta to stable and to release OpenSIPS 2.3.0 on 
Wednesday 26th of April.


So, please take advantage of the last 2 days if there are things still 
to be reported.


Otherwise, let's welcome OpenSIPS 2.3.0 stable !!!  And do not forget, 
the General Availability is to be become official during the OpenSIPS 
Summit in Amsterdam ;)


Best Regards,
Bogdan

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

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html


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


Re: [OpenSIPS-Users] support for cloudamqp

2017-04-24 Thread Răzvan Crainea

Hi, Tito!

Here's[1] the snippet I used for my tests.

[1] https://pastebin.com/rRZhDXTX

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 04/24/2017 10:35 AM, Tito Cumpen wrote:

Razvan,

How do specify the virtualhost in 2.3?  can you send me a sample of 
the syntax ?


On Apr 24, 2017 3:30 AM, "Răzvan Crainea" > wrote:


Hi, Tito!

You are right, this is not possible with the event_rabbitmq
module, because there is no way to specify the virtual host in the
url.
But you can use the latest rabbitmq module in OpenSIPS 2.3.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com 

On 04/21/2017 09:53 PM, Tito Cumpen wrote:

Hey Razvan,

I tried the following on Opensips:


subscribe_event("E_ACC_EVENT","rabbitmq:vhostuser:p...@host.cloudamqp.com/vhostuser/queuename
");


their URL string is in this format :

amqp://vhostusert:p...@host.cloudamqp.com/vhostuser



When Opensips tries to connect to this queue it sends

/ as the argument for openvhost

Cloudamqp replies with


NOT_ALLOWED - access to vhost '/' refused for user 'vhostuser'


Is my opensips syntax incorrect ? or is this a bug ?

Also I am not sure what you mean by immediate.

Thanks,

Tito



On Fri, Apr 21, 2017 at 5:56 AM, Răzvan Crainea
> wrote:

Hi, Tito!

I've just made a free cloudamqp account for testing and used
the new rabbitmq module to send a message in the queue. The
message was not published initially due to the fact that I
was using the "immediate" flag, (I was receiving
NOT_IMPLEMENTED, probably because the free account lacks some
features), but after I removed the setting the message was
successfully delivered in the queue.
I didn't test with the event_rabbitmq module though, but I
imagine it will work too, since both modules (event_rabbitmq
and rabbitmq) use the same AMQP library.
Can you detail a bit how you tested so we can find where the
problem is on your setup?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com 

On 04/20/2017 09:18 PM, Tito Cumpen wrote:

Hello,

I was wondering if there was any intention to update the
amqp support to allow opensips to post events to
cloudamqp(https://www.cloudamqp.com
). When I try to connect
cloudamqp it fails because it is outdated.

Thanks,
Tito


___
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
 


___
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
 


___
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] BLF with only one domain?

2017-04-24 Thread maatohewetbi
I have a strange behaviour in Opensips. Look at this, In active_watchers
table I get something like this:

presentity_ur i:sip:11...@sip.test.com.pl   
watcher_username: 1
watcher_domain: sip.test.com.pl 
to_user: 1
to_domain:  sip.test.com.p

so it means my user 1 wants to look BLF of itself. And when a connection
goes from certain server  to user 1 it uses IP in Invite, not a domain
name. When it happens, my BLF doesn't work although my user has a
subscription. If I use a domain name in this Invite - it works ok. But the
problem is, that I have many domains, pointing to one IP. My users can use
all domains. So, how can I make Opensips BLF module work domain
independently? My users should use BLF in every domain.



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/BLF-with-only-one-domain-tp7607133.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


[OpenSIPS-Users] BLF authorize

2017-04-24 Thread maatohewetbi
I've just added BLF to my Opensips 1.11.9 and it seems to work ok, but I want
to start another thing: I want to authorize users, I want to let user to
monitor only certain users. I've just added this to my script:

/
 route[handle_presence]
{
avp_db_query("select user_id from user where sip_login='$fU'",
"$avp(from)");
avp_db_query("select user_id from user where sip_login='$tU'", "$avp(to)");
if ($avp(from)==$avp(to))
{

if(!t_newtran()){
sl_reply_error();
exit;
}

if (is_method("PUBLISH")) {
handle_publish();
} else

if (is_method("SUBSCRIBE")) {
handle_subscribe();
}

exit;
}
else
{
xlog("BLF - unauthorized");
send_reply("405","Method Not Allowed");
exit;
}
}/

but it seems that after changing user_id, without restarting Opensips NOTIFY
messages still go to unauthorized user. So I've also added:

/ if (is_method("NOTIFY")) {
xlog("NOTIFY");
avp_db_query("select user_id from user where sip_login='$fU'",
"$avp(from)");
avp_db_query("select user_id from user where sip_login='$tU'",
"$avp(to)");
if (!$avp(from)==$avp(to)) {
xlog("NOTIFY to unauthorized user!");
exit;
}
}/

and it still doesn't work. It looks like NOTIFY messages don't go through
this script. How to make it work without XCAP server? 



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/BLF-authorize-tp7607123.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

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


Re: [OpenSIPS-Users] support for cloudamqp

2017-04-24 Thread Tito Cumpen
Razvan,

How do specify the virtualhost in 2.3?  can you send me a sample of the
syntax ?

On Apr 24, 2017 3:30 AM, "Răzvan Crainea"  wrote:

> Hi, Tito!
>
> You are right, this is not possible with the event_rabbitmq module,
> because there is no way to specify the virtual host in the url.
> But you can use the latest rabbitmq module in OpenSIPS 2.3.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 04/21/2017 09:53 PM, Tito Cumpen wrote:
>
> Hey Razvan,
>
> I tried the following on Opensips:
>
>   subscribe_event("E_ACC_EVENT","rabbitmq:vhostuser:pw@host.
> cloudamqp.com/vhostuser/queuename");
>
> their URL string is in this format :
>
> amqp://vhostusert:p...@host.cloudamqp.com/vhostuser
>
>
> When Opensips tries to connect to this queue it sends
>
> / as the argument for openvhost
>
> Cloudamqp replies with
>
>
> NOT_ALLOWED - access to vhost '/' refused for user 'vhostuser'
>
>
> Is my opensips syntax incorrect ? or is this a bug ?
>
> Also I am not sure what you mean by immediate.
>
> Thanks,
>
> Tito
>
>
>
> On Fri, Apr 21, 2017 at 5:56 AM, Răzvan Crainea 
> wrote:
>
>> Hi, Tito!
>>
>> I've just made a free cloudamqp account for testing and used the new
>> rabbitmq module to send a message in the queue. The message was not
>> published initially due to the fact that I was using the "immediate" flag,
>> (I was receiving NOT_IMPLEMENTED, probably because the free account lacks
>> some features), but after I removed the setting the message was
>> successfully delivered in the queue.
>> I didn't test with the event_rabbitmq module though, but I imagine it
>> will work too, since both modules (event_rabbitmq and rabbitmq) use the
>> same AMQP library.
>> Can you detail a bit how you tested so we can find where the problem is
>> on your setup?
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>> On 04/20/2017 09:18 PM, Tito Cumpen wrote:
>>
>> Hello,
>>
>> I was wondering if there was any intention to update the amqp support to
>> allow opensips to post events to cloudamqp(https://www.cloudamqp.com).
>> When I try to connect cloudamqp it fails because it is outdated.
>>
>> Thanks,
>> Tito
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> ___ Users mailing list
>> Users@lists.opensips.org http://lists.opensips.org/cgi-
>> bin/mailman/listinfo/users
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ___
> 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] support for cloudamqp

2017-04-24 Thread Răzvan Crainea

Hi, Tito!

You are right, this is not possible with the event_rabbitmq module, 
because there is no way to specify the virtual host in the url.

But you can use the latest rabbitmq module in OpenSIPS 2.3.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 04/21/2017 09:53 PM, Tito Cumpen wrote:

Hey Razvan,

I tried the following on Opensips:

subscribe_event("E_ACC_EVENT","rabbitmq:vhostuser:p...@host.cloudamqp.com/vhostuser/queuename 
");


their URL string is in this format :

amqp://vhostusert:p...@host.cloudamqp.com/vhostuser 




When Opensips tries to connect to this queue it sends

/ as the argument for openvhost

Cloudamqp replies with


NOT_ALLOWED - access to vhost '/' refused for user 'vhostuser'


Is my opensips syntax incorrect ? or is this a bug ?

Also I am not sure what you mean by immediate.

Thanks,

Tito



On Fri, Apr 21, 2017 at 5:56 AM, Răzvan Crainea > wrote:


Hi, Tito!

I've just made a free cloudamqp account for testing and used the
new rabbitmq module to send a message in the queue. The message
was not published initially due to the fact that I was using the
"immediate" flag, (I was receiving NOT_IMPLEMENTED, probably
because the free account lacks some features), but after I removed
the setting the message was successfully delivered in the queue.
I didn't test with the event_rabbitmq module though, but I imagine
it will work too, since both modules (event_rabbitmq and rabbitmq)
use the same AMQP library.
Can you detail a bit how you tested so we can find where the
problem is on your setup?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com 

On 04/20/2017 09:18 PM, Tito Cumpen wrote:

Hello,

I was wondering if there was any intention to update the amqp
support to allow opensips to post events to
cloudamqp(https://www.cloudamqp.com ).
When I try to connect cloudamqp it fails because it is outdated.

Thanks,
Tito


___
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
 


___
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