Change SIP Gateway port

Status
Not open for further replies.

albert-g

Member
Aug 11, 2020
85
2
8
44
I have two sip-trunks from one provider, on my PBX, and there is some issues with simultaneous work, and my SIP provider advises to set different ports on every sip-trunk, but I cant find such setting on gateway. Can someone point how should change this port?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
The SIP port used by your gateway is the port specified in the external SIP profile. The only way you could have different ports per gateway (without introducing a proxy like OpenSIPs etc.) would be to set up multiple external SIP profiles.
 
  • Like
Reactions: albert-g

albert-g

Member
Aug 11, 2020
85
2
8
44
Thanks Adrian,
I suspected the same. But, by looking for good practice, is it ok to have "ext. sip profile" per gateway?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
I would argue that it is not good practice. I guess it would be fine and not too difficult to manage if you only had a very small number of gateways.

I would ask why the SIP provider needs to see different ports, there really should be no need. If your gateways connect by registration, the SIP provider should be able to differentiate between your gateways by their contact record:

Code:
sip:gw+46ce2025-6fab-4c61-9a1e-1d4368adcab4@xxx.yyy.xyz.zzz:5080
sip:gw+b396770d-c35e-4870-b993-f4fc0bb2a7db@xxx.yyy.xyz.zzz:5080
sip:gw+7be7a198-7a28-4e5f-8318-0a77be0eccbb@xxx.yyy.xyz.zzz:5080
 
  • Like
Reactions: albert-g
Status
Not open for further replies.