I configured my asterisk (chan_sip) this way:
sip.conf:
register => 9901#2:password@vto.ip/SIP_VTO
extensions.conf:
exten => 8001,1,Set(CALLERID(all)="Asterik2VTO" <9901#2>); VTO productive
same => n,Dial(SIP/SIP_VTO/${EXTEN})
exten => 9900,1,Set(CALLERID(all)="Asterik2VTH" <9901#2>); VTH...