Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

ap 200 и asterisk

0

Пытаюсь подружить addpack c астериском, но ни как не проходит авторизация. У адпака два порта fxs, пытаюсь настроить каждый порт как отдельного пользователя астериск. Вот настройки адпака

 sh run
    !
    version 8.237
    !
    hostname AP200
    !
    !
    no bridge spanning-tree
    !
    ip route-cache
    !
    proxy-arp
    !
    dhcp-list 1 type server 
    dhcp-list 1 address server  10.1.1.2 10.1.1.126 255.255.255.128
    !
    nat-list 0 pat address 10.0.30.37
    !
    no ip-share enable
    ip-share interface net-side ether0.0
    ip-share interface local-side ether1.0
    !
    nsupdate nameserver xxx.xxx.xxx.xxx
    !             
    interface ether0.0
     ip address 10.0.30.37 255.255.255.248
    !
    interface ether1.0
     ip address 192.168.0.1 255.255.255.0
     ip nat-group 0 pat ether0.0 
    !
    snmp name AP200B 
    !
    no arp reset
    !
    route 0.0.0.0 0.0.0.0 10.0.30.38
    !
    dnshost  domain 
    dnshost  nameserver 8.8.8.8
    !
    no service httpd
    !
    ! 
    ! 
    !             
    ! 
    ! VoIP configuration. 
    ! 
    ! 
    ! Voice service voip configuration. 
    ! 
    voice service voip 
     fax protocol t38 redundancy 0 
     fax rate 9600 
     h323 call start fast 
     h323 call tunnel enable 
     timeout tttl 30 
     announcement language english 
     announcement element delayed-dial 
     announcement element wrong-number 
     announcement element pstn-reroute 
     announcement element all-lines-busy 
     announcement element connection-fail 
     busyout monitor gatekeeper 
     no busyout monitor callagent 
     busyout monitor voip-interface 
    !             
    ! 
    ! Voice port configuration. 
    ! 
    ! FXS 
    voice-port 0/0 
    ! 
    ! 
    ! FXS 
    voice-port 0/1 
    ! 
    ! 
    voice service voip 
     minimize-voip-port multiply 1 
    ! 
    ! Pots peer configuration. 
    ! 
    dial-peer voice 100 pots
    ! 
    dial-peer voice 2008 pots
     destination-pattern 2008 
     port 0/0 
     user-password 123 
    ! 
    ! 
    ! 
    ! Voip peer configuration. 
    ! 
    dial-peer voice 300 voip 
     destination-pattern T 
     session target xxx.xxx.xxx.xxx  
     session protocol sip 
     codec g711alaw 
     dtmf-relay rtp-2833 
     no vad
     description "Connect_to_Asterisk" 
    ! 
    ! 
    ! 
    ! 
    ! 
    !             
    ! Gateway configuration. 
    ! 
    gateway 
     h323-id ap200-4 
    ! 
    ! 
    ! SIP UA configuration. 
    ! 
    sip-ua 
     sip-server xxx.xxx.xxx.xxx 
     register e164 
    ! 
    ! 
    ! MGCP configuration. 
    ! 
    mgcp 
     codec  g711ulaw 
    ! 
    ! 
    ! Tones

астериск

[2008]
type=friend
context=out.
host=dynamic
dtmfmode=inband
disallow=all
allow=alaw.
language=ru
deny=0.0.0.0/0
permit=10.0.30.37
call-limit=1
nat=no
username=2008
secret=123
callerid='' <2008>

В сип дебаг пишет что не авторизован.

удалить закрыть спам изменить тег редактировать

спросил 2012-04-26 08:46:31 +0400

unknown Gravatar unknown
179 27 1 16

3 Ответа

1

C рабочего ap200

! Voice port configuration.
!
! FXS
voice-port 0/0
!
!
!
voice service voip
 minimize-voip-port multiply 1
!
! Pots peer configuration.
!
dial-peer voice 20 pots
 destination-pattern 2008 
 port 0/0
 user-password 123

!
!
! Voip peer configuration.
!
dial-peer voice 100 voip

 destination-pattern .T
 session target sip-server
 session protocol sip
 codec g711alaw
 dtmf-relay rtp-2833
 no vad
 huntstop
 fax protocol bypass
 fax rate 9600

! SIP UA configuration.
!
sip-ua
 user-register
 sip-server xx.xxx.xx.xx
 timeout tregtry 100
 register e164
!
ссылка удалить спам редактировать

ответил 2012-04-26 14:11:57 +0400

gwein Gravatar gwein
267 7 1 11

Comments

спасибо большое. Настройки вроде были все правильные, не заработало пока не сделал erase и заново все не настроил

unknown ( 2012-04-27 11:46:59 +0400 )редактировать
1

В своем конфиге добавь в секции sip-ua user-register. В конфиге asterisk dtmfmode=rtp2833 Вообще и на этом форуме много рабочих конфигов по addpac (ap200, ap100, gs1002a,b,c ... - там все одно и и тоже).

ссылка удалить спам редактировать

ответил 2012-04-26 21:02:04 +0400

Master135 Gravatar Master135
431 1 3 10
0

Посмотри несколько постов вниз, человек настраивал аддпак, и я там свои конфиги кидал. У тебя много чего нет :)

ссылка удалить спам редактировать

ответил 2012-04-26 08:59:47 +0400

asdev Gravatar asdev flag of Ukraine
244 21 6 15

Comments

http://case.net.ru/2009/05/07/ap200/ настраивал по этой инструкции, больше вроде и не надо

unknown ( 2012-04-26 10:06:59 +0400 )редактировать

Ну раз не надо - значит всё работает.

zzuz ( 2012-04-26 10:29:20 +0400 )редактировать

Ваш ответ

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[скрыть предварительный просмотр]

Закладки и информация

Добавить закладку

подписаться на rss ленту новостей

Статистика

Задан: 2012-04-26 08:46:31 +0400

Просмотрен: 724 раз

Обновлен: Apr 26 '12

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.