Re: [OpenSIPS-Users] Help with my OpenSips architecture

2018-08-08 Thread Dominic
There's something I'm not getting though, I defined my cluster with 2
opensips instances:

# opensipsctl fifo clusterer_list
Cluster:: 1
Node:: 2 DB_ID=-1 URL=bin:10.0.20.163:5566 Enabled=1 Link_state=Up
Next_hop=2 Description=none

# opensipsctl fifo clusterer_list_topology
Cluster:: 1
Node:: 1 Neighbours=2
Node:: 2 Neighbours=1

However it seems usrloc is not synced as seen in the state below:
# opensipsctl fifo clusterer_list_cap
Cluster:: 1
Capability:: usrloc-contact-repl State=not synced

However if I register 1 sip device on instance 1, I can see the device on
both instances if I run "opensipsctl ul show". So it looks as though the
usrloc is replicated properly so I wonder why "opensipsctl fifo
clusterer_list_cap" has the "not synced" state.

Dominic








On Wed, Aug 8, 2018 at 8:00 AM, Dominic  wrote:

>
>
> On Wed, Aug 8, 2018 at 4:52 AM, Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Dominic,
>>
>> Please see inline.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   http://www.opensips-solutions.com
>> OpenSIPS Bootcamp 2018
>>   http://opensips.org/training/OpenSIPS_Bootcamp_2018/
>>
>> On 08/07/2018 10:36 PM, Dominic wrote:
>>
>> Hi all, just to make sure I'm one the right track here I'd like to share
>> a few thoughts of where I'm currently going with my architecture, any
>> feedback is really appreciated specially if it can help me avoid any
>> pitfalls in the future. Here is what I'm trying to do:
>>
>> I currently have a a few asterisk servers directly facing the public
>> internet, with sip devices registering directly with a specific asterisk.
>>
>> So my first goal was to have the sip devices register directly with
>> OpenSips so I used the mid_registrar module for that, and forward the
>> registers to the right asterisk. This seems to work very well so far.
>>
>> Secondly, I setup rtp proxy, on the same box as opensips, this also seems
>> to work great so far. At this point I should be able to not have the
>> asterisk facing public internet.
>>
>> Do you intend to move the * boxes to a private network ? or to keep them
>> with public IP, but behind a firewall ?
>>
>
> Yes I indend to move them to a private network behind a firewall with no
> public IP.
>
>>
>> The third thing I now want to do, and this is where I am currently stuck
>> is to figure out what my options are in terms of high availability of the
>> opensips. I figured I would go with a VIP setup with 2 identical opensips
>> box. So in this type of setup i would have to replicate usrloc and dialogs
>> between the 2 opensips instances right? Am I forgetting anything?
>>
>> yes, you are on the right tracks - use the dialog replication (with a
>> sharing tag) and usrloc full sharing mode - this will give you the HA you
>> are looking for (in combination with a VIP)
>>
>
> Perfect, I'll give that a shot
>
>>
>> Am I on the right track with this type of setup or am I missing something
>> big here? It's also worth mentioning that I am using OpenSIPS 2.4
>>
>> Any advice/links with info on similar setup/code examples are very welcome
>>
>> For the HA, see
>> https://blog.opensips.org/2018/03/15/scaling-distributing-
>> and-partitioning-registrations-with-opensips-2-4/
>> https://blog.opensips.org/2018/03/23/clustering-ongoing-call
>> s-with-opensips-2-4/
>>
>> Thanks
>> Dominic
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> Thanks a lot for the replies, the help is really appreciated
>
> Dominic
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Using LetsEncrypt certs with v2.4

2018-08-08 Thread John Quick
Hi Vlad,

I now realise that the problem I'm having is that "default" is a reserved word 
in MySQL.
When I tried to set the 'domain' field to the text "default", it actually sets 
it to blank because that is the default value for this column.
😊

John Quick
Smartvox Limited
Web: www.smartvox.co.uk



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


Re: [OpenSIPS-Users] Using LetsEncrypt certs with v2.4

2018-08-08 Thread Vlad Patrascu

Hi John,

You conclusion about the modparam provisioning is not completely 
accurate. If you don't have any modparam statements in your script, the 
default preset values are only used as a backup for the default domains. 
And this is necessary in case you don't define the default domains in 
the database. So in this case, in order to always have some settings for 
the default domains, we do a fallback to the preset values.


As such, if you do have a default client and server domain defined in 
the DB and no modparam statements, no script provisioning should be 
taken into account.


Regards,

Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

