2003-10-15 jtodd@loligo.com http://www.loligo.com/asterisk/ The following configurations were submitted by Carsten Foss as working configurations for Cisco 827-4v, which is an ADSL router with four FXS ports on the back. This configuration file demonstrates minimal configurations to get this router working with Asterisk, the open source PBX, using the SIP protocol, in a VoIP (Voice over IP) environment. ------- Test-Sip# Current configuration: ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname Test-Sip ! enable secret MySecretPassword ! ! ! ! ! ip subnet-zero ip domain round-robin ip domain-name acme.com ip name-server ns1.acme.com ip name-server ns2.acme.com ip name-server ns3.acme.com ! ! ! ! ! ! ! ! ! ! interface Ethernet0 ip address 10.169.12.165 255.255.255.240 ! interface ATM0 no ip address no atm ilmi-keepalive bundle-enable dsl operating-mode auto ! ip classless ip route 0.0.0.0 0.0.0.0 10.169.12.161 no ip http server ! ! voice-port 1 cptone DK ! voice-port 2 cptone DK ! voice-port 3 cptone DK ! voice-port 4 cptone DK ! dial-peer voice 1 pots destination-pattern 5111 port 1 ! dial-peer voice 10 voip ! The T at end of dest pattern mens , timeout for digits are 10 sec , ! or end digit selection with a # , so Cisco will wait for a # or 10 secs before ! sending dialstring , the pattern ".T" (The "." meaning any digit) acts like a"default gateway" for digits. ! destination-pattern .+T session protocol sipv2 session target sip-server codec g711alaw bytes 80 ! dial-peer voice 2 pots destination-pattern 5112 port 2 ! dial-peer voice 3 pots destination-pattern 5113 port 3 ! dial-peer voice 4 pots destination-pattern 5114 port 4 ! sip-ua retry invite 3 retry cancel 2 ! ! One can use the ip address or dns resolving , i prefer dns as i dont have to reconfigure my ciscos ! if i relocate my Asterisk to another segment: ! ! sip-server ipv4:10.169.12.170:5060 ! sip-server dns:asterisk.acme.com:5060 ! line con 0 transport input none stopbits 1 line vty 0 4 exec-timeout 120 0 password sip login ! scheduler max-task-time 5000 end Test-Sip# ; ; Cisco 827-4V and Asterisk SIP ; ; I cant seem to get dynamic to work with this version of IOS (No uid/pwd in sip-ua section) ; So i defined it as host ; Afaik there is SIP NAT issues in this version of IOS , it should have been solved in 12.2(11) , ; but that requires 32Mb Ram i Only hvae 24 in router. ; But Router acts fine with * , and i can even dial from pots port to pots port (Mini Switch) ; This is a neat small office box , with 4 voice ports ; Notice POTS/Voice Analog Ports set for .DK specifications ; Asterisk SIP Config (I just made for 5111 , and 5112 , notice host on same ip , Cisco knows what to do) [5111] type=friend username=5111 ;secret= ;mailbox=4563 ;host=dynamic ;host=10.169.13.149 host=10.169.12.165 context=intern ;reinvite=yes canreinvite=yes ;dtmfmode=rfc2833 dtmfmode=inband nat=yes [5112] type=friend username=5112 ;secret= ;mailbox=4563 ;host=dynamic ;host=10.169.13.149 host=10.169.12.165 context=intern ;reinvite=yes canreinvite=yes ;dtmfmode=rfc2833 dtmfmode=inband nat=yes Cisco IOS VErsion & MEM info Cisco Internetwork Operating System Software IOS (tm) C820 Software (C820-V6Y6-M), Version 12.1(3)XG3, EARLY DEPLOYMENT RELEA SE SOFTWARE (fc1) TAC:Home:SW:IOS:Specials for info Copyright (c) 1986-2000 by cisco Systems, Inc. Compiled Wed 20-Dec-00 18:14 by detang Image text-base: 0x80013170, data-base: 0x807265E8 ROM: System Bootstrap, Version 12.1(1r)XB1, RELEASE SOFTWARE (fc1) ROM: C820 Software (C820-V6Y6-M), Version 12.1(3)XG3, EARLY DEPLOYMENT RELEASE S OFTWARE (fc1) Test-Sip uptime is 12 hours, 18 minutes System returned to ROM by power-on System image file is "flash:c820-v6y6-mz.121-3.XG3" CISCO C827-4V (MPC855T) processor (revision 0x502) with 23552K/1024K bytes of me mory. Processor board ID JAD04510563 (3296814163), with hardware revision 0000 CPU rev number 5 Bridging software. 4 POTS Ports 1 Ethernet/IEEE 802.3 interface(s) 1 ATM network interface(s) 128K bytes of non-volatile configuration memory. 8192K bytes of processor board System flash (Read/Write) Configuration register is 0x2102