Добрый день. Проблема. Есть AddPac 1002C. 2 порта GSM, 2 порта FXO. Оба pots имеют разные пиры на астериске. При звонках исходящие четко уходят на свой пир. А при входящих все попадают на тот пир, который первй зарегестрирован на астериске.
Разницы нет приходит звонок с FXO или GSM.
В моем случае это fxo. В результате для каждого пира лимит звонков = 2. При занятом первом пире, остальные входящие поступающие на второй пир отбрасываются с сообщением превышен call-limit.
Вот конфигурация AddPac
! 
! Voice port configuration. 
! 
! GSM 
voice-port 0/0 
 connection plar 202 
 caller-id enable 
! 
! 
! GSM 
voice-port 0/1 
 connection plar 203 
 caller-id enable 
! 
! 
! FXO 
voice-port 0/2 
 input gain 9 
 output gain 9 
 connection plar 200 
 high-dtmf-gain  -15 
 caller-id enable 
 caller-id type etsi 
! 
! 
! FXO 
voice-port 0/3 
 input gain 9 
 output gain 9 
 connection plar 201 
 high-dtmf-gain  -15 
 caller-id enable 
 caller-id type etsi 
! 
! 
! 
! 
! service port group configuration. 
! 
! 
! 
! Pots peer configuration. 
! 
dial-peer voice 0 pots
 destination-pattern [78]9.........F 
 port 0/0 
 user-name peer-ap1002-gsm 
 user-password 1234zxcv 
 preference 1
! 
dial-peer voice 1 pots
 destination-pattern [78]9.........F 
 port 0/1 
 user-name peer-ap1002-gsm 
 user-password 1234zxcv 
 preference 1
! 
dial-peer voice 2 pots
 destination-pattern 123T 
 port 0/2 
 user-name peer-ap1002-fxo 
 user-password 1234zxcv 
 translate-outgoing called-number 1 
 preference 2
! 
dial-peer voice 3 pots
 destination-pattern 123T 
 port 0/3 
 user-name peer-ap1002-fxo 
 user-password 1234zxcv 
 translate-outgoing called-number 2 
 preference 2
! 
! 
! 
! Voip peer configuration. 
! 
dial-peer voice 300 voip 
 destination-pattern T 
 session target sip-server  
 session protocol sip 
 voice-class codec 0 
 no vad
 dtmf-relay rtp-2833 
 fax protocol t38 redundancy 0 
 fax rate 9600 
! 
! 
! 
! 
! SIP UA configuration. 
! 
sip-ua 
 user-register 
 sip-server 192.168.4.1 
 register e164 
 hook-flash-info-ignore 
! 
Вот конфигурация обоих пиров на asterisk.
[peer-ap1002-fxo]
accountcode=ap1002-fxo
type=friend
call-limit=2
context=ap1002-in
host=dynamic
deny=0.0.0.0/0
permit=192.168.4.8
nat=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
;this username and password used only for input call
;username= not set!!!
;if not registed, then no input call
secret=1234zxcv
qualify=yes
maxcallbitrate=128
dtmfmode=rfc2833
callerid="AddPac1002C-FXO"
insecure=port,invite
[peer-ap1002-gsm]
accountcode=ap1002-gsm
type=friend
call-limit=2
context=ap1002-in
host=dynamic
deny=0.0.0.0/0
permit=192.168.4.8
nat=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
;this username and password used only for input call
;username= not set!!!
;if not registed, then no input call
secret=1234zxcv
qualify=yes
maxcallbitrate=128
dtmfmode=rfc2833
callerid="AddPac1002C-GSM"
insecure=port,invite
В моем случае все входящие валятся на один пир - peer-ap1002-fxo.
Как астериск может сортировать входящие?
			
			
									
						
										
						
