[asterisk-dev] PJSIP internal DNS client binding to random sticky ports can look scary

C. Maj chris at PenguinPBX.com
Fri Dec 15 15:26:30 CST 2023


Howdy,

This came up on the forums and seems appropriate to cross-post to -dev:

https://community.asterisk.org/t/asterisk-listens-on-ipv6-port/99666

OP wrote:

"Please tell me why asterisk listens to ipv6 interface on random udp 
ports? Which module should be disabled or configured so that asterisk 
does not do this?"

Reply mentioned previous discussion:

https://issues-archive.asterisk.org/ASTERISK-25481

Point of concern is in PJSIP pjlib-util resolver:

https://github.com/pjsip/pjproject/blob/master/pjlib-util/src/pjlib-util/resolver.c

Curious if best fix should be placed in third-party/pjproject/patches/ 
to address the particular pj_sock_bind_in() functions, allowing both 
user-adjustable client binding host and port in /etc/asterisk/pjsip.conf 
with appropriate documentation around these new options ?

Or, would a more developmentally-complicated *but 
less-anxiety-inducing-for-end-users* fix involve opening and closing a 
socket *as needed* ?

Regards,

-- 
🤠 C. Maj, TechnoCaptain
🐧 Penguin PBX Solutions
📞 Denver 720-32-42-72-9
💡 Beyond 1-833-PNGN-PBX
🌐 http://PeNGuiNPBX.com




More information about the asterisk-dev mailing list