Asterisk - sip_parse_nat_option: nat = yes is deprecated, use nat = force_rport, comedia

I installed Asterisk 11 and got this error. I changed sip.conf and still see error logs in asterisk debug mode.

Asterisk Magazine

[Apr 16 20:43:05] WARNING[18538]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
[Apr 16 20:43:11] WARNING[18538]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
[Apr 16 20:43:11] WARNING[18538]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
[Apr 16 20:43:11] WARNING[18538]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
[Apr 16 20:43:11] WARNING[18538]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead

sip.conf

nat=force_rport

However, I need to use the nat = yes option . Is there any way to remove this error message?

+4
source share
2 answers

nat = yes works for asterisk version 10 or later. From an asterisk 11, nat = yes is deprived. They said that nat = yes and nat = force_rport, comedia are the same. But I think both of them are different.

If we switch to nat = force_rport, comedia, the behavior seems fine, except for external users behind NAT. Our server is also located behind NAT.

NAT: ed , , NAT: ed , - , . nat = yes .

sip/config_parser.c, , , sip = yes auto_force_rport auto_comedia. force_rport, comedia .

nat = yes Asterisk, nat = force_rport, comedia. nat = yes nat = force_rport, comedia .

+6

, .

asterisk , , .

+1

Source: https://habr.com/ru/post/1536699/


All Articles