I need to connect similar Trunks to different Eth ports (router):
Three operators Sip accounts linked to own DSL modem,
accounts can be connected only through own modem.
What we have, Freepbx 15:
Three PJSIP Trunks, named: T1, T2, T3 , with same operator sip server: ims.otenet.gr
Three ETH ports connected to DSL modems, with networks: 10.0.1.1/24, 10.0.2.1/24, 10.0.3.1/24
Trunk T1 must be connected through ETH1 10.0.1.1/24, T2 on ETH2 10.0.2.1/24, T3 on ETH3 10.0.3.1/24
It’s easy to make route only for 1 trunk with linux routing like:
route add -host ims.otenet.gr gw 10.0.1.1 dev eth1,
And if I do it, works only Trunk T1. Trunks T2, T3 will be rejected from server.
The question:
How to configure FreePBX to:
Trunk T1 will connect through ETH1 10.0.1.1/24,
T2 through ETH2 10.0.2.1/24,
T3 through ETH3 10.0.3.1/24
How are you configuring/specifying the host for each individual trunk? If it’s by IP you may need to set static routes for each individual host destination to force the connections to certain IPs through the correct gateway.
I think the problem is that the destination address is the same for all of these. I think they are trying to manipulate the external address to be different by using three local interfaces and three ISP connections (although ti could be one ISP connection with multiple addresses).
They need to create three pjsip transports, each bound to a different interface. I believe that has to be done with custom .conf files.
Dear Freinds,
Operator blocked SIP accounts to each OWN DSL modem,
and SIP account can be connected to SIP server only through its DSL Modem.
SIP server of the operator checks something, like external IP of DSL modem or something else.
And when you try to coonect to SIP server not from linked DSL modem, connection rejected.
I have only one telephone line connected to SIP server, other two linesare waiting for solution