спасибо большое. Настройки вроде были все правильные, не заработало пока не сделал erase и заново все не настроил
unknown ( 2012-04-27 11:46:59 +0400 )редактироватьПытаюсь подружить 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>
В сип дебаг пишет что не авторизован.
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 !
спасибо большое. Настройки вроде были все правильные, не заработало пока не сделал erase и заново все не настроил
unknown ( 2012-04-27 11:46:59 +0400 )редактироватьВ своем конфиге добавь в секции sip-ua user-register. В конфиге asterisk dtmfmode=rtp2833 Вообще и на этом форуме много рабочих конфигов по addpac (ap200, ap100, gs1002a,b,c ... - там все одно и и тоже).
Посмотри несколько постов вниз, человек настраивал аддпак, и я там свои конфиги кидал. У тебя много чего нет :)
http://case.net.ru/2009/05/07/ap200/ настраивал по этой инструкции, больше вроде и не надо
unknown ( 2012-04-26 10:06:59 +0400 )редактироватьЗадан: 2012-04-26 08:46:31 +0400
Просмотрен: 803 раз
Обновлен: Apr 26 '12
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.