Проблемы при входящих GSM звонках в GS1002C
Добавлено: 23 ноя 2011, 16:05
Привет!
При входящих GSM звонках, шлюз не соединяется с Asterisk а сбрасывает линию.
При исходящих звонках все прекрасно.
Вот кусок из sip.conf
...
[peer-gsm-1]
accountcode=sipgsm-1
type=friend
call-limit=2
context=gsm-in
host=192.168.4.8
nat=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
qualify=yes
maxcallbitrate=64
dtmfmode=rfc2833
dtmfmode=info
insecure=port,invite
...
Вот лог с AddPac. Ввел команду debug voip call
GS1002#
2 <CEP 000000> : Call Received
3 <CEP 000000> : Call Received
4 <CEP 000000> : Call Initiated : calledNumber() crv(0) total(0)
5 <Call 61> : ****** Call Created status(InitiatedByGSM) ver(8.28:2006-02-06-00-00) time(1322026590) ****
6 <CEP 000000> : Decode CID : FFFFFF80 E 10 C 2B 37 39 31 32 38 35 36 34 34 35 37
7 <CEP 000000> : GSM CID : time() callingNumber(79128564457) callingName()
8 <CEP 000000> : Calling number(79128564457)
9 <CEP 000000> : Call id(5e86cc4e-c815-d226-8067-0002a4083d1e) callNum(61)
10 <Call 61> : MatchAllProcess After Sorted
<0> id(1) dest(T) prefer(0) selected(27)
<1> id(300) dest(T) prefer(0) selected(9)
<2> id(0) dest(T) prefer(0) selected(24)
11 <Call 61> : Initiate callee with dial-peer(T) status(CalleeDeterminedAll) id(5e86cc4e-c815-d226-8067-0002a4083d1e)
12 <CEP 000100> : InitiateOutCall : calledNum(202), callingNum(79128564457), callerPort(0) type(GSM)
13 <CEP 000100> : Outbound call to CEP callId(5e86cc4e-c815-d226-8067-0002a4083d1e) callNum(61)
14 <Call 61> : Connected from(0)
15 <CEP 000100> : Disconnected(16) at Busy
16 <Call 61> : Terminated from(100) this(Local:CallClear) before((null)) forced(0) time(1322026593)
17 <CEP 000000> : DisconnectCall at Busy
18 <CEP 000000> : StopSignal
19 <CEP 000000> : Disconnect (0)
20 <CEP 000100> : DisconnectCall at Idle
21 <CEP 000000> : Disconnected(16) at Disconnecting
22 <SIP 60> : Set Terminated Success for 102 CANCEL
Конфиг apos.cfg ниже
!
! APOS(tm) configuration saved from vty
! 2011/11/23 11:18:37
!
version 8.51.002
!
hostname GS1002
clock timezone Moscow
!
username root password router administrator
username guest password guest user
!
!
script ntpdate default
server ip 192.168.4.1
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.4.8 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 192.168.4.1 10
!
!
!
!
ftp server
http server
!
dns name-server 192.168.4.1
logging command
logging event 4-warning
logging host server ip 192.168.4.1
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 202
caller-id enable
!
!
! GSM
voice-port 0/1
connection plar 203
caller-id enable
!
!
! FXO
voice-port 0/2
no caller-id enable
!
!
! FXO
voice-port 0/3
no caller-id enable
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern T
port 0/0
!
dial-peer voice 1 pots
destination-pattern T
port 0/1
!
!
!
! 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
preference 1
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
!
!
!
! SIP UA configuration.
!
sip-ua
sip-server 192.168.4.1
hook-flash-info-ignore
!
!
! Tones
!
!
!
!
line console
!
line vty
!
gsm dev-restart-by-unreg 300
!
gsm 0/0
sms-language utf8
!
gsm 0/1
sms-language utf8
!
При входящих GSM звонках, шлюз не соединяется с Asterisk а сбрасывает линию.
При исходящих звонках все прекрасно.
Вот кусок из sip.conf
...
[peer-gsm-1]
accountcode=sipgsm-1
type=friend
call-limit=2
context=gsm-in
host=192.168.4.8
nat=no
canreinvite=no
disallow=all
allow=alaw
allow=ulaw
qualify=yes
maxcallbitrate=64
dtmfmode=rfc2833
dtmfmode=info
insecure=port,invite
...
Вот лог с AddPac. Ввел команду debug voip call
GS1002#
2 <CEP 000000> : Call Received
3 <CEP 000000> : Call Received
4 <CEP 000000> : Call Initiated : calledNumber() crv(0) total(0)
5 <Call 61> : ****** Call Created status(InitiatedByGSM) ver(8.28:2006-02-06-00-00) time(1322026590) ****
6 <CEP 000000> : Decode CID : FFFFFF80 E 10 C 2B 37 39 31 32 38 35 36 34 34 35 37
7 <CEP 000000> : GSM CID : time() callingNumber(79128564457) callingName()
8 <CEP 000000> : Calling number(79128564457)
9 <CEP 000000> : Call id(5e86cc4e-c815-d226-8067-0002a4083d1e) callNum(61)
10 <Call 61> : MatchAllProcess After Sorted
<0> id(1) dest(T) prefer(0) selected(27)
<1> id(300) dest(T) prefer(0) selected(9)
<2> id(0) dest(T) prefer(0) selected(24)
11 <Call 61> : Initiate callee with dial-peer(T) status(CalleeDeterminedAll) id(5e86cc4e-c815-d226-8067-0002a4083d1e)
12 <CEP 000100> : InitiateOutCall : calledNum(202), callingNum(79128564457), callerPort(0) type(GSM)
13 <CEP 000100> : Outbound call to CEP callId(5e86cc4e-c815-d226-8067-0002a4083d1e) callNum(61)
14 <Call 61> : Connected from(0)
15 <CEP 000100> : Disconnected(16) at Busy
16 <Call 61> : Terminated from(100) this(Local:CallClear) before((null)) forced(0) time(1322026593)
17 <CEP 000000> : DisconnectCall at Busy
18 <CEP 000000> : StopSignal
19 <CEP 000000> : Disconnect (0)
20 <CEP 000100> : DisconnectCall at Idle
21 <CEP 000000> : Disconnected(16) at Disconnecting
22 <SIP 60> : Set Terminated Success for 102 CANCEL
Конфиг apos.cfg ниже
!
! APOS(tm) configuration saved from vty
! 2011/11/23 11:18:37
!
version 8.51.002
!
hostname GS1002
clock timezone Moscow
!
username root password router administrator
username guest password guest user
!
!
script ntpdate default
server ip 192.168.4.1
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address 192.168.4.8 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 192.168.4.1 10
!
!
!
!
ftp server
http server
!
dns name-server 192.168.4.1
logging command
logging event 4-warning
logging host server ip 192.168.4.1
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 202
caller-id enable
!
!
! GSM
voice-port 0/1
connection plar 203
caller-id enable
!
!
! FXO
voice-port 0/2
no caller-id enable
!
!
! FXO
voice-port 0/3
no caller-id enable
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern T
port 0/0
!
dial-peer voice 1 pots
destination-pattern T
port 0/1
!
!
!
! 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
preference 1
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
!
!
!
! SIP UA configuration.
!
sip-ua
sip-server 192.168.4.1
hook-flash-info-ignore
!
!
! Tones
!
!
!
!
line console
!
line vty
!
gsm dev-restart-by-unreg 300
!
gsm 0/0
sms-language utf8
!
gsm 0/1
sms-language utf8
!