Jump to content
Калькуляторы

ADDPAC GS1004 + Elastix Городские входящие вызовы.

Здравствуйте.

Существует VOIP телефония, шлюзом выступает ADDPAC GS1004, на него идет 2 городских линии + 3 симкарты. Работает транк на elastix.

 

Конфигурация AddPac'а:

!
! APOS(tm) configuration saved from vty
!  2014/04/15 08:59:59 
!
version 8.51.007
!
hostname GS1004
!
username root password router administrator
!
!
script ntpdate default
server ip 3.ru.pool.ntp.org
server ip 1.ru.pool.ntp.org
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.110.125 255.255.255.0
speed auto
no qos-control
!
!
!
ftp server
http server
!
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 local-ringback-tone 
no call-barring unconfigured-ip-address
no voip-inbound-call-barring enable
! 
! 
! Voice port configuration. 
! 
! FXO 
voice-port 0/0 
connection plar 12345
caller-id enable 
caller-id name disable
! 
! 
! FXO 
voice-port 0/1 
connection plar 12345
caller-id enable 
caller-id name disable
! 
! 
! FXO 
voice-port 0/2 
connection plar 12345
caller-id enable 
caller-id name disable
! 
! 
! FXO 
voice-port 0/3 
no caller-id enable 
! 
! 
! GSM 
voice-port 1/0 
no caller-id enable 
! 
! 
! GSM 
voice-port 1/1 
caller-id enable 
caller-id name disable
! 
! 
! GSM 
voice-port 1/2 
caller-id enable 
caller-id name disable
! 
! 
! GSM 
voice-port 1/3 
caller-id enable 
caller-id name disable
! 
! 
! 
! 
! service port group configuration. 
! 
! 
! 
! Pots peer configuration. 
! 
dial-peer voice 2 pots
destination-pattern 4T 
port 1/1 
user-name мобильный номер
user-password password
translate-outgoing called-number 4 
! 
dial-peer voice 3 pots
destination-pattern 3T 
port 1/2 
user-name мобильный номер
user-password password 
translate-outgoing called-number 3 
! 
dial-peer voice 4 pots
destination-pattern 2T 
port 1/3 
user-name мобильный номер 
user-password password 
translate-outgoing called-number 2 
! 
dial-peer voice 5 pots
destination-pattern T 
port 0/0 
user-name 12345 
user-password password 
translate-outgoing called-number 1 
! 
! 
! 
! Voip peer configuration. 
! 
dial-peer voice 1 voip 
destination-pattern T 
session target sip-server  
session protocol sip 
codec g711alaw 
vad
dtmf-relay dual-mode 
! 
! 
! 
dial-peer call-hold h 
dial-peer call-transfer h 
! 
! 
! 
gatekeeper
! 
! 
! Gateway configuration. 
! 
gateway 
h323-id voip.192.168.110.125 
no ignore-msg-from-other-gk 
! 
! 
! Codec classes configuration. 
! 
voice class codec 0 
! 
! 
! 
! Translation Rule configuration. 
! 
translation-rule 1 
rule 1      T                        T                                
! 
translation-rule 2 
rule 2      2T                       T                                
! 
translation-rule 3 
rule 3      3T                       T                                
! 
translation-rule 4 
rule 4      4T                       T                                
! 
! 
! 
! SIP UA configuration. 
! 
sip-ua 
user-register 
sip-server 192.168.110.220 
call-transfer-mode attended 
remote-party-id 
register e164 
! 
! 
! Tones 
!
! 
! 
! 
! SMTP sendmail configuration 
! 
sms-delivery 
! 
! 
!
line console
!
line vty
!
gsm dev-restart-by-unreg 300
!
gsm 1/0
sms-language utf8
!
gsm 1/1
sim pin 6016
sms-language utf8
!
gsm 1/2
sim pin 0000
sms-language utf8
!
gsm 1/3
sim pin 0270
sms-language utf8
!

Все звонки sip-телефонии перенаправляются нормально с телефона на AddPac на городскую и мобильную линии, при входящих звонках на мобильные номера перенаправляется на Elastix. А вот на городской если звонят, перенаправляются номера только мобильных операторов. Все звонки с городского номера на наш городской номер остаются на ADDPAC'е. Что не так делаю?

 

Лог звонков AddPac:

142> Apr 15 11:02:28   outgoing              12345              12345 sip:12345@192.168.:192.168.110.220  Apr 15 11:01:41    47 Remote:CallClear                                   
<   141> Apr 15 10:49:16   outgoing              12345              12345 sip:12345@192.168.:192.168.110.220  Apr 15 10:46:15   181 Remote:CallClear                                   
<   140> Apr 15 10:37:01  incomming              12345              54321              12345:192.168.110.220  Apr 15 10:36:02    59 Remote:CallClear                                   
<   139> Apr 15 10:24:25  incomming              12345              54374              12345:192.168.110.220  Apr 15 10:23:45    40 Remote:CallClear                                   
<   138> Apr 15 10:21:50   outgoing              12345              12345 sip:12345@192.168.:192.168.110.220  Apr 15 10:20:47    63 Remote:CallClear                                   
<   137> Apr 14 20:17:04   outgoing              12345              12345 sip:12345@192.168.:192.168.110.220  Apr 14 20:16:55     9 Remote:CallClear                                   
<   136> Apr 14 19:03:21  incomming              12345              54321              12345:192.168.110.220                      0 Remote:CallClear                                   
<   135> Apr 14 18:11:35  incomming              12345              54321              12345:192.168.110.220  Apr 14 18:08:59   156 Remote:CallClear    

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this