I am working with a CCaaS offering and using Twilio to provide a SIP trunk. I have one queue that redirects the inbound call back out the Twilio SIP trunk to a number on the PSTN. When that call is redirected, the CCaaS uses the callerid of the incoming caller in the FROM field of the SIP request it sends back to Twilio, and Twilio drops the call with an “unverified number” error.
I would like to use Asterisk as a simple SBC and have the CCaaS redirect the call to Asterisk, then have Asterisk rewrite the FROM header to the CCaaS inbound number provided by Twilio, then forward the call on to Twilio.
Does this sound like a feasible solution, and could someone please point me to documentation around rewriting the SIP headers? I’ve not used Asterisk in more that 15 years and ahve basically forgotten everything I ever knew