I have two asterisk Servers installed with version 16X on Centos 7X.
I have 2 SIP Trunks From Telecom Operator that are Terminated at Server1.
And my applications are deployed at Asterisk 2 Server along with Asterisk and calls are getting initiated from Asterisk 2 Server. In this, I have incoming and outgoing services.
Now in this case when am having two SIP trunks from Asterisk 1 and Asterisk 2 Internal SIP trunks calls are getting in the same context for Asterisk 1. Hence am not able to determine the calls are for Operator1 or Operator 1.
Presently I have used come condition based on the Callerid number on the asterisk 1 and distributing the calls to the Telecom operator. But when there is a large call volume the CPU load increasing due to this IF condition. Hence do we have an alternative option where we can get the calls to a different contexts for each internal SIP trunk between asterisk 1 and asterisk 2