Hi all, hoping for a pointer here as I have been looking at this for a few days and there is clearly something I either don’t know that is simple or something weird going on. Unless otherwise mentioned, everything is at defaults.
Basically, FreePBX 2.7.0, Asterisk 1.6.2.9 on Centos (5.5 I think - latest release with relevant updates.). Cisco 7960 and 7940 phones (a fair few of).
Basic setup, no NAT, no trunks or anything fancy, just playing really to get some knoweldge together and see how practical an open source call manager type solution actually is.
Problem - Cannot place calls, SIP registration fails with a 401 Unauthorised followed by a 403 Rejected. Any calls initiated appear to hit “from-external”.
TFTP is fine, image loads fine, configs load down fine just that SIP registration failing. Seemed to me to point to a cock up on my part with usernames/passwords but am on my fourth phone now and fourth extension and they are all behaving the same. Using latest firmware for the phones (8.12).
Assumed user stupidity so tried to remove myself from the setup by using the endpoint administrator module and the results are exactly the same. Examples below show one extension (1001) setup with a passwrod of bo11ocks (with 1s not ls, otherwise it would be rude).
Any assistance or pointers to the button that needs clicking or file that needs poking would be greatly appreciated.
Used an analyser to dig deeper into what was happening and I see:
SIP request from phone to Asterisk on port 5060 Request Register SIP
(Data sip:[email protected] (seems correct)
Server responds:
Status Trying
401 Unauthorised
SIP request from phone to Asterisk on port 5060 Request Register SIP
(Data sip:[email protected] (seems correct)
Server responds:
Status Trying
403 Forbidden (Bad auth)
Files (although I am doing everything via FreePBX)
SIPDefault.conf
image_version: “P0S3-8-12-00”
proxy1_address: “10.10.1.10”
proxy2_address: “xxx.xxx.xxx.xxx”
proxy3_address: “xxx.xxx.xxx.xxx”
proxy4_address: “xxx.xxx.xxx.xxx”
Proxy Server Port
proxy1_port:“5060”
proxy2_port:“5060”
proxy3_port:“5060”
proxy4_port:“5060”
proxy_emergency: ""
proxy_emergency_port: "5060"
proxy_backup: ""
proxy_backup_port: "5060"
outbound_proxy: ""
outbound_proxy_port: “5060”
nat_enable: "0"
nat_address: ""
voip_control_port: "5060"
start_media_port: "16348"
end_media_port: "20134"
nat_received_processing: "1"
dyn_dns_addr_1: ""
dyn_dns_addr_2: ""
dyn_tftp_addr: "10.10.1.10"
tftp_cfg_dir: “./”
proxy_register: "1"
timer_register_expires: "120"
preferred_codec: "none"
tos_media: "5"
enable_vad: "0"
dial_template: "dialplan"
network_media_type: "auto"
autocomplete: "1"
telnet_level: “2”
cnf_join_enable: "1"
semi_attended_transfer: "0"
call_waiting: "1"
anonymous_call_block: "0"
callerid_blocking: "0"
dnd_control: “0”
dtmf_inband: "1"
dtmf_outofband: "avt"
dtmf_db_level: "3"
dtmf_avt_payload: "101"
timer_t1: "500"
timer_t2: "4000"
sip_retx: "10"
sip_invite_retx: "6"
timer_invite_expires: “180”
sntp_mode: "directedbroadcast"
sntp_server: "10.10.1.10"
time_zone: "CST"
time_format_24hr: "1"
dst_offset: "1"
dst_start_month: "April"
dst_start_day: ""
dst_start_day_of_week: "Sun"
dst_start_week_of_month: "1"
dst_start_time: "2"
dst_stop_month: "Nov"
dst_stop_day: "1"
dst_stop_day_of_week: "Sunday"
dst_stop_week_of_month: ""
dst_stop_time: "2"
dst_auto_adjust: “1”
messages_uri: “*97”
http_proxy_addr: ""
http_proxy_port: 80
SIP-mac-address-here-.conf (sorry saving my finger typing/cutpasting)
proxy1_address: “10.10.1.10”
line1_name: "1001"
line1_shortname: "Eldon 1001"
line1_displayname: "Eldon 1001"
line1_authname: "1001"
line1_password: “bo11ocks”
line2_name: ""
line2_shortname: ""
line2_displayname: ""
line2_authname: "UNPROVISIONED"
line2_password: “UNPROVISIONED”
proxy_emergency: ""
proxy_emergency_port: "5060"
proxy_backup: ""
proxy_backup_port: "5060"
outbound_proxy: ""
outbound_proxy_port: “5060”
nat_enable: "0"
nat_address: ""
voip_control_port: "5060"
start_media_port: "16348"
end_media_port: "20134"
nat_received_processing: “0”
phone_label: "Eldon 1001’s Phone "
time_zone: PST
services_url: ""
directory_url: ""
logo_url: “”
telnet_level: "2"
phone_prompt: "Cisco7960"
phone_password: ""
enable_vad: "0"
network_media_type: "auto"
user_info: phone