login | register
Tue 02 of Dec, 2008 [12:14 UTC]

voip-info.org

Cisco ATA 186 MGCP and Asterisk (HowTo)

Created by: dominig,Last modification on Tue 13 of Jun, 2006 [17:38 UTC]

ATA186 configuration.


The ATA configuration is well describded by Cisco you will find pointers on the following page
Asterisk phone cisco ATA18x

For a 5mn quick start, do the following :

Connect your ATA on the Ethernet, it will get an IP address via the DHCP. Look in your message log to see which IP adress has been allocated
Connect with a web browser on your adaptor http://the-ata-ip-address/dev to get access to the configuration.
Set EPID0orSID0: to aaln/1 ; This will be reused later in the asterisk configuration as the end point ID
Set EPID1orSID1: to aaln/2
Set Domain: to * ; the star "*" will force the ATA to use the Mac address as the domain section of the endpoint identifier (my config file assume that mode)
                                              ; default config is 0 and will force the user of the domain provided by the dhcp which is no good
                                              ; the point . is a valuable alternative and would force the ATA-IP as the the domain
Save your configuration.

You can see my ATA186 configuration in the joined file mgcp.ata186.conf.pdf

Image




/etc/asterisk/mgcp.conf

 ;
 ; MGCP Configuration for Asterisk
 ;
 [general]
 port = 2727             ; this is the default value provided by the Cisco ATA 186
                         ; dialog on the wrong port can be troubleshooted easily with ethereal (icmp invalid port)

 bindaddr = 0.0.0.0      ; Listen on any interface (a good idea to restric that one)

 disallow = all          ; The Codec list MUST be reduced by config or you will get an error 510 (protocol error)
 allow = ulaw            ; If this list includes Codec not listed in you ATA configuration under "CodecName:"
 allow = alaw            ; Your ATA will reject the Connect message from Asterisk (error 510 : protocol Error)
 allow = g723
 allow = g729

 [000e83e530ae]          ; Mac address of the ATA will be used as ID
                         ; in the ATA config "Domain" must be set to "*" to use MAC as ID.
                         ; The MAC address is pronted under your ATA

 host = 141.169.122.41   ; addresse of the ATA converter (often provided by DHCP)

 context = internal      ; Context where call coming from the ATA will be presented

 ;slowsequence = yes     ; Does not needed for the Cisco ATA186 (be ready to add it if you get problem)

 canreinvite = no        ; Force connection via the Asterisk server

 nat=no                  ; Be simple first add a NAT later if needed

 wcardep=*               ; Required to access some generic message (eg. RestartInProgress at ATA reboot)

 callerid="Ata186 Dominique 1" Ext1      ; Config for the line 1
 line => aaln/1
 callerid="Ata186 Dominique 2" Ext2      ; Config for line 2




/etc/asterisk/extension.conf

 
 [internal]                                ; As declared in /etc/mgcp.conf calls coming from the ATA will be presented with the context.
 ;
 include => emergency               ; ANY good numbering plan SHOULD have an entry for emergency services in any context.
 include => your-extra-context      ; Add here any context(s) that you need/want to

 ;integrate a MGCP Cisco ATA 186 (see related conf pdf)
 exten => 121,1,Dial(MGCP/aaln/1@000e83e530ae,45,o)          ; dial end point aaln/1 in MGCP Channel (see mgcp.conf) 000e83e530ae, rings to to 45s , pass the CallerID as received in the context.
 exten => 122,1,Dial(MGCP/aaln/2@000e83e530ae,45,o)          ; dial end point aaln/2

 ; For info I have added the dial command for a Cisco ATA186 configure in SIP mode.
 ;Integrate a SIP Cisco ATA 186 (see related conf.pdf)
 exten => 111,1,Dial(SIP/ata1-line1,45,o)                  
 exten => 112,1,Dial(SIP/ata1-line2,45,o)


You are done.


See Also


Cisco ATA 186 SIP and Asterisk - HowTo
Asterisk phone cisco ATA18x

Comments