Re: [OpenSIPS-Users] flags

2020-01-22 Thread Liviu Chircu

On 22.01.2020 00:40, volga629 via Users wrote:
In latest master what change is require right now to accommodate all 
flags functions. Script file test produce


if(isflagset(FLAG_FROM_PEER)) {


Hi, Volga!

The answer is: isflagset("FLAG_FROM_PEER")

In short: we tried to make the language more consistent, and got rid of
the last bits of non-quoted identifiers.  This is actually part of an 
ongoing

effort, which actually started in 2.4, where we took down the unintuitive
"if (from_uri == myself)" syntax, among with others.

Best regards,

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit, Amsterdam, May 2020
  www.opensips.org/events
OpenSIPS Bootcamp, Miami, March 2020
  www.opensips.org/training


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


[OpenSIPS-Users] [Reminder] OpenSIPS Bootcamp EarlyBirds closure

2020-01-22 Thread Bogdan-Andrei Iancu

Hi all,

A quick reminder, the 10% Early Birds discount for the OpenSIPS Bootcamp 
in Miami expires on 1st of February. There are cool things you can do 
with $300 in Miami, so do not miss the opportunity here ;).


https://opensips.org/training/OpenSIPS_Bootcamp_2020/

Best regards,

--
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit, Amsterdam, May 2020
  https://www.opensips.org/events/Summit-2020Amsterdam/
OpenSIPS Bootcamp, Miami, March 2020
  https://opensips.org/training/OpenSIPS_Bootcamp_2020/


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


Re: [OpenSIPS-Users] A Clear Install manual anyone?

2020-01-22 Thread James Hogbin
I’ve just done one on Azure hosted Unbuntu 18.x (bionic)
Please make sure  you use SSH & an NSG that only permits ssh from your own IP 
address.

https://github.com/hogbinj/OpenSips/blob/master/Base%20Config.md

Will update it as I go along and get things configured (TLS, hostnames etc etc)

J/.

James Hogbin
Director 
 
IP Sentinel 
t. +44 (0)20 3011 4150
m. +44 7786910895
w. https://www.ip-sentinel.com

On 13 Jan 2020, at 13:52, Slamis mailto:sla...@gmail.com>> 
wrote:

Hi

Where can I find a step by step manual for Opensips 3.x full setup including 
Mysql and CP?

The documentation on the site are very confusing
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

IP Sentinel Disclaimer 
This communication is for the information of the person to whom it has been 
delivered and neither it nor any of its contents should be passed on to or used 
by any other person. IP Sentinel Ltd is a limited company registered in England 
and Wales under Registered Number 08648097. Registered Office: Newnhams Wood, 
Horsted Keynes, West Sussex, RH17 7BT. 
Disclaimer: Q3dhRSrm_disclaimer
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Dialplan regex help

2020-01-22 Thread Sharad Kumar via Users
Hey guys,

I need your little help in regex, I have a regex that search the 9 Digits DID 
and append 972 as a prefix. So for example -

DID - 012345678
After regex - 9720123456789

But now I want to remove the first 0 by regex so that I should get the output 
like this - 97212345678

These are my current regex rules -
Matching Regular Expression - ^0[0-9]{8}$
Substitution Regular Expression:   ^(0)([0-9]{8})$
Replacement Expression:972\2

Any help or suggestions will be appreciated.
Thank you___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Dialplan regex help

2020-01-22 Thread Liviu Chircu

Hi Sharad,

Your solution seems correct to me, and should be working. The only 
possible improvement

I see, purely cosmetical:

* match_exp: ^0[0-9]{8}$
* subst_exp: ^0([0-9]{8})$
* repl: 972\1

Does your current rule not work for you, or are you just asking for 
confirmation?


Best regards,

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

On 22.01.2020 20:50, Sharad Kumar via Users wrote:

Hey guys,

I need your little help in regex, I have a regex that search the 9 
Digits DID and append 972 as a prefix. So for example -


DID - 012345678
After regex - 9720123456789

But now I want to remove the first 0 by regex so that I should get the 
output like this - 97212345678


These are my current regex rules -
Matching Regular Expression - ^0[0-9]{8}$
Substitution Regular Expression:   ^(0)([0-9]{8})$
Replacement Expression:    972\2

Any help or suggestions will be appreciated.
Thank you







___
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] Include ECDHE cipher suites in TLS

