[Freeswitch-users] Identify and configure inbound equipments

Adrien Martin a.martin at alphalink.fr
Tue Sep 7 13:54:25 UTC 2021


I currently have a sofia profile with some inbound acl, and try to differentiate inbound calls with more info than just acl.
The goal would be to have different SIP/RTP settings and different dialplan processing for several inbound equipment while only having one IP/port for FreeSWITCH (one profile).

The variables variable_sip_received_ip and variable_sip_received_port can be used to handle this with an outbound event_socket program, but copying gateways configuration into another program does not look like a good solution.

https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files says gateways can have inbound variables but i do not manage to make the profile use the gateways settings.
When the INVITE is received, FreeSWITCH only logs about acl and not about gateways.

How to use the inbound variables of the gateways/how to match inbound gateways?
Or is there another way to achieve this?

More information about the FreeSWITCH-users mailing list