Hi,
I’m trying to call Asterisk server from an SJphone softphone and have followed steps outlined in a tutorial from asteriskguru.com (http://www.asteriskguru.com/tutorials/sjphone_softphone.html).
However, upon softphone’s startup, after a brief attempt to register, it shows a message on the display:
-SIP not registered. Host address [IP address of the machine where softphone is installed] NAT/Firewall blocked
I have turned off windows firewall (softphone’s host is a WinXP Home machine) and the third-party firewall that is also installed is off. Asterisk is up and running on my Linux box with no error messages.
When I dial Asterisk server, I get the message that the softphone is trying to register but that goes on and on, and call is never made…
Details about the network:
-Two machines in simple file sharing network directly connected via crossover. IP addresses statically set. One of the 2 machines acts as an Asterisk server (under CentOS 4.2) the other is just a Windows XP Home box. Both machines can ping themselves and each other succesfully.
The “plan” is to dial Asterisk from the softphone on Win machine and from there use options in extensions.conf.
The conf files:
-sip.conf
[mysjphone]
type=friend
context=tryoutvoip
host=[IP address of the Win machine where softphone is installed]
dtmfmode=inband
username=mysjphone
secret=blabla
-NOTICE[797]: chan_sip.c:11043 handle_request_register: Registration from ‘sip:mysjphone@asterisk_host_ip_address’ failed for ‘asterisk_host_ip_address’ -Username/auth name mismatch
Exaclty what the error says. Asterisk is not recieving the proper user id and pass. It is receiving something other than what it thinks is the proper user id and pass. Also try changing name of profile from asterisk to sjphone.
OK, username/secret pair in sip.conf and username/password in softphone settings correspond, same on each side. How/where are the user/passwords set so that when Asterisk checks, it registers softphone correctly?
On the other hand… when the current softphone is changed for very common XLite and host field in sip.conf is set to dynamic, things seem to work… although IP addresses are set statically?!?
Anyway… as SIP client is getting registered, I am able to get the voip-to-landline context in extensions.conf by dialing an IP address… and continue to be amazed by how this Star does so much so well… any medals for Mr. Spencer yet?
i have done what u have suggested to me but the problem persist;
Aug 29 11:11:50 NOTICE[4585]: chan_sip.c:9169 handle_request_register: Registration from ‘5678 sip:5678@192.168.1.3’ failed for ‘192.168.1.3’
sip.conf:
[general]
port=5060 ; Port to bind to
bindaddr=0.0.0.0 ; Address to bind SIP channel to
context=ser
You might also make sure that this is not a nat issue by entering the following line in your sip.conf under your extension number: “nat=yes”. This solves some quirky things that Asterisk likes to do to people.
I had this same problem and It turned out that when asterisk has a domain registered it gives the same error for wrong password/username. try adding domain= to your sip config and see if this fixes it.