| Код: |
| Current configuration: ! version 8.51.002 ! hostname GS1002 clock timezone EST+2 ! username **** username **** ! interface Loopback0 ip address 127.0.0.1 255.0.0.0 ! interface FastEthernet0/0 ip address 10.5.5.252 255.255.255.0 speed auto no qos-control ! interface FastEthernet0/1 ip address 192.168.10.1 255.255.255.0 speed auto no qos-control ! ip route 0.0.0.0 0.0.0.0 10.5.5.1 10 ! http server ! dns name-server 10.5.5.1 dns name-server 8.8.8.8 logging command logging event 4-warning logging on ! ! VoIP configuration. ! ! Voice service voip configuration. ! voice service voip protocol sip dtmf-relay out-of-band fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable no call-barring unconfigured-ip-address no voip-inbound-call-barring enable ! ! Voice port configuration. ! ! GSM voice-port 0/0 connection plar 881 ring detect-timeout 40 caller-id enable caller-id type etsi ! ! GSM voice-port 0/1 connection plar 882 ring detect-timeout 40 caller-id enable caller-id type etsi ! ! service port group configuration. ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern T port 0/0 huntstop ! dial-peer voice 2 pots destination-pattern T port 0/1 huntstop ! ! Voip peer configuration. ! dial-peer voice 100 voip destination-pattern T session target sip-server session protocol sip voice-class codec 0 no vad dtmf-relay rtp-2833 ! dial-peer call-hold h dial-peer call-transfer h ! gatekeeper ! ! Gateway configuration. ! gateway h323-id voip.10.5.5.252 ignore-msg-from-other-gk ! ! Codec classes configuration. ! voice class codec 0 codec preference 1 g711alaw codec preference 2 g711ulaw codec preference 3 g729 codec preference 4 g7231r53 codec preference 5 g726r16 codec preference 6 g726r32 ! ! SIP UA configuration. ! sip-ua user-register sip-server 10.5.5.253 5060 126 register e164 ! ! Tones ! line console ! line vty ! gsm dev-restart-by-unreg 300 ! gsm 0/0 sms-language utf8 ! gsm 0/1 sms-language utf8 ! end |
а вот настройки астериска:
sip.conf
| Код: |
| [addpac] username=addpac type=friend context=dph secret=****** dtmfmode=auto qualify=yes host=10.5.5.252 allow=all [881] type=friend context=dph dtmfmode=auto host=10.5.5.252 [882] type=friend context=dph dtmfmode=auto host=10.5.5.252 |
extensions.conf
| Код: |
| [dph] .... exten => 881,1,Dial(SIP/110,120) exten => 881,n,HangUp() ... |
При этом я звоню на номер карточки, которая вставлена в порт 0/0 и просто слышу длинные гудки, то есть никто не снимает трубку. По логам астера видно, что звонок до него (до астера) даже не доходит. Попытки включить дебаг на addpac'e ни к чему не приводят. То есть звонок просто зависает на адпаке и дальше никуда не переводиться.
Помогите решить проблему. Заранее спасибо.
_________________
"Все говорят, что у меня /dev/hands кривой и я всё делаю через /dev/ass. А у меня этих файлов вообще нет!"
| Цитата: |
| ! Pots peer configuration. ! dial-peer voice 0 pots destination-pattern T port 0/0 user-name user-password translate-outgoing called-number 0 ! |