Re: [OpenSIPS-Users] Auto Scaling Event

2022-07-17 Thread Ali Alawi
Dear Alexey,
Thanks, I figured it out.

On Sat, Jul 16, 2022 at 3:15 PM Alexey Kazantsev via Users <
users@lists.opensips.org> wrote:

> Hi  Ali,
>
> overall, you need to configure auto-scaling [1][2] and the event interface
> [3] usage.
> I never tried fetching exactly this event, but I think you haven’t
> configured event_route usage [4][5].
>
> Have a try something like this:
>
> event_route[E_CORE_PROC_AUTO_SCALE] {
> xlog(" … something you want to log … ");
> }
>
>
> [1]
> https://blog.opensips.org/2019/02/25/auto-process-scaling-a-cure-for-load-and-resources-concerns/
> [2]
> https://www.opensips.org/Documentation/Script-CoreParameters-3-3#auto_scaling_profile
> [3] https://www.opensips.org/Documentation/Interface-Events-3-3
> [4] https://www.opensips.org/Documentation/Tutorials-EventInterface#toc17
> [5] https://opensips.org/html/docs/modules/3.3.x/event_route
>
> ---
> BR, Alexey
> https://alexeyka.zantsev.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


[OpenSIPS-Users] Auto Scaling Event

2022-07-13 Thread Ali Alawi
Dear All,

Would any one please support me with an example on how to use
E_CORE_PROC_AUTO_SCALE in the script.
I want to get a value of group_load parameter of E_CORE_PROC_AUTO_SCALE
after any upscale or downscale.

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


Re: [OpenSIPS-Users] Opensips active (exited)

2022-05-24 Thread Ali Alawi
 Dear Johan,
Thanks for your reply. It makes sense.

On Fri, May 20, 2022 at 9:41 AM Johan De Clercq  wrote:

> Check daemon path
>
> Outlook voor iOS <https://aka.ms/o0ukef> downloaden
> --
> *Van:* Users  namens Ali Alawi <
> goatol...@gmail.com>
> *Verzonden:* Thursday, May 19, 2022 9:30:50 PM
> *Aan:* OpenSIPS users mailling list 
> *Onderwerp:* [OpenSIPS-Users] Opensips active (exited)
>
> Dear all,
>
> I have installed opensips 3.2 using the git clone --recursive and compile
> it using make menuconfig, mysql (mariadb) and cli are all set correctly.
>
> when I start opensips the status shows no error but only active (exited)
> as shown below:
>
> systemctl status opensips
> ● opensips.service - LSB: Start the OpenSIPS SIP server
>Loaded: loaded (/etc/init.d/opensips; generated)
>Active: active (exited) since Thu 2022-05-19 14:30:15 EDT; 1min 49s ago
>  Docs: man:systemd-sysv-generator(8)
>   Process: 433 ExecStart=/etc/init.d/opensips start (code=exited,
> status=0/SUCCESS)
>
> May 19 14:30:15 debsips systemd[1]: Starting LSB: Start the OpenSIPS SIP
> server...
> May 19 14:30:15 debsips systemd[1]: Started LSB: Start the OpenSIPS SIP
> server.
>
>
> I tried several ways of installation and configuration but the opensips
> doesn't start properly, I am not able to register clients (even though I
> have successfully added client and domain from CP). also there is no log
> recorded in opensips.log.
>
> Please give me any advice on this matter. I want to see the status of
> active (running).
>
> Regards,
> Ali
> ___
> 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 active (exited)

2022-05-19 Thread Ali Alawi
Dear all,

I have installed opensips 3.2 using the git clone --recursive and compile
it using make menuconfig, mysql (mariadb) and cli are all set correctly.

when I start opensips the status shows no error but only active (exited) as
shown below:

systemctl status opensips
● opensips.service - LSB: Start the OpenSIPS SIP server
   Loaded: loaded (/etc/init.d/opensips; generated)
   Active: active (exited) since Thu 2022-05-19 14:30:15 EDT; 1min 49s ago
 Docs: man:systemd-sysv-generator(8)
  Process: 433 ExecStart=/etc/init.d/opensips start (code=exited,
status=0/SUCCESS)

May 19 14:30:15 debsips systemd[1]: Starting LSB: Start the OpenSIPS SIP
server...
May 19 14:30:15 debsips systemd[1]: Started LSB: Start the OpenSIPS SIP
server.


I tried several ways of installation and configuration but the opensips
doesn't start properly, I am not able to register clients (even though I
have successfully added client and domain from CP). also there is no log
recorded in opensips.log.

Please give me any advice on this matter. I want to see the status of
active (running).

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


Re: [OpenSIPS-Users] Cli and DB path

2022-05-18 Thread Ali Alawi
Dear Răzvan,

Thanks for your response, the cli are all set successfully using
database_schema_path.

Regards,
Ali

On Tue, May 17, 2022 at 10:52 AM Răzvan Crainea  wrote:

> Hi, Ali!
>
> Setting the database_schema_path should do the trick. Can you set it
> again and provide the logs?
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 5/14/22 02:30, Ali Alawi wrote:
> > Dear all,
> >
> > When I install opensips3.2 using APT packages, the cli point correctly
> > to mysql (mariadb) through /usr/share/opensips (Everything work fine)
> >
> > However, when  installation done using git clone --recursive, the cli
> > point to /usr/share/opensips  but in this time the cli doesn't find
> > mysql when i try to:
> > opensips-cli -x database create
> > ERROR: path '/usr/share/opensips' to OpenSIPS DB scripts does not exist!
> >
> > I notice that mysql is resides inside '/usr/local/share/opensips'
> > instead of '/usr/share/opensips'
> > I try to include the corrected path in the default.cfg and also try
> > |opensips-cli -o database_schema_path=|
> > |But I come up with no success|
> > |Any suggestions please? |
> >
> > Regards,
> > Ali
> >
> > ___
> > 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] Cli and DB path

