<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Case &#187; addpac</title>
	<atom:link href="http://case.net.ru/tag/addpac/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sun, 29 Jan 2012 08:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>VoIP шлюз VoiceFinder AP200</title>
		<link>http://case.net.ru/2009/05/07/ap200/</link>
		<comments>http://case.net.ru/2009/05/07/ap200/#comments</comments>
		<pubDate>Thu, 07 May 2009 15:18:27 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[addpac]]></category>
		<category><![CDATA[ap200]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=501</guid>
		<description><![CDATA[VoIP шлюз VoiceFinder AP200 — многофункциональный и высокопроизводительный шлюз IP-телефонии, предназначенный для организации передачи голоса по сетям передачи данных (VoIP) и маршрутизации данных. VoiceFinder AP200 является идеальным решением для индивидуального использования и небольших компаний, имеющих территориально распределенную сеть офисов. Поддерживает функцию резервирования телефонной линии благодаря наличию интерфейса PSTN backup или порта FXO (в зависимости от [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://case.net.ru/wp-content/uploads/2009/05/ap200.jpg" alt="ap200" title="ap200" width="200" height="111" class="alignright size-full wp-image-503" />VoIP шлюз VoiceFinder AP200 — многофункциональный и высокопроизводительный шлюз IP-телефонии, предназначенный для организации передачи голоса по сетям передачи данных (VoIP) и маршрутизации данных. VoiceFinder AP200 является идеальным решением для индивидуального использования и небольших компаний, имеющих территориально распределенную сеть офисов. Поддерживает функцию резервирования телефонной линии благодаря наличию интерфейса PSTN backup или порта FXO (в зависимости от модели).</p>
<p>Настройки COM-порта:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">Speed (baud): 9600
Data bits: 8
Stop bits: 1
Parity: None
Flow control: None</pre></td></tr></table></div>

<p>Загрузка устройства:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">System Boot Loader, Version 2.4.2/DUAL(852)
Copyright (c) by AddPac Technology Co., Ltd. Since 1999.
&nbsp;
System Bootstrap, Version 1.2
Decompressing the image:
##############################################################[OK]
VoiceFinder Gateway Series (AP200)
Serial Number: AP200-03e804
32BIT RISC Processor With 16777216 Bytes System Memory
524288 Bytes System Flash Memory
2097152 Bytes 2nd System Flash Memory
&nbsp;
1 RS232 Serial Console Interface
2 Ethernet/IEEE 802.3 Interface
&nbsp;
AP200 System software Revision 8.23H
Released at Thu Dec 15 20:37:54 2006
Program is 1812900 bytes, checksum is 0xe84ee58
&nbsp;
Local Time : Thu May  7 11:48:58 2009
Copyright (c) by AddPac Technology Co., Ltd. Since 1999.
&nbsp;
Slot (0) Module type : FXS
&nbsp;
Interface ethernet0.0, changed state to UP
Voice Module Ready
DSP S/W download (0): .. OK
&nbsp;
The System is ready. Please login to system.
login:</pre></td></tr></table></div>

<p>Версия устройства:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200# show version
&nbsp;
VoiceFinder Gateway Series (AP200B)
Serial Number: AP200B-03e804
32BIT RISC Processor With 16777216 Bytes System Memory
524288 Bytes System Flash Memory
2097152 Bytes 2nd System Flash Memory
&nbsp;
1 RS232 Serial Console Interface
2 Ethernet/IEEE 802.3 Interface
&nbsp;
AP200B System software Revision 8.23H
Released at Thu Dec 15 20:37:54 2006
Program is 1812900 bytes, checksum is 0xe84ee58</pre></td></tr></table></div>

<p>Настройка порта LAN0:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200# configure terminal
AP200(config)# interface ether0.0
AP200(config-ether0.0)# ip address 172.16.127.180 255.255.255.0</pre></td></tr></table></div>

<p>Настройка DNS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# dns nameserver 172.16.127.1</pre></td></tr></table></div>

<p>Задаем роутер по умолчанию:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# route 0.0.0.0 0.0.0.0 172.16.127.1</pre></td></tr></table></div>

<p>Настройка NTP:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# ntp refresh 5
AP200(config)# ntp offset +04:00
AP200(config)# ntp server 69.36.240.252
AP200(config)# ntp server 87.236.24.2
AP200(config)# service ntp</pre></td></tr></table></div>

<p>Настройка SNMP:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# snmp community 0.0.0.0 public ro
AP200(config)# service snmpd</pre></td></tr></table></div>

<p>Отключение веб-интерфейса:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# no service http</pre></td></tr></table></div>

<p>Сохранение конфигурации:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200# write</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p><b>Задача: скопировать со шлюза конфигурацию и образ операционной системы APOS через FTP</b><br />
Включаем сервис ftp (по умолчанию включен):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# service ftp</pre></td></tr></table></div>

<p>Заходим ftp-клиентом и копируем файлы:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">$ lftp 172.16.127.180
lftp 172.16.127.180:~&gt; user root
Пароль:
lftp root@172.16.127.180:~&gt; set ftp:passive-mode off
lftp root@172.16.127.180:~&gt; ls
-rwxrwxrwx   1    noone  nogroup        0 May  7 2009 evtlog0.txt
-rwxrwxrwx   1    noone  nogroup        0 May  7 2009 evtlog1.txt
-rwxrwxrwx   1    noone  nogroup        0 May  7 2009 cmdlog0.txt
-rwxrwxrwx   1    noone  nogroup        0 May  7 2009 cmdlog1.txt
-rwxrwxrwx   1    noone  nogroup     1974 May  7 2009 config.cfg
-rwxrwxrwx   1    noone  nogroup  1812900 Dec 15 2006 ap200rom_v8_23H.bin
lftp root@172.16.127.180:/&gt; get config.cfg
1974 байта перемещены
lftp root@172.16.127.180:/&gt; get ap200rom_v8_23H.bin
1812900 байтов перемещено за 2 секунды (883.0Кб/с)
lftp root@172.16.127.180:/&gt; exit</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p><b>Задача: зарегистрировать порт FXS как SIP-пользователя на Asterisk&#8217;е</b></p>
<p>Добавляем пользователя в Asterisk&#8217;е (sip.conf):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">[204]
type = friend
host = dynamic
nat = no
context = phones
disallow = all
allow = alaw
username = 204
secret = password</pre></td></tr></table></div>

<p>Прописываем FXS-порт:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# dial-peer voice 204 pots
AP200(config-dialpeer-pots-1)# port 0/0
AP200(config-dialpeer-pots-1)# destination-pattern 204
AP200(config-dialpeer-pots-1)# user-password password</pre></td></tr></table></div>

<p>Прописываем еще один dial-peer для совершения звонка FXS -> Asterisk</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# dial-peer voice 205 voip
AP200(config-dialpeer-voip-2)# destination-pattern T
AP200(config-dialpeer-voip-2)# session target 172.16.127.1
AP200(config-dialpeer-voip-2)# session protocol sip
AP200(config-dialpeer-voip-2)# codec g711alaw</pre></td></tr></table></div>

<p>Прописываем SIP-сервер (для того что бы FXS-порт регистрировался на Asterisk&#8217;е и мог принимать входящии звонки)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# sip-ua
AP200(config-sip-ua)# sip-server 172.16.127.1
AP200(config-sip-ua)# register e164</pre></td></tr></table></div>

<p>Смотрим что получилось:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200# show sip
AP200# show dial-peer voice summary</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p><b>Задача: привязать порт FXS как SIP-пользователя на Asterisk&#8217;е (без регистрации)</b></p>
<p>Минимальный вариант. Для входящего звонка на шлюз прописываем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# dial-peer voice 204 pots
AP200(config-dialpeer-pots-204)# port 0/0
AP200(config-dialpeer-pots-204)# destination-pattern 204</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">[204]
type = friend
host = 172.16.127.180
nat = no
context = phones
disallow = all
allow = all
username = 204
secret = password</pre></td></tr></table></div>

<p>Для исходящего звонка:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# dial-peer voice 204 pots
AP200(config-dialpeer-pots-204)# user-password password</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cli" style="font-family:monospace;">AP200(config)# dial-peer voice 205 voip
AP200(config-dialpeer-voip-205)# destination-pattern T
AP200(config-dialpeer-voip-205)# session target 172.16.127.1
AP200(config-dialpeer-voip-205)# session protocol sip
AP200(config-dialpeer-voip-205)# codec g711alaw</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p>Cсылки:</p>
<ul>
<li><a href="http://www.addpac.su/ap200.htm">VoIP шлюз VoiceFinder AP200</a></li>
<li><a href="http://www.addpac.su/pstn_back_up.htm">Что такое интерфейс PSTN Back-up</a></li>
<li><a href="http://wiki.sipnet.ru/index.php/Общие_настройки_Addpac">Общие настройки Addpac</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/05/07/ap200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
