SIP Header DID HELP

Neither chan_sip or chan_pjsip currently allow routing based on the To header within them. Depending on the channel driver you need to use the mechanism available (SIP_HEADER or PJSIP_HEADER dialplan function) to get the To header and route based on that.