Thanks Fred! That worked!

I did tried adding a listener but using udp:0.0.0.0:5062, thinking that any address could listen to port 5062, but it did not work. 
Honestly had not thought about using udp:10.20.0.1:5062 address..... dumb me!

Owe you a beer ... or 2 ;) 

Sérgio Charrua


On Fri, Mar 1, 2024 at 3:52 PM Fred Posner <fred@pgpx.io> wrote:
> On Mar 1, 2024, at 10:30 AM, Sergio Charrua via sr-users <sr-users@lists.kamailio.org> wrote:
>
> Hi all!
>
> I'm testing the DMQ module, but having difficulties setting it up.
>
> [...]
> My kamailio.cfg is as follows :
>
> [...]
> listen=udp:0.0.0.0:5060
> listen=tcp:0.0.0.0:5060
> [...]
> modparam("dmq", "server_address", "sip:10.20.0.2:5062") #DMQ_SERVER_ADDRESS

You don’t have a listener for this address… so add a listen=udp:10.20.0.2:5062


> modparam("dmq", "notification_address", "sip:10.20.0.4:5062")#DMQ_NOTIFICATION_ADDRESS
> modparam("dmq", "multi_notify", 1)
> modparam("dmq", "num_workers", 4)
> modparam("dmq", "ping_interval", 15)
> modparam("dmq_usrloc", "enable", 1)
>
> If I check syntax (using -c parameter) all is ok. Once I start Kamailio, the following error appears on system log:
>
> INFO: dmq [dmq.c:164]: make_socket_str_from_uri(): unknown transport protocol - fall back to udp
> ERROR: dmq [dmq.c:241]: mod_init(): server_uri is not a socket the proxy is listening on

This advises the problem… server_uri is not a socket that kamailio is listening on.

> ERROR: <core> [core/sr_module.c:1030]: init_mod(): Error while initializing module dmq (/usr/local/lib64/kamailio/modules/dmq.so)
>
> I have used UDP as well as SIP as protocols for Server Address and Notification Address, used port 5060 and 5062 (and others too), even added a new listen=udp:0.0.0.0:5062, as well as  listen=tcp:0.0.0.0:5062 but the result is always the same.
>
> Using Kamailio 5.7.4 on RHEL 9 with SELINUX set to enforcing (if relevant). No firewall active.
> local IP address is 10.20.0.1
> second kamailio node IP address is 10.20.0.4
>
> Any ideas? At first sight, it seems to be all set as per documentation. I even found other configurations online, and apart from the IP address, all is similar.
>
>
> Thanks in advance,
>
> Sérgio Charrua
> www.voip.pt


Regards,

Fred Posner
p: +1 (352) 664-3733
contact: https://fred.tel