Connecting to Asterisk

Hi

I am having problems, dialling a local extension. The extension rings and as soon as it is answered, the call goes into voice mail.

Asterisk server is in a different location to the home user. and is behind a router.

I have enabled nat on the server. But i am getting errors as below:

Apr 20 22:49:38 DEBUG[1334]: ##### Testing 203.213.43.XXX with 10.0.0.0
Apr 20 22:49:38 DEBUG[1334]: Target address 203.213.43.XXX is not local, substituting externip
Apr 20 22:49:38 DEBUG[1334]: That’s odd… Got a response on a call we dont know about.
Apr 20 22:49:39 DEBUG[1334]: ##### Testing 203.213.43.XXX with 10.0.0.0
Apr 20 22:49:39 DEBUG[1334]: Target address 203.213.43.XXX is not local, substituting externip
Apr 20 22:49:39 DEBUG[1334]: That’s odd… Got a response on a call we dont know about.
Apr 20 22:49:40 WARNING[1334]: Maximum retries exceeded on call 2de9d40c697e85c434f830292fcf51fe@203.213.34.XXX for seqno 102 (Non-critical Request)
Apr 20 22:49:43 DEBUG[1334]: ##### Testing 203.213.43.XXX with 10.0.0.0
Apr 20 22:49:43 DEBUG[1334]: Target address 203.213.43.XXX is not local, substituting externip
Apr 20 22:49:44 DEBUG[1334]: Auto destroying call '23ad700b36bdea61532f49d85fd0f7ed@203.213.34.XXX
Apr 20 22:49:49 DEBUG[1334]: Auto destroying call '2de9d40c697e85c434f830292fcf51fe@203.213.34.XXX

what am i doing wrong?

What is your extension.conf for that extensions? Mine is like this…
exten => 6789,1,Dial,SIP/6789|30,r
exten => 6789,2,Voicemail,u6789
exten => 6789,3,Hangup

Looks like you are using SIP with a NAT router.

We will need more info to help you debug this problem.

What phone ? What extension file, how does your sip.conf look like, …
How does your network look like, what type of NAT are you using,…

My tutorial at asteriskguru.com/natut.php might give you some more insight in what is going on. (although its unfinished._

/Z