You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if server_address & notification_address use same ip and different port(see below),in dmq.list_nodes will have two node for one kamailio(one node for notify_server 5360 and one for dmq local 5260), question is when send REGISTER to port 5160, REGISTER will copy from port 5260 to 5360 on the same kamailio,this is not what i want.
And when I let server_address & notification_address use same IP & Port, check in function add_server_and_notify will report error("error adding notification node"),child_init will return failed.
So I suggest that the following changes, let server_address & notification_address can use the same IP and port:
@@ -315,11 +315,15 @@ dmq_node_t* add_server_and_notify(str *paddr)
for (index = 0; index < host_cnt; index++) {
pstr->s = puri_list [index];
pstr->len = strlen (puri_list [index]);
- if (!find_dmq_node_uri(node_list, pstr)) { // check for duplicates
+ if (!(pnode = find_dmq_node_uri(node_list, pstr))) { // check for duplicates
pnode = add_dmq_node (node_list, pstr);
if (pnode && !pfirst)
{ pfirst = pnode; }
- }
+ } else {
+ if (!pfirst) {
+ pfirst = pnode;
+ }
+ }
}
}
After Such A change, dmq.list_nodes will only have on node for (notify_server & server_addr(local)).
Is there any problem with this modification? Thanks
Why do you need to set server_address and notification_address to be the same kamailio instance? Can you explain a little more your use case and what you are trying to achieve?
For example, I have four kamailio instance for register, one kamailio instance recv REGISTER, it copy to other three kamailio instance by dmq_usrloc.
In this scene, I set notification_address to domain sip:ka.ns.com:5060 which resolve to all for kamailio instance(which recv REGISTER).In this way, I do not need to build a separate kamailio cluster only for notification server.
The above test result, server_address & notification_address use the same IP and different port, one kamailio instance recv REGISTER will copy the reg info to itself by dmq_usrloc, this will make flag FL_RPL set to ucontact_t.
Thanks for the reply @charlesrchance
if server_address & notification_address use same ip and different port(see below),in dmq.list_nodes will have two node for one kamailio(one node for notify_server 5360 and one for dmq local 5260), question is when send REGISTER to port 5160, REGISTER will copy from port 5260 to 5360 on the same kamailio,this is not what i want.
dmq & dmq_usrloc cfg(different port):
And when I let server_address & notification_address use same IP & Port, check in function add_server_and_notify will report error("error adding notification node"),child_init will return failed.
So I suggest that the following changes, let server_address & notification_address can use the same IP and port:
After Such A change, dmq.list_nodes will only have on node for (notify_server & server_addr(local)).
Is there any problem with this modification? Thanks
The text was updated successfully, but these errors were encountered: