Hi guys,
so i have a weird issue
when trying to add 3 different peers using one provider (3 accounts) when calls come in it gives me the first registering line
only and goes by that context
so if someones calling trunk2’s DID it will come in as SIP/trunk1 and therefore go by trunk1’s context
in the sip.conf i didnt change the context because if it was different contexts it wouldnt work.
i have a feeling that something is wrong in my sip.conf and thats why its not coming in based on username but its registering based on IP
and btw i have a register line for each trunk as well
“insecure=port,invite” in sip.conf forces Asterisk to authenticate the peer from its ip, the ips of your trunks all are the same, so the calls wiil go ever to the context of the first trunk, a workaround is to check the called number in the first trunk context and then use Goto() to jump to the right context, this works well for me.