Hello Folks, I am a newbie at this. We recently installed Asterisk 1.4, and I recently downloaded the X-Lite Softphone. I am trying to follow the example in the on-line version of the O’Reilly book.
Asterisk is loaded on a Linux box with a fixed IP address. The phone is loaded on to my Windows PC, also with a fixed IP address. So in the sip.conf file, I define an extesion [1000], type=friend, context=phones, host={my PC IP addr}. In the settings of the phone, I give it an account name of 1000, and for the domain value, I have the IP address of the Asterisk box.
Everytime I try to register, I get a timeout, value 408.
[1000]
type=friend
context=phones
host=10.0.0.64 < my PC address
;host=dynamic
[1005]
type=friend
context=phones
host=10.0.0.154 < a colleague’s attempt; also doesn’t work
[authentication]
[root@localhost asterisk]#
For the X-Lite phone properties, I have domain = 10.0.0.154 (Asterisk box) and “send output via: domain”. The “register with domain and receive incoming calls” box is checked.
I see no CLI output from the time the registration attempt begins until the phone displays the 408 error message. That suggests that either the issue is with the phone or I need to enter a command to enable the output of the registration attempt.
On the phone settings, the “enabled” box is checked. The user name and authorization user name are both ‘1000’. The domain value is 10.0.0.154, the IP address of the Asterisk box. The “Domain Proxy” setting is set to “Domain”. The “dialing plan” value is “#1\a\a.T;match=1;prestrip=2;”. In the Topology section of the phone properties, the “IP address” value is set to “use local IP address”. The “STUN server” value is set to “use specified server” and the value is 10.0.0.154, the IP address of the Asterisk box. The “port used on local computer” box is unchecked (does this need to be set to 5060 or 5061?).
Ensure that your asterisk box is accepting connections on port 5060 on UDP. You can use portqry if you are on a windows machine, the command is as below. The output should state "LISTENING or FILTERED.
portqry.exe -n asterisk-ip -e 5060 -udp
What you should see on the asterisk CLI after a successful registration is shown below.
[Jul 14 15:51:29] NOTICE[28005]: chan_sip.c:18324 handle_response_peerpoke: Peer '1000' is now Reachable. (12ms / 2000ms)
Thanks for this suggestion. I’m thinking our problem is a networking problem. Is there anything sacred about port 5060, or is that an arbitrary value that can be changed?