Call routes by trunk group

Is this possible?I have 2 ports of E1 in my sevrer.The E1 card is a sangoma A102U which caters a ss7 signalling. Is call route by trunk group number possible?I don’t know if I express myself right. But I wanted to If i can route my call to other context when asterisk sees that the call origin comes from trunk group 1. Please help me on this one.


the simplest way is to define the context= differently for each trunk group you create in zapata.conf