instedd / verboice

Open source toolkit for voice services; with special focus to the needs of medium- and low-income countries, scalable services, and interacting with vulnerable populations
http://verboice.instedd.org/
GNU General Public License v3.0
44 stars 18 forks source link

Use Asterisk's public IP in SIP INVITEs #877

Closed matiasgarciaisaia closed 4 years ago

matiasgarciaisaia commented 4 years ago

Asterisk is currently sending INVITEs using its container's private IP address in the SIP INVITE (on the o= [...] IN IP4 ${THE_IP} line).

The public IP is correctly being set on the Via: header, but some ISPs prefer to have the public IP in the previously mentioned line too.

To change this, we have to make Verboice write a media_address=54.236.234.104 line in the pjsip.conf file, just like we're currently doing with external_media_address and external_signaling_address.

matiasgarciaisaia commented 4 years ago

Update: Verboice is not writing the external_media_address nor external_signaling_address - we're manually doing it in the instances were it's needed.

We should probably make that automatic.

I've updated the config file's template in 59a78f374b41b155e342bfd42c0d01e19f74b940 for now.

matiasgarciaisaia commented 4 years ago

To sum this up: the config was auto-written, indeed. It simply was done in a different repo - so we fixed this in instedd/verboice-asterisk#1 👌