<div dir="ltr"><div dir="ltr">On Fri, Dec 15, 2023 at 5:26 PM C. Maj <<a href="mailto:chris@penguinpbx.com">chris@penguinpbx.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Howdy,<br>
<br>
This came up on the forums and seems appropriate to cross-post to -dev:<br>
<br>
<a href="https://community.asterisk.org/t/asterisk-listens-on-ipv6-port/99666" rel="noreferrer" target="_blank">https://community.asterisk.org/t/asterisk-listens-on-ipv6-port/99666</a><br>
<br>
OP wrote:<br>
<br>
"Please tell me why asterisk listens to ipv6 interface on random udp <br>
ports? Which module should be disabled or configured so that asterisk <br>
does not do this?"<br>
<br>
Reply mentioned previous discussion:<br>
<br>
<a href="https://issues-archive.asterisk.org/ASTERISK-25481" rel="noreferrer" target="_blank" style="">https://issues-archive.asterisk.org/ASTERISK-25481</a><br>
<br>
Point of concern is in PJSIP pjlib-util resolver:<br>
<br>
<a href="https://github.com/pjsip/pjproject/blob/master/pjlib-util/src/pjlib-util/resolver.c" rel="noreferrer" target="_blank">https://github.com/pjsip/pjproject/blob/master/pjlib-util/src/pjlib-util/resolver.c</a><br>
<br>
Curious if best fix should be placed in third-party/pjproject/patches/ <br>
to address the particular pj_sock_bind_in() functions, allowing both <br>
user-adjustable client binding host and port in /etc/asterisk/pjsip.conf <br>
with appropriate documentation around these new options ?<br>
<br>
Or, would a more developmentally-complicated *but <br>
less-anxiety-inducing-for-end-users* fix involve opening and closing a <br>
socket *as needed* ?<br></blockquote><div><br></div><div>Modern versions of Asterisk don't use the PJSIP resolver. We replace it with our own callback in res/res_pjsip/pjsip_resolver.c and do it on our own using either res_resolver_system, or res_resolver_unbound (which would listen itself). If PJSIP is still listening for DNS responses, then that would most likely be a bug and a patch to disable it when an external resolver (in PJSIP speak) is used should be provided to Teluu on their GitHub to see what they think, and then backported.</div></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>