<div dir="ltr">Did you set them to the public IP address (elastic IP or whatever) on each of them.<br><br>Since you are natted, I guess you are using the listen=udp x.x.x.x advertise x.x.x.x<div>parameter.</div><div><br>similar IP preset is needed in this case.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 17, 2019 at 12:00 PM Julien Chavanton <<a href="mailto:jchavanton@gmail.com">jchavanton@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Can you share the settings you are using :<br><br>modparam("dmq", "server_address", "?")<br>modparam("dmq", "notification_address", "?")<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 17, 2019 at 11:30 AM <<a href="mailto:jenus@cyberchaos.nl" target="_blank">jenus@cyberchaos.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
Is there any other way to filter DMQ peers? I now have a issue with <br>
dmq_usrloc when running in a docker container. When the node comes <br>
online the peer is sending the KDMQ usrloc packet (with the registered <br>
contacts) to the internal container ip and not the actual external ip. <br>
Both ip's show up as DMQ peers, after a few keepalive failures the dmq <br>
peer with the internal container ip becomes inactive and no updates are <br>
sent to that peer. But the usrloc sync seems to happen before the peer <br>
is inactive.<br>
<br>
I tried to strip the peers with the internal container ip's, this works <br>
for the requests, but i'm not able to fix this for the responses.<br>
<br>
Thanks,<br>
<br>
Jan<br>
<br>
<a href="mailto:jenus@cyberchaos.nl" target="_blank">jenus@cyberchaos.nl</a> schreef op 2019-05-02 08:59:<br>
> Hi all,<br>
> <br>
> I'm trying to run a kamailio DMQ node inside a docker container. All<br>
> works fine but i have one issue with DMQ. Since the kamailio process<br>
> inside the container is behind a nat i have set the advertise address<br>
> to the external ip, this works fine for the via headers but DMQ keeps<br>
> sending the internal interface in the KDMQ notification_peer messages.<br>
> The external ip is in there as well. Example:<br>
> <br>
> SIP/2.0 200 OK<br>
> Via: SIP/2.0/UDP<br>
> 10.10.10.13;branch=z9hG4bK2dcb.c6326de2000000000000000000000000.0<br>
> To:<br>
> <<a href="http://sip:notification_peer@10.10.10.94:5060" rel="noreferrer" target="_blank">sip:notification_peer@10.10.10.94:5060</a>>;tag=616b7acb681ed5e9cbc485b3faa09d62.0a3d<br>
> From:<br>
> <<a href="http://sip:notification_peer@10.10.10.13:5060" rel="noreferrer" target="_blank">sip:notification_peer@10.10.10.13:5060</a>>;tag=e8f29c06c4b85a188f6533f08d60feb6-ff29<br>
> CSeq: 10 KDMQ<br>
> Call-ID: 17042656602ca532-23367@x.x.x.x<br>
> Content-Type: text/plain<br>
> Server: kamailio (5.1.4 (x86_64/linux))<br>
> Content-Length: 222<br>
> <br>
> sip:10.10.10.13:5060;status=active<br>
> sip:10.10.10.12:5060;status=active<br>
> sip:10.10.10.92:5060;status=active<br>
> sip:10.10.10.93:5060;status=active<br>
> sip:10.10.10.94:5060;status=active   <-- entry for container external <br>
> ip<br>
> sip:172.17.0.2:5060;status=disabled  <-- entry for container internal <br>
> ip<br>
> <br>
> <br>
> I tried to strip this entry using the replace_body_atonce in the<br>
> tm:local-request route. This works fine for the KDMQ request, but when<br>
> i try to remove the same line from 200OK responses that are send out<br>
> as a response to incomming KDMQ messages this seems to fail. I use the<br>
> following code:<br>
> <br>
> # Working code (for outgoing KDMQ requests):<br>
> event_route [tm:local-request]<br>
> {<br>
>   if(is_method("KDMQ") && $rU == "notification_peer")<br>
>         replace_body_atonce("sip:172.17.0.*:5060;status=.*", "");<br>
> }<br>
> <br>
> # Failing code (for 200OK responses):<br>
> reply_route<br>
> {<br>
>   xlog("L_ALERT", "REPLY: Sending out reply, tU is $tU  rs is $rs\n");<br>
>   if ($rs == "200" && $tU == "notification_peer")<br>
>   {<br>
>         replace_body_atonce("sip:172.17.0.*:5060;status=.*", "");<br>
>   }<br>
> }<br>
> <br>
> <br>
> I'm running kamailio 5.1.4. Is there a way to strip a line from the<br>
> body of a local generated 200OK response? Or is there a way to avoid<br>
> that DMQ inserts the internal container ip in the first place.<br>
> <br>
> <br>
> Thanks,<br>
> <br>
> Jan Hazenberg<br>
> <br>
> <br>
> _______________________________________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</blockquote></div>