2020-01-22 Thread Ali Alawi
Dear Callum,
Thanks a lot. it help me to establish a TLS connection with ECDH suite. but
I used my own certificate.pem rather than the one you mentioned sip.crt.
Actually, I couldn't figure out from where I can get this kind of .crt
files.

On Mon, Jan 20, 2020 at 11:49 AM Callum Guy  wrote:

> Hi Ali,
>
> You'll need to setup your cipher list and DH file. You can generate a DH
> param file like this: *openssl dhparam -out dhparam.pem 4096*
>
> If you want to review locally available cipher suites you can run: *openssl
> ciphers -v*
>
> The OpenSIPs documentation clarifies the module configuration options
> however the following setup will provide a set of strong ciphers and maybe
> you can pick from this to add to your existing config to get things working.
>
> modparam("tls_mgm", "dh_params", "/etc/pki/tls/certs/dhparam.pem")
> modparam("tls_mgm", "ec_curve", "secp384r1")
> modparam("tls_mgm", "ciphers_list",
> "EECDH+AESGCM,EDH+AESGCM,AES256+EECDH,AES256+EDH")
> modparam("tls_mgm", "verify_cert", "1")
> modparam("tls_mgm", "require_cert", "1")
> modparam("tls_mgm", "tls_method", "TLSv1_2")
> modparam("tls_mgm", "certificate", "/etc/pki/tls/certs/sip.crt")
> modparam("tls_mgm", "private_key", "/etc/pki/tls/private/sip.key")
> modparam("tls_mgm", "ca_list", "/etc/pki/tls/certs/ca-bundle.crt")
> modparam("tls_mgm", "ca_dir", "/etc/pki/tls/certs/")
>
> Good luck,
>
> Callum
>
> On Sat, 18 Jan 2020 at 20:32, Ali Alawi  wrote:
>
>> Hello every one.
>> I am trying to test TLS in OpenSIPS 2.4, the testing is going fine but it
>> only support certain cipher suite methods such as (
>>
>> AES256-GCM-SHA384,AES256-SHA256,AES256-SHA,CAMELLIA256-SHA,AES128-SHA,SEED-SHA,CAMELLIA128-SHA,RC4-SHA,DES-CBC3-SHA
>> )
>> For some reason, I need to use ECDHE cipher suites but it is unsupported
>> here.
>> How can I include ECDHE in my TLS test?
>> BTW, I am using OpenSSL 1.0.2g
>>
>> ALi
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> *0333 332   |  www.x-on.co.uk   |   **
>    
>    *
>
> X-on is a trading name of Storacall Technology Ltd a limited company
> registered in England and Wales.
> Registered Office : Avaland House, 110 London Road, Apsley, Hemel
> Hempstead, Herts, HP3 9SD. Company Registration No. 2578478.
> The information in this e-mail is confidential and for use by the
> addressee(s) only. If you are not the intended recipient, please notify
> X-on immediately on +44(0)333 332  and delete the
> message from your computer. If you are not a named addressee you must not
> use, disclose, disseminate, distribute, copy, print or reply to this email. 
> Views
> or opinions expressed by an individual
> within this email may not necessarily reflect the views of X-on or its
> associated companies. Although X-on routinely screens for viruses,
> addressees should scan this email and any attachments
> for viruses. X-on makes no representation or warranty as to the absence of
> viruses in this email or any attachments.
>
> ___
> 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] Dialplan regex help

2020-01-22 Thread Tomi Hakkarainen

Hi,

The replacement should be \1 not \2.
At least in my tests on https://regexr.com  with \2 the 
result is 9729 and with \1 its 972123456789

Matching Regular Expression - ^0[0-9]{8}$
Substitution Regular Expression:   ^(0)([0-9]{8})$
Replacement Expression:972\1

Tomi

On 22. Jan 2020, at 20.50, Sharad Kumar via Users  
wrote:

Hey guys,

I need your little help in regex, I have a regex that search the 9 Digits DID 
and append 972 as a prefix. So for example -

DID - 012345678
After regex - 9720123456789

But now I want to remove the first 0 by regex so that I should get the output 
like this - 97212345678

These are my current regex rules -
Matching Regular Expression - ^0[0-9]{8}$
Substitution Regular Expression:   ^(0)([0-9]{8})$
Replacement Expression:972\2

Any help or suggestions will be appreciated. 
Thank you 






___
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