
s. можно со стороны фрипбх пофиксить: каждому транку задай свой контекст в pjsip Settings → Advanced → Context, типа custom-sim1, custom-sim2. в /etc/asterisk/extensions_custom.conf пропиши:[custom-sim1]
exten => s,1,Goto(from-pstn,1111,1)
[custom-sim2]
exten => s,1,Goto(from-pstn,2222,1)