Добрый день!
У меня проблема с одновременной регистрацией GSM и FXO портов.
Если в CLI консоли я пишу sip show peers, то получаю вид:
peer-gsm-1/peer-gsm-1                (Unspecified)                            D          0        Unmonitored
peer-pstn-1/peer-pstn-1      192.168.4.8                              D       A  5060     OK (16 ms)
Соответственно звонки на шлюз GSM не уходят. По отдельности каждый шлюз работает.
Вот конфигурация на asterisk (sip.conf)
...
[peer-gsm-1]
accountcode=sipgsm-1
type=friend
call-limit=2
context=gsm-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=peer-gsm-1
;if not registed, then no input call
secret=1234zxcv
qualify=yes
maxcallbitrate=64
dtmfmode=info
[peer-pstn-1]
accountcode=sippstn-1
type=friend
call-limit=2
context=pstn-in
host=dynamic
deny=0.0.0.0/0
permit=192.168.4.8
nat=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
username=peer-pstn-1
secret=1234zxcv
qualify=yes
maxcallbitrate=64
dtmfmode=info
...
Вот конфиг портов с apos.cfg
...
! 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 202 
 caller-id enable 
! 
! 
! GSM 
voice-port 0/1 
 connection plar 203 
 caller-id enable 
! 
! 
! FXO 
voice-port 0/2 
 connection plar 200 
 caller-id enable 
! 
! 
! FXO 
voice-port 0/3 
 connection plar 201 
 caller-id enable 
! 
! 
! 
! 
! service port group configuration. 
! 
! 
! 
! Pots peer configuration. 
! 
dial-peer voice 0 pots
 destination-pattern [78]9T 
 port 0/0 
 user-name peer-gsm-1 
 user-password 1234zxcv 
 preference 1
! 
dial-peer voice 1 pots
 destination-pattern [78]9T 
 port 0/1 
 user-name peer-gsm-1 
 user-password 1234zxcv 
 preference 1
! 
dial-peer voice 2 pots
 destination-pattern 123T 
 port 0/2 
 user-name peer-pstn-1 
 user-password 1234zxcv 
 translate-outgoing called-number 1 
 preference 2
! 
dial-peer voice 3 pots
 destination-pattern 123T 
 port 0/3 
 user-name peer-pstn-1 
 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 info 
 fax protocol t38 redundancy 0 
 fax rate 9600 
! 
! 
! 
! 
! 
! 
gatekeeper
! 
! 
! Gateway configuration. 
! 
gateway 
 h323-id voip.192.168.4.8 
 no ignore-msg-from-other-gk 
! 
! 
! Codec classes configuration. 
! 
voice class codec 0 
 codec preference 1 g711alaw 
 codec preference 2 g711ulaw 
! 
! 
! 
! Translation Rule configuration. 
! 
translation-rule 1 
 rule 0      123T                     T                                
! 
translation-rule 2 
 rule 0      123T                     T                                
! 
! 
! 
! SIP UA configuration. 
! 
sip-ua 
 user-register 
 sip-server 192.168.4.1 
 register e164 
 hook-flash-info-ignore 
! 
Помогите!!!
			
			
									
						
										
						
