Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6396083pxu; Thu, 24 Dec 2020 00:50:27 -0800 (PST) X-Received: by 2002:a50:875b:: with SMTP id 27mr28400004edv.24.1608799587323; Thu, 24 Dec 2020 00:46:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvnXIchoknHDwVPcwskEkuacH50Xg6kuyXwYWLYGKSY5MMu5yFieD6MX7eSLtiGYPonJdA X-Received: by 2002:a50:875b:: with SMTP id 27mr28399919edv.24.1608799585193; Thu, 24 Dec 2020 00:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608799585; cv=none; d=google.com; s=arc-20160816; b=UXJRm8Q6bKmeOeU17MmIH1m/Z3fMDxHG/o0+bJhWUJZX3TRKt9RfXYarX/IeUAspFE vac+Z5tTewABQsKjKYZO0PPnfFggGjte2PBuM6reFwFlm+jpj5EaVlP5uKu++qm38v0b 4Lw8J+3l5TyQL0yBSdKs7OzIbTBuuiemfO/ntjKXL2+6cxVi8o2LordlWKvr3VhsGAvf pdFXRgx4qPxB47Tlg1E/n44z3ue+BnAWeaikCfvRhYYeKbhLYz0IqQvcQOglGUg1K6Fx dXnuJB4H5bxake6CeRu6QnbfdHyeIjx174EqB1eivf4SoTTFOgpZMc6SBmHLirwmEdFu nSfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:message-id :subject:cc:to:from:date:mime-version; bh=hxmwDslCR3Vcmhcxsmvjq7ZTMa+Nz3MKqEEThXUFjU4=; b=UYJCiBwaft8lgXlk3ytwMDoshKBv9kKHqhuSRf3U+nLW3SAFfqBexa9mLce49Uk23l 7iJqr6gXsx27nZaDmH2I6ustonDqVs23zhHn7EeP10PDmu3kaE5CqMSvVOzVIFTHkD83 BtVCczDz2XgZxmOwU2Hfu6EN3Y64hxaMaO8AQprHFIc2i6i4/mCXcIjxR9Zn5a0pjoEd IOLJGW4AciQoYHpl/Lm8hHivzlIeZo93fcSAgqE8yIwpDFZMr3Nm0Vt0jjUg5jodNIz4 VKqCpZ6MZ+GUCwAj7DCCOjFqogZai2TNCkxCmz1cMcq70lp+xUhJFgG4krF6/svAT9+1 psng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=teo-en-ming.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si13338536ejr.562.2020.12.24.00.46.01; Thu, 24 Dec 2020 00:46:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=teo-en-ming.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbgLXInQ (ORCPT + 99 others); Thu, 24 Dec 2020 03:43:16 -0500 Received: from ec2-3-21-30-127.us-east-2.compute.amazonaws.com ([3.21.30.127]:42196 "EHLO www.teo-en-ming.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbgLXInQ (ORCPT ); Thu, 24 Dec 2020 03:43:16 -0500 Received: from localhost (localhost [IPv6:::1]) by www.teo-en-ming.com (Postfix) with ESMTPA id 2E4AA414E06; Thu, 24 Dec 2020 16:42:32 +0800 (+08) MIME-Version: 1.0 Date: Thu, 24 Dec 2020 16:42:32 +0800 From: Turritopsis Dohrnii Teo En Ming To: linux-kernel@vger.kernel.org Cc: ceo@teo-en-ming-corp.com Subject: Teo En Ming's Guide to Configuring Asterisk/FreePBX with Cisco 7960 IP Phones Message-ID: <1aa82a4137514f65d417a47a57483bc0@teo-en-ming.com> X-Sender: ceo@teo-en-ming.com User-Agent: Roundcube Webmail/1.2.3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Subject: Teo En Ming's Guide to Configuring Asterisk/FreePBX with Cisco 7960 IP Phones Author: Mr. Turritopsis Dohrnii Teo En Ming (TARGETED INDIVIDUAL) Country: Singapore Date: 24 December 2020 Thursday Singapore Time Type of Publication: Plain Text Document version: 20201224.01 ====================================================================================================================================================================== System Information ================== My Asterisk version: 16.13.0 My FreePBX version: 15.0.16.81 On 7 December 2020, I was able to get Bria softphone to work with my Asterisk PBX server successfully (PJSIP extension). On 19 December 2020, I bought a refurbished Cisco CP-7960G IP hardphone for SGD$30 in Singapore. TFTP works. My DHCP server in my pfSense firewall applaince is able to assign my Cisco 7960 IP phone with an IP address with DHCP option 66 (TFTP server). My Cisco 7960 IP phone is able to connect to my TFTP server on my Asterisk PBX appliance and download firmware and configuration files successfully. On 24 December 2020 Thursday Christmas Eve, I have finally managed to get my Cisco 7960 IP phone to register on my Asterisk PBX server ***successfully***. This is an ***OLD AND OUTDATED*** video of my Cisco 7960 IP phone: https://www.youtube.com/watch?v=ip_F08jmmio I will publish new and updated Youtube video of my Cisco 7960 IP phone ***in the future***. BEGINNING OF THIS GUIDE ======================= Reference Guide: Configure Asterisk with Cisco IP Phones Link: http://docshare02.docshare.tips/files/6706/67061980.pdf SECTION 1: INSTALLING TFTP SERVER ON ASTERISK PBX APPLIANCE =========================================================== Putty/ssh into Teo En Ming's Asterisk VoIP IP PBX SIP Server at 192.168.1.9. # yum install tftp-server Package tftp-server-5.2-23.8.sng7.x86_64 already installed and latest version # chkconfig xinetd on # chkconfig tftp on # systemctl start tftp.service # ps -ef | grep tftp root 3424 1 0 11:17 ? 00:00:00 /usr/sbin/in.tftpd -s /tftpboot SECTION 2: DOWNLOADING CISCO 7960 IP PHONE SIP FIRMWARE ======================================================= # cd /tftpboot # wget http://www.firewall.cx/downloads/cisco-tools-a-applications/cisco-ip-phone-a-ata-firmware-downloads/107-7940-a-7960-ip-phone-sccp-a-sip/file.html # mv file.html file.zip # unzip file.zip # cd 7940_7960/ # cd SIP/ # tar -xf P0S3-8-12-00.tar # rm P0S3-8-12-00.tar # mv * /tftpboot/ # cd /tftpboot/ [root@freepbx tftpboot]# ls 7940_7960 file.zip OS79XX.TXT P003-8-12-00.bin P003-8-12-00.sbn P0S3-8-12-00.loads P0S3-8-12-00.sb2 SECTION 3: CREATING CISCO 7960 IP PHONE CONFIGURATION FILES =========================================================== # nano OS79XX.TXT (Create configuration file) ============================================= P003-8-12-00 # nano XMLDefault.cnf.xml (Create configuration file) ===================================================== 2000 2427 2428 P0S3-8-12-00 P0S3-8-12-00 SIP45.8-4-2S SIP45.8-4-2S SIP70.8-0-3S # nano SIPDefault.cnf (Create configuration file) ================================================= image_version: "P0S3-8-12-00" proxy1_address: "192.168.1.9" # 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: "192.168.1.9" 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: "time-a-g.nist.gov" time_zone: "8" time_format_24hr: "0" dst_offset: "0" 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: "*99" services_url: "http://example.domain.ext/services/menu.xml" directory_url: "http://example.domain.ext/services/directory.php" logo_url: "http://example.domain.ext/imagename.bmp" http_proxy_addr: "" http_proxy_port: "" remote_party_id: 0 # nano dialplan.xml (Create configuration file) ===============================================