Submitted by tensai on
There's a little known feature of Asterisk which allows you to set the SIP URI independently of the To header. This is sometimes useful, although not often.
If you wanted to put 1234 into the request URI and 5678 into the To header you could use a Dial string as such:
exten => s,n,Dial(SIP/peername/1234!5678)