summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3c0eb510d..a0440cd67 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -29284,6 +29284,9 @@ static int sip_poke_peer(struct sip_peer *peer, int force)
__set_address_from_contact(sip_route_first_uri(&p->route), &p->sa, p->socket.type == AST_TRANSPORT_TLS ? 1 : 0);
}
+ /* Get the outbound proxy information */
+ ref_proxy(p, obproxy_get(p, peer));
+
/* Send OPTIONs to peer's fullcontact */
if (!ast_strlen_zero(peer->fullcontact)) {
ast_string_field_set(p, fullcontact, peer->fullcontact);