<p dir="ltr">Hi,</p>
<p dir="ltr">On 3 Feb 2015 10:07, "Leonardo Arena" <<a href="mailto:rnalrd@gmail.com">rnalrd@gmail.com</a>> wrote:<br>
><br>
> On lun, 2015-02-02 at 17:54 +0000, Charles Chance wrote:<br>
> > Hi,<br>
> ><br>
> ><br>
> > Can you send the output of "kamcmd dmq.list_nodes" (mask IP addresses<br>
> > if needed)?<br>
><br>
> proxy2:/etc/kamailio# kamcmd dmq.list_nodes<br>
> {<br>
>         host: 10.0.0.3<br>
>         port: 5060<br>
>         resolved_ip: 10.0.0.3<br>
>         status: 2<br>
>         last_notification: 0<br>
>         local: 0<br>
> }<br>
> {<br>
>         host: 10.0.0.1<br>
>         port: 5060<br>
>         resolved_ip: 10.0.0.1<br>
>         status: 2<br>
>         last_notification: 0<br>
>         local: 0<br>
> }<br>
> {<br>
>         host:<a href="http://dmq.my.domain.net">dmq.my.domain.net</a><br>
>         port:<br>
>         resolved_ip: 0.0.0.0<br>
>         status: 2<br>
>         last_notification: 0<br>
>         local: 0<br>
> }<br>
> {<br>
>         host: 10.0.0.2<br>
>         port: 5060<br>
>         resolved_ip: 10.0.0.2<br>
>         status: 8<br>
>         last_notification: 0<br>
>         local: 1<br>
> }<br>
><br>
><br>
><a href="http://dmq.my.domain.net">dmq.my.domain.net</a>resolves to 10.0.0.2 which is proxy2. What I'm<br>
> effectively trying to do with DNS is to avoid having a static entry in<br>
> configuration file as notification address. I'd like to build a dynamic<br>
> list of notification servers via SRV records and have DMQ honor the<br>
> priority and weight of such list.<br>
><br>
></p>
<p dir="ltr">This will not work currently but I may have some time soon to look into it. Unless someone else proposes a patch first.</p>
<p dir="ltr">> ><br>
> ><br>
> > I will try to replicate your scenario and come back with a solution<br>
> > shortly.<br>
> ><br>
> ></p>
<p dir="ltr">I have a patch which is working in my tests but I am waiting to hear of any possible side effects. It should be in master branch shortly.</p>
<p dir="ltr">Cheers,</p>
<p dir="ltr">Charles<br></p>
<p dir="ltr">> > By the way, your dmq "notification_address" parameter looks slightly<br>
> > odd (although I don't know what you're doing with DNS) - it should<br>
> > simply point to one other node in the cluster, so that on startup it<br>
> > can request information about any other nodes from this one. Also, in<br>
> > the block which calls dmq_handle_message(), you should exit straight<br>
> > away after.<br>
><br>
><br>
> Fixed.<br>
><br>
><br>
> ><br>
> ><br>
> > One final note, you should really listen on a separate port for dmq<br>
> > purposes (e.g. 5080) and restrict access to it at firewall level. You<br>
> > can then check in config that the message was received on this port,<br>
> > like:<br>
> ><br>
> ><br>
> >         if (method == "KDMQ" && $Rp == 5080) {<br>
> >                dmq_handle_message();<br>
> >                exit;<br>
> >         }<br>
><br>
><br>
> Tnx, I will do that. Now I'm just running in a lab.<br>
><br>
> Thanks!<br>
><br>
> - leonardo<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
></p>

<br>
<font face="Helvetica, Arial, sans-serif"><font size="2"><span style="font-size:10pt"><a href="http://www.sipcentric.com/" title="blocked::http://www.sipcentric.com/" target="_blank">www.sipcentric.com</a><br>
            <br>
            Follow us on twitter <a href="http://twitter.com/sipcentric" title="blocked::http://twitter.com/sipcentric" target="_blank">@sipcentric</a><br>
            <br>
            <font color="gray">Sipcentric Ltd.
                Company registered in England & Wales no. 7365592.</font> <font color="gray">Registered
                office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.</font></span></font></font>