Files
asterisk/channels
George Joseph 9de862242f chan_rtp: Make usage of ast_rtp_instance_get_local_address clearer
unicast_rtp_request() was setting the channel variables like this:

pbx_builtin_setvar_helper(chan, "UNICASTRTP_LOCAL_ADDRESS",
    ast_sockaddr_stringify_addr(&local_address));
ast_rtp_instance_get_local_address(instance, &local_address);
pbx_builtin_setvar_helper(chan, "UNICASTRTP_LOCAL_PORT",
    ast_sockaddr_stringify_port(&local_address));

...which made it appear that UNICASTRTP_LOCAL_ADDRESS was being
set before local_address was set.  In fact, the address part of
local_address was set earlier in the function, just not the port.
This was confusing however so ast_rtp_instance_get_local_address()
is now being called before setting UNICASTRTP_LOCAL_ADDRESS.

ASTERISK-30281

Change-Id: I872ac49477100f4eb33891d46efc6ca21ec81aa4
2022-11-02 07:36:10 -06:00
..
2021-11-19 09:09:45 -06:00
2022-07-12 07:45:19 -05:00
2021-11-19 09:09:45 -06:00
2021-11-29 09:04:26 -06:00
2021-11-19 09:09:45 -06:00
2022-05-09 08:21:58 -05:00
2021-11-16 05:37:45 -06:00
2021-11-16 05:37:45 -06:00
2016-10-27 09:53:55 -04:00
2022-07-12 07:45:19 -05:00
2021-11-16 05:37:45 -06:00
2021-11-16 05:37:45 -06:00