Hi. I have two Asterisk servers on my local network (ServerA & ServerB). I have purchased seperate DID numbers (DIDA & DIDB) for both servers from Anveo Direct, and have created two destination SIP trunks:
Both servers have the same PJSIP conifguration (see attached pjsipA.txt). With ServerA booted, inbound from both trunkA & trunkB are received correctly by my dialplan. With both servers booted, calls from trunkA & trunkB both arrive on a single server, not on both.
I was under the impression that PJSIP would allow for multiple registrations. So, with both servers having the same PJSIP config, I expected incoming calls for trunkA & trunkB to be routed to both servers. Then, I could use the dialplan on each server to filter DIDA into ServerA, and DIDB into ServerB.
I have also tried setting trunkB to port 5070 via Anveo:
In this case, I also correctly forwarded ports on my router for port 5070 to ServerB. Here, ServerA is running pjsipA.txt, and ServerB is using attached pjsipB.txt. The pjsipB.txt tries to route incoming calls to ServerB from port 5070. However, calls from trunkA & trunkB still only arrived on a single server, not on both.
I am pretty new to Asterisk, and especially to PJSIP, so I am wondering if someone can provide me more info, context, or suggestions. Is it possible for me to run the pjsipA.txt on both servers, and route the DID via dialplan? And if so, is there a setting I am missing in my pjsipA.txt to enable this? Or, alternatively is there an obvious reason why my pjsipB.txt is not routing trunkB via port 5070 to ServerB? Thank you in advance for any help.
pjsipA.txt (1.7 KB)
pjsipB.txt (1.7 KB)