Hello Freinds! Could you help me please?
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.
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.
I guess that could be but I am not understanding why the need for the three different trunks if it’s all ending up at the same host?
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
That’s why im here, try to fins solution how to make something like custom .conf file,
to link Trunk to Eth, which i need.
I’m not pro in FreePbx, and i didn’t find relevant solution in internet,
Could you help me to make custom .conf ?
I belive it’s possible to make addiditional .conf, which will be added to generated by FreePBX from GUI .conf file. But I don’t know exactly.
Possibly, the GUI will allow you to create multiple UDP transports. In Asterisk SIP Settings, chan_pjsip tab, do you see (for example)
udp - 0.0.0.0 - All
udp - 0.0.0.0 - 10.0.1.2 - eth1
udp - 0.0.0.0 - 10.0.2.2 - eth2
udp - 0.0.0.0 - 10.0.3.2.- eth3
If so, can you set the All entry to No and more than one of the others to Yes?
If this isn’t clear, post a screenshot of this page.
Not so easy from the GUI but
At present I don’t see any feasible way of doing this at all with FreePBX. You can create a transport easily enough, by manually adding the necessary details to pjsip.transports_custom.conf, and you can confirm that the transport is created by the Asterisk output from pjsip show transports. But you can’t apply this transport to a PJSIP trunk (nor to an extension) directly from the GUI, so you must also manually create a PJSIP trunk then manually create dialplan to use the trunk. At that point, u…
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.