> Could someone point me in the right direction? It can be done from asterisk, server side would be cleaner. This is from the top of the sample extensions.conf. [from-ser1] exten => _.,1,Goto(from-pstn,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)