I currently have an Openser (Kamillio) sip server running. When I receive an inbound call I am changing the alias_username from 7402492013 to username 8004172603 . Basically I am redirecting calls and changing the DNIS to what ever I want. My problem is that in sip message the To sip stays at original DNIS. See example below where i change DNIS from 7402492013 to 8004172603 and send invite out to next server. As you can see the "to sip" setting is still showing 7402492013. I want a change made to my config file that will also change the "to sip" setting to 8004172603.
INVITE sip:8004172603@[url removed, login to view] SIP/2.0.
Record-Route: <sip:[url removed, login to view];lr=on>.
Via: SIP/2.0/UDP [url removed, login to view];branch=z9hG4bKe05a.7c19ecb7.0.
Via: SIP/2.0/UDP [url removed, login to view];branch=z9hG4bKcvp6uvpl1li97lql1bbl9l56j1.
From: <sip:+18172944218@[url removed, login to view];user=phone>;tag=10744.
==>To: <sip:+17402492013@[url removed, login to view];user=phone>.
CSeq: 1 INVITE.
Contact: <sip:+18132848215@[url removed, login to view];transport=udp>;user=phone.