diff options
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bc121b128..c9e63ad32 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4876,6 +4876,8 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, struct sockadd 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 */ |