Vikas Alathur has graciously submitted documentation on the configuration of
a Cisco ATA-186 with Asterisk. I would like someone to read over the
documentation of give some feedback. If all looks good, I will start
converting to DocBook this weekend and submit it to CVS.
One thing I am curious about though is that Vikas has submitted a sample
configuration. Should this be included? If so, how should we go about
that? I could probably take a screen shot, save it to the CVS then include
the picture in the book (I assume).
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">=0A=
<html>=0A=
=0A=
<title>Asterisk and ATA-186</title>=0A=
<body>=0A=
=0A=
<h1 align=3D"center">Asterisk / Cisco ATA186 mini-HOWTO</h1>=0A=
=0A=
=0A=
<h3 align=3D"left">Requirements</h3>=0A=
=0A=
<ol>=0A=
<li> =0A=
<p align=3D"left">A GNU/Linux machine running Asterisk from CVS =
</p>=0A=
</li>=0A=
<li> =0A=
<p align=3D"left">Cisco ATA186 with version 2.16.1 [<font =
size=3D"-1">Version:=0A=
v2.16.1 ata18x (Build 030709a)]</font> of the firmware </p>=0A=
</li>=0A=
</ol>=0A=
=0A=
<h3 align=3D"left">Configure the ATA186</h3>=0A=
=0A=
<p align=3D"left">Making some assumptions here:</p>=0A=
=0A=
<blockquote> </blockquote>=0A=
=0A=
<ol>=0A=
<li>Your ATA-186 is set to the IP address: 192.168.1.50 =
</li>=0A=
<li>Your Asterisk box is on the same network and is set to the IP: =
192.168.1.100 =0A=
</li>=0A=
=0A=
</ol>=0A=
=0A=
<blockquote> =0A=
<ol>=0A=
=0A=
</ol>=0A=
</blockquote>=0A=
=0A=
<p align=3D"left">If not, then make adjustments where necessary. For =
more information=0A=
on configuring the system go to <a=0A=
=
href=3D"http://www.cisco.com/univercd/cc/td/doc/product/voice/ata/">http:=
//www.cisco.com/univercd/cc/td/doc/product/voice/ata/</a>=A0=A0</p>=0A=
=0A=
<p align=3D"left">Connect your ATA186 to the network, power and two =
phones=0A=
as described in the instructions.=A0 As soon as the unit receives =
power:</p>=0A=
=0A=
<p> </p>=0A=
=0A=
<ol>=0A=
<li> Lift the handset (of Phone-1) and press the function (red =
light)=0A=
button on the ATA186 </li>=0A=
<li> Hear "configuration menu, enter menu number..."</li>=0A=
<li>Type: 322873738# =A0[Hint: 322873738 reads as FACTRESET]</li>=0A=
<li>Hear "to save press star, or press the pound key"</li>=0A=
<li>Press "*"</li>=0A=
<li>The red light will flash, device is now reset to defaults (you =
may=0A=
get a short ring)</li>=0A=
<li>Hang up the phone</li>=0A=
=0A=
</ol>=0A=
=0A=
<p>To set the IP address for your ATA-186</p>=0A=
=0A=
<ol>=0A=
<li>Pick up Phone-1</li>=0A=
<li>Press red button again</li>=0A=
<li>20# 0# 3 - this sets dhcp to "no"</li>=0A=
<li>1# 192*168*1*50 #3 - this sets the IP address (to =
192.168.1.50)</li>=0A=
<li>10# 255*255*255*0 #3 - this sets the netmask</li>=0A=
<li>Hang up the phone - the device will reset with new=0A=
IP address parameters</li>=0A=
=0A=
</ol>=0A=
=0A=
<p align=3D"left"><br>=0A=
Now for the actual configuration you will need a web browser.=A0 You =
could=0A=
set all these options via the keypad of a phone but that would be very =
tedious.=A0=0A=
So open a new browser window or another console and let's start.</p>=0A=
=0A=
<ol>=0A=
<li>Goto the URL <a =
href=3D"http://192.168.1.50/dev">http://192.168.1.50/dev</a> =0A=
</li>=0A=
<li>If you are asked for a password enter it. </li>=0A=
<li>You should now see a <b>Cisco ATA 186 Configuration</b> with =0A=
many colored boxes. </li>=0A=
<li>Have a look at <a href=3D"ata186.html">a sample ATA-186 =
configuration</a>=0A=
and configure your ATA box accordingly</li>=0A=
<li>Click the <b>Apply</b> button at the bottom of the page. </li>=0A=
=0A=
</ol>=0A=
=0A=
<p align=3D"left"><b>NOTE:</b> This configuration is safe if your =
Asterisk=0A=
Box and ATA186 are on a private/NAT network or are behind a firewall.=A0 =
If=0A=
this is not the case you should set a password in <b>UIpasswd</b> and use=0A=
more complex <b>UID </b>and <b>PWD</b> values.</p>=0A=
=0A=
<h3 align=3D"left">Configuring Asterisk</h3>=0A=
=0A=
<p align=3D"left">By now you should have Asterisk compiled and installed =
on=0A=
your machine.=A0 If this is not the case then go to <a=0A=
href=3D"http://www.asterisk.org">www.asterisk.org</a> and follow the =
documentation.=A0=0A=
Once that is done you are ready to continue here.</p>=0A=
=0A=
<ol>=0A=
<li> =0A=
<p align=3D"left">Open (/etc/asterisk/) sip.conf in your favorite =
editor=0A=
and make the following entries<br>=0A=
<br>=0A=
; ----- snip -----<br>=0A=
; SIP Configuration for Asterisk<br>=0A=
[general]<br>=0A=
; Port to bind to<br>=0A=
port =3D 5060<br>=0A=
; Address to bind to<br>=0A=
bindaddr =3D 0.0.0.0<br>=0A=
[1000]<br>=0A=
type=3Dfriend<br>=0A=
username=3D1000<br>=0A=
secret=3Dpassword1<br>=0A=
host=3D192.168.1.50<br>=0A=
;This is the context (in extensions.conf) that handles internal =
calls<br>=0A=
context=3Dinternal<br>=0A=
canreinvite=3Dyes<br>=0A=
dtmfmode=3Drfc2833<br>=0A=
[2000]<br>=0A=
type=3Dfriend<br>=0A=
username=3D2000<br>=0A=
secret=3Dpassword2<br>=0A=
host=3D192.168.1.50<br>=0A=
context=3Dinternal<br>=0A=
canreinvite=3Dyes<br>=0A=
dtmfmode=3Drfc2833<br>=0A=
; ----- snip -----<br>=0A=
<br>=0A=
</p>=0A=
</li>=0A=
<li> =0A=
<p align=3D"left">Edit (/etc/asterisk/) extensions.conf as =
follows:<br>=0A=
<br>=0A=
; ----- snip -----<br>=0A=
; Extensions configuration for Asterisk<br>=0A=
[general]<br>=0A=
static=3Dyes<br>=0A=
writeprotect=3Dyes<br>=0A=
[globals]<br>=0A=
; Define global variables here<br>=0A=
PHONE1=3DSIP/1000<br>=0A=
PHONE2=3DSIP/2000<br>=0A=
[internal]<br>=0A=
include =3D> local-sip<br>=0A=
[local-sip]<br>=0A=
exten =3D> 1000,1,Dial(${PHONE1},40,t)<br>=0A=
exten =3D> 1000,2,Hangup<br>=0A=
<br>=0A=
exten =3D> 2000,1,Dial(${PHONE2},40,t)<br>=0A=
exten =3D> 2000,2,Hangup<br>=0A=
; ----- snip -----</p>=0A=
</li>=0A=
<li> =0A=
<p align=3D"left">Restart the Asterisk server.<br>=0A=
# asterisk -vvvvvc</p>=0A=
</li>=0A=
=0A=
</ol>=0A=
=0A=
<P>=0A=
You should now be able to call `2000' from `1000' and the viceversa.<br>=0A=
=0A=
<HR>=0A=
=0A=
<P>=0A=
This document was inspired by:=0A=
=0A=
<P>=0A=
<b>Shawn L. Djernes'</b>=0A=
<a href=3D"http://www.djernes.org/~shawn/ata186.htm">Asterisk / ATA-186 =
HOWTO</a>=0A=
=0A=
<P>=0A=
<b>John Todd's</b>=0A=
<a href=3D"http://www.loligo.com/asterisk/">Asterisk pages</a>=0A=
=0A=
</body>=0A=
</html>=0A=
Posted: Thu Mar 25, 2004 2:09 pm Post subject: [Asterisk-doc] Asterisk / Cisco ATA186 mini-HOWTO
* conf? Couldn't that be added to the docbook as just text but formated
a special way so it stands out as a conf example?
On Thu, 2004-03-25 at 08:53, Leif Madsen wrote:
Quote:
One thing I am curious about though is that Vikas has submitted a sample
configuration. Should this be included? If so, how should we go about
that? I could probably take a screen shot, save it to the CVS then include
the picture in the book (I assume).
Posted: Fri Mar 26, 2004 1:59 pm Post subject: [Asterisk-doc] Asterisk / Cisco ATA186 mini-HOWTO
Looks good to me.
I haven't tested the config(s) but a read through shows that everything
is in order.
--Greg
On Thu, 25 Mar 2004 08:53:08 -0500, Leif Madsen wrote:
Quote:
Good morning everyone,
Vikas Alathur has graciously submitted documentation on the configuration of
a Cisco ATA-186 with Asterisk. I would like someone to read over the
documentation of give some feedback. If all looks good, I will start
converting to DocBook this weekend and submit it to CVS.
One thing I am curious about though is that Vikas has submitted a sample
configuration. Should this be included? If so, how should we go about
that? I could probably take a screen shot, save it to the CVS then include
the picture in the book (I assume).
Suggestions appreciated,
Leif Madsen.
-------------------------------------
Greg Varga
Author for RocketryNews
http://www.rocketrynews.com
CAR # 677
-------------------------------------
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum