diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 804ead30ae..e112fab0f3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4185,6 +4185,8 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, int newdialog) return res; } + do_setnat(dialog, ast_test_flag(&dialog->flags[0], SIP_NAT) & SIP_NAT_ROUTE); + ast_string_field_set(dialog, tohost, peername); /* Get the outbound proxy information */