I have what I think could be a very basic configuration problem.
I am trying to setup an 8 port analog gateway. 4 ports are FXS and the other are FXO.
My idea is to register each port individually so for example the 4 FXS can belong to an internal context, and the 4 FXO can belong to an external one (may be “FROM-PSTN”).
If I do that, almost everything works fine… I can call my bria softphone from any of the FXS and vice versa. I can also call from the softphone to the PSTN via the FXOs.
The problem I have is related to the incoming calls from the PSTN. Asterisk sees the incoming calls as coming from unknown endpoints, and this makes sense to me because every caller has a different caller ID…
This is what I am talking about:
res_pjsip/pjsip_distributor.c:256 log_unidentified_request: Request from ‘“11XXXXX539” sip:11XXXXX539@192.168.101.161’ failed for ‘192.168.101.161:64387’ (callid: email@example.com) - No matching endpoint found
When in the past I had and analog gateway with only one FXO, I solved this using the IDENTIFY parameter with a match to the IP of my old gateway.
Now I can’t do that because each port is registering from the same IP address, so the identify wouldn’t make any sense here.
Can anyone tell me how should I setup my gateway or what is the recommended way to setup this kind of gateways with Asterisk?
The other option that I am analyzing consists into registering the gateway as a whole. This will work for incoming and outgoing calls, but this way the 8 ports will be in the same context and I don’t like that.
Any help will be appreciated.