Colleagues, tell me please how can I solve my problem!
My asterisk is behind NAT and has an intranet address.
On the main router, a number of ports are forwarded to asterisk, to receive incoming connections via SIP and RTP.
One of their providers requires the registration of sip-accounts.
The “Contact:” field of SIP-frames “REGISTER” contains a URI with an internal intranet address.
How can I change the URI in the “Contact:” field in SIP-frame “REGISTER”? For example, instead of "firstname.lastname@example.org" enter there “1234567@my_extern_address”?
I use Asterisk 13.14.0 on FreeBSD 10.3 amd64.
Thankful in advance,