Quite new to asterisk, need some pointers…
What I have:
- A SIP/DECT gateway (Mitel) with some handsets (SIP users)
- one local server (A) is behind some ugly NAT-Setup in the same network as the DECT gateway and therefore probably cannot do SIP in a reliable way. (asterisk 1.16,Debian 11.6 aka bullseye).
- One server (B) hosted at some provider has full IPv4 and IPv6 connectivity (asterisk 1.16,Debian 11.6 aka bullseye).
- Some SIP accounts at easybell.
- Server A and and B are interconnected by a VPN (wireguard)
What I want to achieve:
- Every handset (sip user on the gateway) uses a different SIP account to do outgoing an inbound calls. The DECT gateway connects to Server A via SIP
- Since server A is behind strange NAT I suppose I cannot communicate direct with the SIP provider, therefore I think I should talk to server B (via wireguard VPN) and server B connects to the SIP provoders(s).
I managed to call outbound from one DECT phone using a setup like this using chan_sip, after reading in this forum I think I should do this with pj_sip.
What would you suggest to configure?
The DECT gateway is probably an “endpoint” which I configure on server A. I suppose I need to configure a trunk like the configuration example “A SIP trunk to your service provider, including outbound registration” on server A to connect to server B
What to I need to configure on server B to enable the trunk from server A to connect to server B? Or do you recommend a different path to go?
Thank you very much for any input!