We have multiple trunks and each one needs a different natting parameter (actually different external IP address). It will nice to have the General->SIP->NAT parameters at the trunk level so the system will configure in pjsip.conf different transport for each trunk if needed.
8 comments
-
Ina Tang HI,
As I understood, before trunks can use different external IP addresses, PBX should have different IP addresses, or the calls can not reach PBX. Configuring multiple IP address is not allowed in S-Series PBX.
So support different natting parameter won't meet your need.
Maybe there are some cases that I didn't think about. Please let me know if I missed anything.
-
Carlos Soto The routing is done at the router/firewall so the PBX does not need to have two different IP address. For example PBX is 10.101.2.16 and router is in 10.101.2.1. One sip server IP is 10.200.1.1 and the IP in out router will be 10.200.1.2, the other sip server is 10.220.30.10 and the IP in our router is 10.220.30.9. The router will route correctly the SIP package doing an SNAT and the call will be established.. However the SDP address in the INVITE will be 10.101.2.16. instead of 10.200.1.2 or 10.220.30.9. If I set the global NAT parameter, then it will work for one of the trunk but not the other because the SDP address the one that i have chosen in in the global config
PJSIP supports this by allowing to create multiple configurations of type transports with different NAT parameters and assigning that to each trunk. Trunk A will have natting with external IP 10.200.1.2 and trunk B can have natting with external IP 10.220.30.9
-
Ina Tang Hi, Carlos,
I get your request's usage scenario now. It does make sense. I will submit this request and see what we can do here.
-
Ina Tang Hi Carlos. I am curious about if there has many cases like this? As far as I know, PBX will use the same external IP normally.
-
Carlos Soto In KSA, when contracting a SIP trunk from STC, they will provide a dedicated line with a router into their VoIP network. The IP assigned will be in the range 10.x.x.x and the router will be doing the natting. If you have any other SIP trunk from any other international vendor, then the connection will be through the internet router using the public IP. In this cases you will have two IPs as your source IPs: one for the STC trunk (10.x.x.x) and one for the other vendors with the public internet IP. I imagine that it is quite common in this region because of the way local SIP trunks are provided.
-
Ina Tang Thank Carlos. :)
-
Luca Bianchi I'm in the same situation in Switzerland!
ISPs install a router working as a SIP proxy in front of PBX (yeastar S100 in my case)
In my case I have S100 connected to my LAN using LAN port, PBX uses LAN network for internet, and WAN port connected to the ISP router dedicated to SIP trunk.
I have NAT configured for Linkus and my SIP provider kills my calls after 15 minutes because the SDP address in INVITE is not the expected one.
I'm still investigating but it seems the behavior is that one.
-
Paul Njeru Am in the same situation here. One ISP does a peer trunk with a static ip on the WAN port and another does a trunk register on the LAN port.