Dialling problem

Hi
i have successfully configured the voice mail but i am getting one problem ,the extension(3000) on which i have configured the voice mail from that extension i am not able to call to other extension .Below its a all conf file ,kindly give the solution

[code]SIP.CONF

[3000]
type=friend
host=dynamic
qualify=yes
username=3000
port=5062
allow=all
nat=never
secret = password
dtmfmode=rfc2833
context=sip
context=internal
mailbox=3000@default
callerid=“user2”

[5000]
type=friend
host=dynamic
qualify=yes
username=5000
port=5062
allow=all
nat=never
secret = password
dtmfmode=rfc2833
context=sip
mailbox=5000
callerid=“user3”[/code]

EXTENSION.CONF

exten => 3000,1,Dial(SIP/3000,10)
exten => 3000,n,voicemail(3000@default,u)
exten => 3000,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
exten => 3000,n(unavail),Voicemail(3000@default,u)
exten => 3000,n,Hangup()
exten => 3000,n(busy),VoiceMail(3000@default,b)
exten => 3000,n,Hangup()

exten => 5000,1,Dial(SIP/5000)
[internal]
exten => 700,1,VoiceMailMain()

VOICEMAIL.CONF [default] 3000 => 1234,3000,leena@gmail.com

You can’t include 2 different default contexts for the same peer in sip.conf. So you are going to need to remove one of them. Likely the internal one.

context=sip context=internal

Also you have some questionable dialplan logic here:

exten => 3000,1,Dial(SIP/3000,10) exten => 3000,n,voicemail(3000@default,u) exten => 3000,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail) exten => 3000,n(unavail),Voicemail(3000@default,u) exten => 3000,n,Hangup() exten => 3000,n(busy),VoiceMail(3000@default,b) exten => 3000,n,Hangup()

If the Dial Command doesn’t connect within 10 seconds, you are sending it into voicemail with unavailable. You either want to remove that line, or remove everything from the gotoif to the hangup. It is somewhat redundant.

Ya i did that its getting call now but if iam not picking up the call after few seconds(6 sec) that call is getting to forward