I have the idea that if you enable dmq_usrloc, the other nodes that receive the 
usrloc info, also try to write to database.
We see this by a lot of errors indicating the index violation on postgres.

What is the easiest way to tell Kamailio that it does not need to store the 
usrloc in database if the data came through a DMQ message?

Currently I have in my config:
    # DMQ processing
    if(is_method("KDMQ") && $Rp == 5090) {
        dmq_handle_message();
    }


I have understood that no further processing happens then. So is my assumption 
correct that my other handling of REGISTER will not be used then?

As in, can you handle this in code that it will only store the register 
information in memory? Like this?

# Registration handling
route[REGISTRAR] {
    # If coming from DMQ, don't save to database
    if(dmq_is_from_node()) {
        save("location", "0x01")
    }
}
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to