FreeSWITCH
IP-Based Authentication Gateway
10 views
Code
Example Config: sofia/profile/external/gateway/ipauth.xml
<gateway name="ipauth">
<param name="proxy" value="X.X.X.X"/> <!-- Provider IP -->
<param name="register" value="false"/> <!-- No registration -->
<param name="caller-id-in-from" value="true"/>
</gateway>
Explanation
This is used when the remote system (e.g., MNO or VoIP provider) allows your server to connect based on your public IP only (no username/password required).
Important:
Use this on the external profile.
Ensure your public IP is whitelisted on the provider's system.
You usually don’t send credentials; instead, you allow their INVITEs or send calls without registration.
Important:
Use this on the external profile.
Ensure your public IP is whitelisted on the provider's system.
You usually don’t send credentials; instead, you allow their INVITEs or send calls without registration.
Rate this snippet
Have a Better Solution?
Know a more efficient way to solve this problem? Share your own code snippet and help the community!
Submit Your Version