<div><div dir="auto">Hi,</div></div><div dir="auto"><br></div><div dir="auto">I can take a look at this although I’ll be travelling until next week so may not get to it until then.</div><div dir="auto"><br></div><div dir="auto">In the meantime, can you send the KDMQ sync request which is sent by the node which is coming online, along with your DMQ related config and also the set advertise address line.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div><div dir="auto">Charles</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 17 Jun 2019 at 19:31, <<a href="mailto:jenus@cyberchaos.nl">jenus@cyberchaos.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="arial, helvetica, sans-serif"><b><font size="2">Charles Chance</font></b><br><font size="2">Managing Director</font></font><br><div><font face="arial, helvetica, sans-serif"><font size="2"><br></font></font></div><div><font face="arial, helvetica, sans-serif"><font size="2">t. 0330 120 1200    m. 07932 063 891</font></font></div></div></div></div></div>

<br>
<div><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Sipcentric Ltd.
                Company registered in England & Wales no. 7365592.</font><span style="font-size:10pt;font-family:Helvetica,Arial,sans-serif"> </span><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Registered
                office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.</font></div>