Hi
I have problem connecting to sip server fom asteisk.asterisk is behind the nat.
in the asterisk console i am getting
Aug 24 11:06:53 NOTICE[2348]: chan_sip.c:5372 sip_reg_timeout: – Registration for '8278298238@sip.net2phone.com’ timed out, trying again (Attempt #1)
when i type sip show peers i am getting
account/8278298238 66.33.157.12 N 5060 UNREACHABLE
can anyone help me in soleving the problem.i have given my sip and extension file
thanks in advance
prabhakar
you must port forward thru NAT ports 5060 and the RTP range (defined in rtp.conf). You don’t need 10k ports, 10000-10100 will do fine. (10000-20000 is default).
You also need to configure externip= and localnet= in sip.conf
also for your extensions.conf you might wanna put something like
${EXTEN} is replaced with the exten being dialed, so if you dialed 1-212-345-6789 it would dial SIP/account/12123456789, which is a correct destination. Dialing just sip/account does not tell your provider what to call, just that there is a call. this is useful for SIP phones, not useful for providers.
hi
thanks for a great help
i am still having the problem
i modified sip.conf as u told
externnip=66.33.146.12 ;address of the sip provider
(i am sure what Address that we’re going to put in outbound SIP messages)
localnet=192.168.1.0/255.255.255.0/local ip address of the network
i forwarded all the ports to the asterisk server
register => 8278298238:3112@sip.net2phone.com:8060
is this a correct statement
thank yuou for your reply.
i couldnt able to connect even after trying all the steps
i bought a static ip addres and tried with this configuration
what is the configuration to use while going for static ip address.
i used the below configuration and tried
SIP.CONF configuration file set up
[general]
port = 5060
bindaddr = 0.0.0.0
context = test
register => 8278298238:3112@sip.net2phone.com:8060
useragent=X-Lite release 1103m
[account]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=8278298238
secret=3112 host=sip.net2phone.com
dtmfmode=inband
qualify=1000
context=default
i am getting this message
Aug 28 10:29:49 NOTICE[2445]: chan_sip.c:5372 sip_reg_timeout: – Registration for '8278298238@sip.net2phone.com’ timed out, trying again (Attempt #1)
Asterisk*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
account/8278298238 66.33.146.12 5060 UNREACHABLE
1 sip peers [0 online , 1 offline]
I was having similar problem with xlite and when I changed to snom’s softphone, it connected perfect and also sends the dtmf signals correctly (which is still not possible with xlite). Just my trial and error guess, I am not an expert.
my account is registered now but only problem is i cant able to make calls
this is my error
Executing Dial(“SIP/prabhakar-baf6”, “SIP/account/”) in new stack
– Called account/
Sep 6 14:10:30 NOTICE[3020]: chan_sip.c:9685 handle_response_invite: Failed to authenticate on INVITE to '“prabhakar” sip:prabhakar@125.22.242.107;tag=as080d9531’
Sep 6 14:10:30 NOTICE[3020]: chan_sip.c:9685 handle_response_invite: Failed to authenticate on INVITE to ‘“prabhakar” sip:prabhakar@125.22.242.107;tag=as080d9531’