On 08/08/2018 05:36 PM, John Quick wrote:

Hi Vlad,

Thanks for replying.
Yes, I must have been looking at the wrong version in the documentation -
the old version was stored in my browser history and I failed to notice.

Even in the correct v2.4, the documentation for DB provisioning is more
complete when read alongside the extra information in your reply.

It is a pity that there is no way to completely disable provisioning from
modparam parameters when you want only to use the DB. Removing the modparam
statements does not disable them, but merely makes them use default preset
values.

John Quick
Smartvox Limited
Web: www.smartvox.co.uk





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


Re: [OpenSIPS-Users] Using LetsEncrypt certs with v2.4

2018-08-08 Thread John Quick
Hi Vlad,

Thanks for replying.
Yes, I must have been looking at the wrong version in the documentation -
the old version was stored in my browser history and I failed to notice.

Even in the correct v2.4, the documentation for DB provisioning is more
complete when read alongside the extra information in your reply.

It is a pity that there is no way to completely disable provisioning from
modparam parameters when you want only to use the DB. Removing the modparam
statements does not disable them, but merely makes them use default preset
values.

John Quick
Smartvox Limited
Web: www.smartvox.co.uk



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


Re: [OpenSIPS-Users] Help with my OpenSips architecture

2018-08-08 Thread Dominic
On Wed, Aug 8, 2018 at 4:52 AM, Bogdan-Andrei Iancu 
wrote:

> Hi Dominic,
>
> Please see inline.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
> OpenSIPS Bootcamp 2018
>   http://opensips.org/training/OpenSIPS_Bootcamp_2018/
>
> On 08/07/2018 10:36 PM, Dominic wrote:
>
> Hi all, just to make sure I'm one the right track here I'd like to share a
> few thoughts of where I'm currently going with my architecture, any
> feedback is really appreciated specially if it can help me avoid any
> pitfalls in the future. Here is what I'm trying to do:
>
> I currently have a a few asterisk servers directly facing the public
> internet, with sip devices registering directly with a specific asterisk.
>
> So my first goal was to have the sip devices register directly with
> OpenSips so I used the mid_registrar module for that, and forward the
> registers to the right asterisk. This seems to work very well so far.
>
> Secondly, I setup rtp proxy, on the same box as opensips, this also seems
> to work great so far. At this point I should be able to not have the
> asterisk facing public internet.
>
> Do you intend to move the * boxes to a private network ? or to keep them
> with public IP, but behind a firewall ?
>

Yes I indend to move them to a private network behind a firewall with no
public IP.

>
> The third thing I now want to do, and this is where I am currently stuck
> is to figure out what my options are in terms of high availability of the
> opensips. I figured I would go with a VIP setup with 2 identical opensips
> box. So in this type of setup i would have to replicate usrloc and dialogs
> between the 2 opensips instances right? Am I forgetting anything?
>
> yes, you are on the right tracks - use the dialog replication (with a
> sharing tag) and usrloc full sharing mode - this will give you the HA you
> are looking for (in combination with a VIP)
>

Perfect, I'll give that a shot

>
> Am I on the right track with this type of setup or am I missing something
> big here? It's also worth mentioning that I am using OpenSIPS 2.4
>
> Any advice/links with info on similar setup/code examples are very welcome
>
> For the HA, see
> https://blog.opensips.org/2018/03/15/scaling-
> distributing-and-partitioning-registrations-with-opensips-2-4/
> https://blog.opensips.org/2018/03/23/clustering-ongoing-
> calls-with-opensips-2-4/
>
> Thanks
> Dominic
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> Thanks a lot for the replies, the help is really appreciated

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


Re: [OpenSIPS-Users] drouting module in opensips 2.4

2018-08-08 Thread Bogdan-Andrei Iancu

Hi Kirill,

Starting with 2.4 there is a change in how the initial load is done by 
drouting (and other modules). If previously the the initial load was 
part of the module init sequence (and delaying the whole opensips init 
with this load), now the load is done after the init sequence, so 
opensips can start (and detach from console) without waiting for the 
module to do the initial data load.


Regards,

Bogdan-Andrei Iancu

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

On 07/06/2018 11:04 AM, Kirill Galinurov wrote:

Hi all I migrate from 2.3 to in 2.4 on Centos 7.4.
OpenSIPS 2.3 starts without going to background, while drouting module 
fetches all rules from DB into memory.


OpenSIPS 2.4 goes to background immediately, and fetches rules only 
after that.


If  you try opensipsctl fifo dr_number_routing mts 0 9195643210 
command during this moment it restart dr_reload.