2022-05-13 Thread Ali Alawi
Dear all,

When I install opensips3.2 using APT packages, the cli point correctly to
mysql (mariadb) through /usr/share/opensips (Everything work fine)

However, when  installation done using git clone --recursive, the cli point
to /usr/share/opensips  but in this time the cli doesn't find mysql when i
try to:
opensips-cli -x database create
ERROR: path '/usr/share/opensips' to OpenSIPS DB scripts does not exist!

I notice that mysql is resides inside '/usr/local/share/opensips' instead
of '/usr/share/opensips'
I try to include the corrected path in the default.cfg and also try
opensips-cli
-o database_schema_path=
But I come up with no success
Any suggestions please?

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


Re: [OpenSIPS-Users] Check IP Prefix

2021-12-10 Thread Ali Alawi
Dear Bin,
I got it, thanks for your reply.

On Fri, Dec 10, 2021 at 10:23 PM Ben Newlin  wrote:

> Ali,
>
>
>
> You can use the regex operator [1]. For example,
>
>
>
> If (src_ip =~ “^192*”)
>
>
>
> [1] https://www.opensips.org/Documentation/Script-Statements-3-2#toc1
>
>
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Ali Alawi <
> goatol...@gmail.com>
> *Date: *Friday, December 10, 2021 at 2:00 PM
> *To: *OpenSIPS users mailling list 
> *Subject: *[OpenSIPS-Users] Check IP Prefix
>
> Hello everyone,
>
>
>
> Is there a way to conditionally check only the first byte of the IP?
>
> for example, can I have something like if(src_ip==192.x.x.x)
>
>
>
> Regards,
>
> Ali
>
>
>
>
> ___
> 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] Check IP Prefix

2021-12-10 Thread Ali Alawi
Hello everyone,

Is there a way to conditionally check only the first byte of the IP?
for example, can I have something like if(src_ip==192.x.x.x)

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


[OpenSIPS-Users] DTLS in Opensips

2020-12-25 Thread Ali Alawi
Hello,

Is there a way to use DTLS on opensips through openssl?

Any help or guid would be appreciated.
___
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-25 Thread Ali Alawi
HI Callum,

Currently I stuck with PEM certificates because my configuration is for
testing only (not productive). One last thing to check with you, I am
unable to use 1_2 version in my opensips. Actually, opensips restarted
without error but I am unable to perform handshake.

Regards,

On Thu, Jan 23, 2020 at 11:15 AM Callum Guy  wrote:

> Hi Ali,
>
> Glad the suggestions were helpful.
>
> The certificate is just a regular SSL cert, in PEM format just with a
> different file extension. Depending on your implementation you might want
> to look into public verifiable certificates (if you're public facing) -
> available for free if you want to check out a service like
> https://letsencrypt.org/.
>
> Callum
>
>
> On Wed, 22 Jan 2020 at 22:09, Ali Alawi  wrote:
>
>> 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 <http://www.x-on.co.uk>  |   **
>>> <https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel>
>>>   <https://twitter.com/xonuk> *
>>>
>>> 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 

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 <http://www.x-on.co.uk>  |   **
> <https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel>
>   <https://twitter.com/xonuk> *
>
> 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


[OpenSIPS-Users] Include ECDHE cipher suites in TLS

2020-01-18 Thread Ali Alawi
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


Re: [OpenSIPS-Users] listen to IPv6

2019-03-18 Thread Ali Alawi
Dear vasily,
Thanks for your reply.
I will follow your instructions.
Regards.

On Mon, Mar 18, 2019, 10:07 AM vasilevalex 
wrote:

> OpenSIPS will not start with link-local address. You don't have IPv6
> support
> from ISP - doesn't matter. First you need to configure your local IPv6
> network to run properly and only then try to run OpenSIPS with IPv6
> support.
>
> For example, we test our configuration with docker environment. You can
> easily create virtual IPv4 and IPv6 networks with docker.
>
>
>
> -
> ---
> Alexey Vasilyev
> --
> Sent from:
> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> ___
> 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] listen to IPv6

2019-03-15 Thread Ali Alawi
Dear Alexe,
thanks for your reply.
i use link-local because IPv6 still not supported in my country and can't
get a global one.
however, i need to try IPv6  for local network testing. any idea?


On Fri, Mar 15, 2019, 4:57 PM vasilevalex  wrote:

> Just don't use link-local address.
>
>
>
> -
> ---
> Alexey Vasilyev
> --
> Sent from:
> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> ___
> 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] listen to IPv6

2019-03-15 Thread Ali Alawi
Hello every one.
I am trying to use IPv6 as the main IP for my opensips server. then in the
opensips.cfg file I added:
listen=fe80::202:44ff:feaf:d116

and I added the same IP as domain using
opensipsctl add domain fe80::202:44ff:feaf:d116

also I have modified the file opensipsctlrc and set the domain with same
IPv6

After all, I am now unable to start opensips server using "opensipsctl
start"

Please any one can guide me on the right way to use IPv6 here.

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