On 3/15/2023 9:43 AM, Marcin Groszek wrote:
> Recently I discovered that when realtime is used the port is ignored
> when used with host=dynamic and defaultip=x.x.x.x.
>
> if (port && !realtime && peer->host_dynamic) {
> ast_sockaddr_set_port(&peer->defaddr, port);
> } else if (port) {
> ast_sockaddr_set_port(&peer->addr, port);
> }
>
> Is there a reason why port value is ignored if the peer is setup in
> realtime?
The `!realtime` check was added in 2005¹, the commit message is fairly
vague, and I am not able to find bug #3286 it refers to.
Kind regards,
Sean
[1]:
https://github.com/asterisk/asterisk/commit/e7cb9750213a8a88de1818f2d5b2b928c2661afd#diff-b46867aafe8df97c4c3e15a223f26dde97354b72e649bf6cb73215ac657364a2R8886
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev