[help] Looking for a clean way to configure routing for multiple DID per multiple SIP trunks. my carrier proposed something like this, but I find it over-engineered:
[incoming]
exten => s,1,Set(Var_TO=${SIP_HEADER(TO)})
exten => s,2,GotoIf($["${Var_TO}" = “sip:1777MYCCID@callcentric.com”]?extension2,s,1:3)
exten => s,3,GotoIf($["${Var_TO}" = “sip:MYCCDID@ss.callcentric.com”]?extension1,s,1:4)
exten => s,4,GotoIf($["${Var_TO}" = “sip:MYCCDID@66.193.176.35”]?extension1,s,1:4)
exten => h,5,Macro(hangupcall)
thanks