Добрый день. Сразу скажу что столкнулся с этим впервые.Передо мной стоит задача связать 2 устройства addpac 1004 и ip office 500 v2 через sip, в addpac'е стоит 4 симки каждая из которых предназначена для групп телефонов или префиксов (8950, 8920 и т.д) ,необходим алгоритм чтобы при занятой 1 симке звонок переводился на вторую (на втором голосом порте) если и та занята то возвращял сигнал о недоступности ip offic'у -> городская линия у остальных симок сразу после занятости должен быть перевод на гор линию. Столкнулся в процессе с проблемами:
1) при звонке в GSM при занятой симке раньше срабатывал dial-peer hunt стоял 7 sequince (как я понял это поочередный перебор свободный портов) и звонок мог быть совершен с любой из симок если нужная была занята я отключил dial-peer hunt теперь форвардинг происходит как надо , вопрос в том как релизовать схему когда первая симка занята чтобы аддпак направлял вызов на вторую (я так понимаю что без dial peer hunt этого сделать не получиться).
2) Звонки при занятых симках не переводятся на город т.е. addpac не переводиит вызов на ip office.
3) При занятой симке на addpac в трубке нет никаких гудков (возможно их настроить?).
Заранее спасибо.
Код:
!
! APOS(tm) configuration saved from vty
! 2012/08/02 15:30:13
!
version 8.51.004
!
hostname GS1004
!
username **** password **** administrator
username **** password **** user
!
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.1.210 255.255.255.0
speed auto
no qos-control
!
ip route 0.0.0.0 0.0.0.0 192.168.1.202 10
!
!
telnet port ****
!
http server
!
dns name-server 192.168.1.202
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
busyout monitor sip-server
busyout monitor voip-interface
no call-barring unconfigured-ip-address
no voip-inbound-call-barring enable
!
!
! Voice port configuration.
!
! GSM
voice-port 1/0
connection plar 10100
caller-id enable
!
!
! GSM
voice-port 1/1
connection plar 10101
caller-id enable
!
!
! GSM
voice-port 1/2
connection plar 10102
caller-id enable
!
!
! GSM
voice-port 1/3
connection plar 10103
caller-id enable
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 3048 pots
destination-pattern T
port 1/0
no register e164
!
dial-peer voice 3049 pots
destination-pattern T
port 1/1
no register e164
!
dial-peer voice 3050 pots
destination-pattern T
port 1/2
no register e164
!
dial-peer voice 3051 pots
destination-pattern T
port 1/3
no register e164
!
dial-peer voice 4584 pots
destination-pattern 8961*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4585 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4586 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4587 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4588 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4589 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4590 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4591 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4592 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4593 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4594 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4595 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4596 pots
destination-pattern 8960*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4597 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4598 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4599 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4600 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4601 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4602 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4603 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4604 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4605 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4606 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4607 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4608 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4609 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4610 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4611 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4612 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4613 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4614 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4615 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4616 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4617 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4618 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4619 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4620 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4621 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4622 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4623 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4624 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4625 pots
destination-pattern 8906*******
port 1/0
no register e164
translate-outgoing called-number 300
!
dial-peer voice 4626 pots
destination-pattern 8903T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4627 pots
destination-pattern 8905T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4628 pots
destination-pattern 8906T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4629 pots
destination-pattern 8909T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4630 pots
destination-pattern 8960T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4631 pots
destination-pattern 8961T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4632 pots
destination-pattern 8962T
port 1/1
no register e164
translate-outgoing called-number 301
huntstop
!
dial-peer voice 4633 pots
destination-pattern 8900T
port 1/2
no register e164
translate-outgoing called-number 302
huntstop
!
dial-peer voice 4634 pots
destination-pattern 8951T
port 1/2
no register e164
translate-outgoing called-number 302
huntstop
!
dial-peer voice 4635 pots
destination-pattern 8904T
port 1/2
no register e164
translate-outgoing called-number 302
huntstop
!
dial-peer voice 4636 pots
destination-pattern 8950T
port 1/2
no register e164
translate-outgoing called-number 302
huntstop
!
dial-peer voice 4637 pots
destination-pattern 8908T
port 1/2
no register e164
translate-outgoing called-number 302
huntstop
!
dial-peer voice 4638 pots
destination-pattern 8952T
port 1/2
no register e164
translate-outgoing called-number 302
huntstop
!
dial-peer voice 4639 pots
destination-pattern 8929T
port 1/3
no register e164
translate-outgoing called-number 303
huntstop
!
dial-peer voice 4640 pots
destination-pattern 8920T
port 1/3
no register e164
translate-outgoing called-number 303
huntstop
!
dial-peer voice 4641 pots
destination-pattern 8930T
port 1/3
no register e164
translate-outgoing called-number 303
huntstop
!
!
!
! Voip peer configuration.
!
dial-peer voice 10100 voip
destination-pattern T
session target ip 192.168.1.200 5060
session protocol sip
voice-class codec 0
no vad
dtmf-relay info
translate-outgoing called-number 10100
!
dial-peer voice 10101 voip
destination-pattern T
session target ip 192.168.1.200 5060
session protocol sip
voice-class codec 0
no vad
dtmf-relay info
translate-outgoing called-number 10101
!
dial-peer voice 10102 voip
destination-pattern T
session target ip 192.168.1.200 5060
session protocol sip
voice-class codec 0
no vad
dtmf-relay info
translate-outgoing called-number 10102
!
dial-peer voice 10103 voip
destination-pattern T
session target ip 192.168.1.200 5060
session protocol sip
voice-class codec 0
no vad
dtmf-relay info
translate-outgoing called-number 10103
!
!
!
dial-peer call-hold h
dial-peer call-transfer h
!
voice hunt user-busy
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
h323-id 208
no ignore-msg-from-other-gk
shutdown
!
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g729
codec preference 2 g711alaw
!
!
!
! Translation Rule configuration.
!
translation-rule 10100
rule 0 T %01%99
!
translation-rule 10101
rule 0 T %01%99
!
translation-rule 10102
rule 0 T %01%99
!
translation-rule 10103
rule 0 T %01%99
!
!
!
! SIP UA configuration.
!
sip-ua
sip-server 192.168.1.200 5060 126
call-transfer-mode attended
!
!
! Tones
!
!
!
!
! SMTP sendmail configuration
!
sms-delivery
!
!
!
line console
!
line vty
!
gsm dev-restart-by-unreg 300
!
gsm 1/0
sim pin ****
sms-language utf8
!
gsm 1/1
sim pin ****
sms-language utf8
!
gsm 1/2
sim pin ****
sms-language utf8
!
gsm 1/3
sim pin ****
sms-language utf8
!