[OpenSIPS-Users] Dialog module - profile replication not working

John Quick john.quick at smartvox.co.uk
Wed May 10 07:26:01 EDT 2017

Hello all,

Using version 2.2.3 on Debian with clusterer and dialog modules.
The clusterer uses a bin socket for communication (port 5678) and there is a
server at each of two sites.
The opensips.cfg file is almost identical at each site, other than for the
differing IP addresses.
Both sites are connected to the same database cluster - they both share the
same database.

The dialog module has a profile with value defined that is used to count
concurrent calls against account ID.
modparam("dialog", "db_mode", 1)
modparam("dialog", "dlg_match_mode", 0)
modparam("dialog", "rr_param", "cabc")
modparam("dialog", "default_timeout", 43200)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "log_profile_hash_size", 11)         # allows over 2000
modparam("dialog", "profiles_with_value", "concurrent")
modparam("dialog", "accept_replicated_dialogs", 1)
modparam("dialog", "replicate_dialogs_to", 1)
modparam("dialog", "accept_replicated_profiles", 1)
modparam("dialog", "replicate_profiles_to", 1)

When a test call is made on the server at site 1, I would expect to be able
to see that call on the server at site 2.
I am using this command:
opensipsctl fifo profile_get_values concurrent

However, it only shows me the call on site 1 like this:
value:: 01234123412 count=1
Using the same command at site 2 there is no output.

I've tried it with and without these two lines, but the result is the same:
modparam("dialog", "accept_replicated_dialogs", 1)
modparam("dialog", "replicate_dialogs_to", 1)

The clusterer interconnection appears to be working okay.
Site1# opensipsctl fifo clusterer_list
Cluster:: 1
        Server:: 3 DB_ID=10 URL=bin:123.456.28.50:5678 State=1
Last_failed_attempt=0 Max_failed_attempts=3 no_tries=0
Seconds_until_enabling=30 Description=Site2
Site2# opensipsctl fifo clusterer_list
Cluster:: 1
        Server:: 1 DB_ID=4 URL=bin:123.456.29.50:5678 State=1
Last_failed_attempt=1494413 Max_failed_attempts=3 no_tries=0
Seconds_until_enabling=30 Description=Site1

Have I misunderstood what profile replication should do?
If not, how do I set about debugging this please?

John Quick
Smartvox Limited

More information about the Users mailing list