On Wed, Mar 15, 2023 at 11:49 AM Sean Bright <s...@seanbright.com> wrote:

> 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.
>

It's here[1] which doesn't really help.

[1] https://issues.asterisk.org/jira/browse/ASTERISK-3224

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_____________________________________________________________________
-- 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

Reply via email to