mirror of https://github.com/sipwise/asterisk.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
315 B
14 lines
315 B
--- channels/chan_sip.c (revisión: 184564)
|
|
+++ channels/chan_sip.c (revisión: 184565)
|
|
@@ -2947,7 +2947,9 @@
|
|
ASTOBJ_UNREF(p, sip_destroy_peer);
|
|
return res;
|
|
}
|
|
-
|
|
+
|
|
+ do_setnat(dialog, ast_test_flag(&dialog->flags[0], SIP_NAT) & SIP_NAT_ROUTE);
|
|
+
|
|
ast_string_field_set(dialog, tohost, peer);
|
|
|
|
if (sin) {
|