Asterisk Recieve SIP call and forward to VOiceMail

hi , I need help for a simple solution like Asterisknow recieves calls on SIP and forward the call to Voice Mail instead of any TDM hardware …
Please advise …

Thanks in advance
Israr

Zahra Com.

check to see if the phone is registered on Asterisk, sip show peers. If not, then this is the problem…

yes yu r rite . i m getting
[Feb 22 14:33:41] NOTICE[2754] chan_sip.c: Registration from ‘sip:israr@202.83.168.197:5060’ failed for ‘202.83.168.198’ - No matching peer found"
Please advice

Will need more information.

Please post the configuration of the SIP.CONF file and the conf of your sip phone. Any other additional information which you think might be useful, e.g. network; is the phone on the same network as the server? Do you do NATs…