___
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 tracing of locally generated methods

2018-08-08 Thread Bogdan-Andrei Iancu

Hi Dan,

Before digging in the code, have you done any test to see if the locally 
generated BYE gets traced or not ?


Regards,

Bogdan-Andrei Iancu

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

On 08/06/2018 02:40 PM, Dan Pascu wrote:

If one initiates a sip trace for a dialog, are the locally generated requests 
(like for example locally generated BYEs), automatically included in the trace?

--
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] Help with my OpenSips architecture

2018-08-08 Thread Bogdan-Andrei Iancu

Hi Dominic,

Please see inline.

Regards,

Bogdan-Andrei Iancu

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

On 08/07/2018 10:36 PM, Dominic wrote:
Hi all, just to make sure I'm one the right track here I'd like to 
share a few thoughts of where I'm currently going with my 
architecture, any feedback is really appreciated specially if it can 
help me avoid any pitfalls in the future. Here is what I'm trying to do:


I currently have a a few asterisk servers directly facing the public 
internet, with sip devices registering directly with a specific asterisk.


So my first goal was to have the sip devices register directly with 
OpenSips so I used the mid_registrar module for that, and forward the 
registers to the right asterisk. This seems to work very well so far.


Secondly, I setup rtp proxy, on the same box as opensips, this also 
seems to work great so far. At this point I should be able to not have 
the asterisk facing public internet.
Do you intend to move the * boxes to a private network ? or to keep them 
with public IP, but behind a firewall ?


The third thing I now want to do, and this is where I am currently 
stuck is to figure out what my options are in terms of high 
availability of the opensips. I figured I would go with a VIP setup 
with 2 identical opensips box. So in this type of setup i would have 
to replicate usrloc and dialogs between the 2 opensips instances 
right? Am I forgetting anything?
yes, you are on the right tracks - use the dialog replication (with a 
sharing tag) and usrloc full sharing mode - this will give you the HA 
you are looking for (in combination with a VIP)


Am I on the right track with this type of setup or am I missing 
something big here? It's also worth mentioning that I am using 
OpenSIPS 2.4


Any advice/links with info on similar setup/code examples are very welcome

For the HA, see
https://blog.opensips.org/2018/03/15/scaling-distributing-and-partitioning-registrations-with-opensips-2-4/
https://blog.opensips.org/2018/03/23/clustering-ongoing-calls-with-opensips-2-4/

Thanks
Dominic


___
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] [RELEASE] OpenSIPS 2.3.5 and 2.4.2 minor releases planning

2018-08-08 Thread Răzvan Crainea

Hello, everyone!

Since our previous 2.3.4 and 2.4.1 releases back in May we've gathered 
more than 100 commits of improvement and bug fixes. Therefore we believe 
it's time to make two new minor releases, for OpenSIPS 2.3.5 and 2.4.2.


We have scheduled these releases for next week on Tuesday, 14th of 
August 2018. Please make sure you have reported all the possible issues 
and bugs you are facing, so we can take them into account and try to 
sort them out before the new release!


Happy hacking!
--
Răzvan Crainea
OpenSIPS Core Developer
  http://www.opensips-solutions.com

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


Re: [OpenSIPS-Users] Clusterer without a database

2018-08-08 Thread Bogdan-Andrei Iancu

Hi Fabian,

I guess Callum wants to use the clusterer *without* any SQL backend. 
Your suggestion is a workaround, to trick the start up :)


Regards,

Bogdan-Andrei Iancu

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

On 08/08/2018 11:43 AM, Fabian Gast wrote:

Hi,

add this:

loadmodule "db_text.so"
modparam("clusterer", "db_url", "text:///etc/opensips/db/")

In the database directory add two files
  - version ( found in sources at scripts/dbtext/opensips/version )
  - clusterer from scripts/dbtext/opensips/clusterer

Add your cluster nodes to 'clusterer' file like

id(int,auto) cluster_id(int) node_id(int) url(string) state(int) 
no_ping_retries(int) priority(int) sip_addr(string,null) flags(string,null) 
description(string,null)

1:200:1:bin\:192.168.99.201\:60200:1:3:50:NULL:NULL:node-a
2:200:2:bin\:192.168.99.202\:60200:1:3:50:NULL:NULL:node-b


Cheers,

Fabian

- Ursprüngliche Mail -
Von: "Callum Guy" 
An: "OpenSIPS users mailling list" 
Gesendet: Mittwoch, 8. August 2018 10:25:30
Betreff: [OpenSIPS-Users] Clusterer without a database

Hi All,
For "greater good" I thought it would be interesting to add some clusterer 
dialog replication to my OpenSIPs pair.

Specifically I am on 2.4, installed the appropriate clusterer module and 
applied the following configuration:

+# Replication listener
+listen=bin: [ http://172.18.0.112:5566/ | 172.18.0.112:5566 ]
+loadmodule "proto_bin.so"
+loadmodule "clusterer.so"
+
+# Setup replication cluster
+modparam("clusterer", "current_id", 2)
+modparam("clusterer", "db_mode", 0)
+modparam("clusterer", "current_info", "cluster_id=1, url=bin: [ 
http://172.18.0.112:5566/ | 172.18.0.112:5566 ] ") # data about this node
+modparam("clusterer", "neighbor_info", "cluster_id=1,node_id=1,url=bin: [ 
http://172.18.0.111:5566/ | 172.18.0.111:5566 ] ") # data about other node
+modparam("dialog", "dialog_replication_cluster", 1)
+modparam("dialog", "profile_replication_cluster", 1)

Once configured I attempted to start the service only to discover that 
clusterer will not load without a database module. See below:

Aug 08 08:55:10 [ http://pci-fram-proxy2.x-onsecure.net/ | 
pci-fram-proxy2.x-onsecure.net ] opensips-m4cfg[30867]: Aug 8 08:55:10 [30867] 
WARNING:core:solve_module_dependencies: module clusterer depends on an sqldb 
module, but none was loaded!
Aug 08 08:55:10 [ http://pci-fram-proxy2.x-onsecure.net/ | 
pci-fram-proxy2.x-onsecure.net ] opensips-m4cfg[30867]: Aug 8 08:55:10 [30867] 
ERROR:core:main: failed to solve module dependencies

For now I have simply reverted back however I wonder if this is a user error or 
a module/documentation error?

Thanks,

Callum



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


Re: [OpenSIPS-Users] Clusterer without a database

2018-08-08 Thread Bogdan-Andrei Iancu

Hi Callum,

Indeed, there is a static dependency there, disregarding the db_mode value.

I just pushed a fix:
https://github.com/OpenSIPS/opensips/commit/df9e5a849fd03afef02c024bc5af40f14c53adc2

Please confirm the fix.

Many thanks,

Bogdan-Andrei Iancu

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

On 08/08/2018 11:25 AM, Callum Guy wrote:

Hi All,

For "greater good" I thought it would be interesting to add some 
clusterer dialog replication to my OpenSIPs pair.


Specifically I am on 2.4, installed the appropriate clusterer module 
and applied the following configuration:

*
*
*+# Replication listener*
*+listen=bin:172.18.0.112:5566 *
*+loadmodule "proto_bin.so"*
*+loadmodule "clusterer.so"*
*+*
*+# Setup replication cluster*
*+modparam("clusterer", "current_id", 2)*
*+modparam("clusterer", "db_mode", 0)*
*+modparam("clusterer", "current_info", "cluster_id=1, 
url=bin:172.18.0.112:5566 ") # data about 
this node*
*+modparam("clusterer", "neighbor_info", 
"cluster_id=1,node_id=1,url=bin:172.18.0.111:5566 
") # data about other node*

*+modparam("dialog", "dialog_replication_cluster", 1)*
*+modparam("dialog", "profile_replication_cluster", 1)*

Once configured I attempted to start the service only to discover that 
clusterer will not load without a database module. See below:


*Aug 08 08:55:10 pci-fram-proxy2.x-onsecure.net 
 opensips-m4cfg[30867]: Aug  8 
08:55:10 [30867] WARNING:core:solve_module_dependencies: module 
clusterer depends on an sqldb module, but none was loaded!*
*Aug 08 08:55:10 pci-fram-proxy2.x-onsecure.net 
 opensips-m4cfg[30867]: Aug  8 
08:55:10 [30867] ERROR:core:main: failed to solve module dependencies*


For now I have simply reverted back however I wonder if this is a user 
error or a module/documentation error?


Thanks,

Callum
--
Callum Guy
Head of Information Security
X-on


*^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] Clusterer without a database

2018-08-08 Thread Fabian Gast
Hi, 

add this: 

loadmodule "db_text.so"
modparam("clusterer", "db_url", "text:///etc/opensips/db/")

In the database directory add two files 
 - version ( found in sources at scripts/dbtext/opensips/version )
 - clusterer from scripts/dbtext/opensips/clusterer 

Add your cluster nodes to 'clusterer' file like 

id(int,auto) cluster_id(int) node_id(int) url(string) state(int) 
no_ping_retries(int) priority(int) sip_addr(string,null) flags(string,null) 
description(string,null)

1:200:1:bin\:192.168.99.201\:60200:1:3:50:NULL:NULL:node-a
2:200:2:bin\:192.168.99.202\:60200:1:3:50:NULL:NULL:node-b


Cheers, 

Fabian 

- Ursprüngliche Mail -
Von: "Callum Guy" 
An: "OpenSIPS users mailling list" 
Gesendet: Mittwoch, 8. August 2018 10:25:30
Betreff: [OpenSIPS-Users] Clusterer without a database

Hi All, 
For "greater good" I thought it would be interesting to add some clusterer 
dialog replication to my OpenSIPs pair. 

Specifically I am on 2.4, installed the appropriate clusterer module and 
applied the following configuration: 

+# Replication listener 
+listen=bin: [ http://172.18.0.112:5566/ | 172.18.0.112:5566 ] 
+loadmodule "proto_bin.so" 
+loadmodule "clusterer.so" 
+ 
+# Setup replication cluster 
+modparam("clusterer", "current_id", 2) 
+modparam("clusterer", "db_mode", 0) 
+modparam("clusterer", "current_info", "cluster_id=1, url=bin: [ 
http://172.18.0.112:5566/ | 172.18.0.112:5566 ] ") # data about this node 
+modparam("clusterer", "neighbor_info", "cluster_id=1,node_id=1,url=bin: [ 
http://172.18.0.111:5566/ | 172.18.0.111:5566 ] ") # data about other node 
+modparam("dialog", "dialog_replication_cluster", 1) 
+modparam("dialog", "profile_replication_cluster", 1) 

Once configured I attempted to start the service only to discover that 
clusterer will not load without a database module. See below: 

Aug 08 08:55:10 [ http://pci-fram-proxy2.x-onsecure.net/ | 
pci-fram-proxy2.x-onsecure.net ] opensips-m4cfg[30867]: Aug 8 08:55:10 [30867] 
WARNING:core:solve_module_dependencies: module clusterer depends on an sqldb 
module, but none was loaded! 
Aug 08 08:55:10 [ http://pci-fram-proxy2.x-onsecure.net/ | 
pci-fram-proxy2.x-onsecure.net ] opensips-m4cfg[30867]: Aug 8 08:55:10 [30867] 
ERROR:core:main: failed to solve module dependencies 

For now I have simply reverted back however I wonder if this is a user error or 
a module/documentation error? 

Thanks, 

Callum 
-- 
Callum Guy 
Head of Information Security 
X-on 






0333 332  | [ http://www.x-on.co.uk/ | 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] Clusterer without a database

2018-08-08 Thread Callum Guy
Hi All,

For "greater good" I thought it would be interesting to add some clusterer
dialog replication to my OpenSIPs pair.

Specifically I am on 2.4, installed the appropriate clusterer module and
applied the following configuration:

*+# Replication listener*
*+listen=bin:172.18.0.112:5566 *
*+loadmodule "proto_bin.so"*
*+loadmodule "clusterer.so"*
*+*
*+# Setup replication cluster*
*+modparam("clusterer", "current_id", 2)*
*+modparam("clusterer", "db_mode", 0)*
*+modparam("clusterer", "current_info", "cluster_id=1,
url=bin:172.18.0.112:5566 ") # data about this
node*
*+modparam("clusterer", "neighbor_info",
"cluster_id=1,node_id=1,url=bin:172.18.0.111:5566
") # data about other node*
*+modparam("dialog", "dialog_replication_cluster", 1)*
*+modparam("dialog", "profile_replication_cluster", 1)*

Once configured I attempted to start the service only to discover that
clusterer will not load without a database module. See below:

*Aug 08 08:55:10 pci-fram-proxy2.x-onsecure.net
 opensips-m4cfg[30867]: Aug  8
08:55:10 [30867] WARNING:core:solve_module_dependencies: module clusterer
depends on an sqldb module, but none was loaded!*
*Aug 08 08:55:10 pci-fram-proxy2.x-onsecure.net
 opensips-m4cfg[30867]: Aug  8
08:55:10 [30867] ERROR:core:main: failed to solve module dependencies*

For now I have simply reverted back however I wonder if this is a user
error or a module/documentation error?

Thanks,

Callum
-- 
Callum Guy
Head of Information Security
X-on

-- 





*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