Здравствуйте.
Есть Cisco 3925 , в неё воткнуты 2 потока Е1. К ней пристыковал Астериск. Если я звоню с номера который зарегистрирован на этом астериске на любые номера , кроме тех , кто тоже зарегистирован на этом астериске - звонки проходят, между номерами на этом астериске звонки не идут.
Схема такая "Астериск --> Cisco3925 -->(2 потока Е1) ATC M200.Вот кусок дебага при попытке звонка с одного телефона на другой:
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: isdn_get_guid: Got Guid 006264E2820B
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENT: process_pri_call: call id 0x804B, number 84957273784, Guid 006264E2820B, speed 0, call type VOICE, redial No, CSM call No, pdata YesReceived pdata len 0x3F data:1C 39 9E 1 0 3 67 74 64 0 0 0 2E 49 41 4D 2C D A 47 43 49 2C 30 30 36 32 36 34 65 32 65 33 62 30 31 31 65 32 38 32 30 62 62 37 32 30 33 39 35 64 33 63 36 32 D A D A 1E 2 81 83
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: process_pri_call: No name in GTD
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: process_pri_call: Modified by Calldecode
Name Type 0x0, cs 0x0, ie_val 0x28, pi 0x0, avail 0x0
fachd len 0x0 data:
inpdu len 0x0 data:
name len 0xA data:34 39 36 32 32 37 30 31 32 37
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: fill_cid_table_voice: Created entry call_id 0x804B, speed 64, remote 84957273784, calling 4962270127
Jul 4 07:13:03.477: ISDN Se0/0/1:15 Q931: Applying typeplan for sw-type 0x12 is 0x2 0x1, Calling num 4962270127
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: Packet to CC Data
Jul 4 07:13:03.477: 4D0201804B2A0404800010A318040003
Jul 4 07:13:03.477: 00FF6C0D028183343936323237303132
Jul 4 07:13:03.477: 37700D02013834393537323733373834
Jul 4 07:13:03.477: 040308001018030003001E028183280A
Jul 4 07:13:03.477: 343936323237303132376C0C21A13439
Jul 4 07:13:03.477: 3632323730313237A1
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: calltrkr_setup_received: isdn_info=43889988l, call_id=0x804B ORIGINATE
Jul 4 07:13:03.477: ISDN Se0/0/1:15 EVENTd: calltrkr_setup_received: calltracker disabled
Jul 4 07:13:03.477: ISDN Se0/0/1:15 Q931: Sending SETUP callref = 0x0083 callID = 0x804B switch = primary-net5 interface = User
Jul 4 07:13:03.477: ISDN Se0/0/1:15 Q931: TX -> SETUP pd = 8 callref = 0x0083
Sending Complete
Bearer Capability i = 0x8090A3
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98396
Exclusive, Channel 22
Progress Ind i = 0x8183 - Origination address is non-ISDN
Calling Party Number i = 0x2183, '4962270127'
Plan:ISDN, Type:National
Called Party Number i = 0xA1, '84957273784'
Plan:ISDN, Type:National
Jul 4 07:13:03.633: ISDN Se0/0/1:15 Q931: RX <- CALL_PROC pd = 8 callref = 0x8083
Channel ID i = 0xA98396
Exclusive, Channel 22
Jul 4 07:13:03.633: ISDN Se0/0/1:15 EVENT: process_rxstate: ces/callid 1/0x804B calltype 2 CALL_PROCEEDING
Jul 4 07:13:03.633: ISDN Se0/0/1:15 EVENTd: calltrkr_setup_received: isdn_info=316813684l, call_id=0x804B ORIGINATE
Jul 4 07:13:04.017: ISDN Se0/0/1:15 Q931: RX <- SETUP pd = 8 callref = 0x002F
Sending Complete
Bearer Capability i = 0x8090A3
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98381
Exclusive, Channel 1
Progress Ind i = 0x8183 - Origination address is non-ISDN
Calling Party Number i = 0x2181, '4962270127'
Plan:ISDN, Type:National
Called Party Number i = 0x81, '4957273784'
Plan:ISDN, Type:Unknown
Jul 4 07:13:04.021: ISDN Se0/0/1:15 Q931: Received SETUP callref = 0x802F callID = 0x00C9 switch = primary-net5 interface = User
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENT: process_rxstate: ces/callid 1/0xC9 calltype 2 CALL_INCOMING
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: isdn_get_guid: Got Guid 00B60435803F
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENT: call_incoming: call_id 0x00C9, Guid = 00B60435803F
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: calltrkr_incoming_call: call_id=0xC9
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: calltrkr_setup_received: isdn_info=43889988l, call_id=0xC9 ANSWER
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: calltrkr_setup_received: calltracker disabled
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: calltrkr_setup_received: isdn_info=310979572l, call_id=0xC9 ANSWER
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: call_incoming: b channel 0, call type is VOICE ALAW
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: call_incoming: Received a VOICE call from 4962270127 on b channel 0 at 64 Kb/s
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: sys_cons[2].clng_name=0
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: call_incoming: Sending event to RM. Callid 201
Jul 4 07:13:04.021: ISDN Se0/0/1:15 EVENTd: call_incoming: RM returned
Jul 4 07:13:04.021: ISDN CDAPI: cdapi_find_tsm found a GTD message IAM,
PRN,isdn*,,NET5*,
USI,rate,c,s,c,1
USI,lay1,alaw
TMR,00
CPN,00,,1,4957273784
CGN,04,,1,y,2,4962270127
CPC,09
FCI,,,,,,,y,
GCI,00b60435e3b011e2803facf2c5e01600
:
end of gtd length is 176
Jul 4 07:13:04.021: ISDN Se0/0/1:15 Q931: RX <- PROGRESS pd = 8 callref = 0x8083
Progress Ind i = 0x8181 - Call not end-to-end ISDN, may have in-band info
Jul 4 07:13:04.025: ISDN Se0/0/1:15 EVENT: process_rxstate: ces/callid 1/0x804B calltype 2 CALL_PROGRESS
Jul 4 07:13:04.025: ISDN CDAPI: cdapi_find_tsm found a GTD message CPG,
PRN,isdn*,,NET5*,
:
end of gtd length is 27
Jul 4 07:13:04.025: ISDN Se0/0/1:15 EVENTd: process_pri_simple: msg 74, call id 0xC9, bchan 0, call type VOICE
Jul 4 07:13:04.025: ISDN Se0/0/1:15 SERROR: process_pri_simple: NO name in GTD
Jul 4 07:13:04.025: ISDN Se0/0/1:15 EVENTd: process_pri_simple: Pack connected number using called number IE
Jul 4 07:13:04.025: ISDN Se0/0/1:15 EVENTd: Packet to CC Data
Jul 4 07:13:04.025: 4A020100C906180401030100
Jul 4 07:13:04.025: ISDN Se0/0/1:15 Q931: TX -> CALL_PROC pd = 8 callref = 0x802F
Channel ID i = 0xA98381
Exclusive, Channel 1
Jul 4 07:13:04.029: ISDN Se0/0/1:15 EVENTd: process_disconnect: call id 0xC9, call type is VOICE, b_idb 0x1288A95C, ces 1, cause Resource unavailable, unspecified(0x2F)
Jul 4 07:13:04.029: ISDN Se0/0/1:15 EVENTd: calltrkr_call_disconnected: isdn_info=0x12892BF4, call_id=0xC9
Jul 4 07:13:04.029: ISDN Se0/0/1:15 EVENTd: process_disconnect: Raw Release Message
Jul 4 07:13:04.029: 4B020100C9040802FFAF080380AF81
Jul 4 07:13:04.029: ISDN Se0/0/1:15 CDAPI: cdapi_mib_update msg CALL_DISC, remote number 4962270127, connected? No
Jul 4 07:13:04.029: ISDN Se0/0/1:15 Q931: TX -> DISCONNECT pd = 8 callref = 0x802F
Cause i = 0x80AF - Resource unavailable, unspecified
Jul 4 07:13:04.073: ISDN Se0/0/1:15 Q931: RX <- RELEASE pd = 8 callref = 0x002F
Jul 4 07:13:04.073: ISDN EVENTd: cc_clear_free_list freeing 0x027AE380
Jul 4 07:13:04.073: ISDN Se0/0/1:15 EVENT: process_rxstate: ces/callid 1/0xC9 calltype 2 CALL_CLEARED
Jul 4 07:13:04.073: ISDN Se0/0/1:15 EVENTd: calltrkr_call_cleared: isdn_info=0x29DB544, call_id=0xC9
Jul 4 07:13:04.073: ISDN Se0/0/1:15 EVENTd: calltrkr_call_cleared: isdn_info=0x12892BF4, call_id=0xC9
Jul 4 07:13:04.077: ISDN CDAPI: cdapi_find_tsm found a GTD message RLC,
PRN,isdn*,,NET5*,
:
end of gtd length is 27
Jul 4 07:13:04.077: ISDN Se0/0/1:15 EVENTd: call_cleared: Sending event to RM. Callid 201
Jul 4 07:13:04.077: ISDN Se0/0/1:15 EVENTd: call_cleared: RM returned
Jul 4 07:13:04.077: ISDN Se0/0/1:15 CDAPI: cdapi_mib_update msg CALL_DISC, remote number , connected? No
Jul 4 07:13:04.077: ISDN Se0/0/1:15 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x802F
Jul 4 07:13:04.393: ISDN Se0/0/1:15 Q931: RX <- DISCONNECT pd = 8 callref = 0x8083
Cause i = 0x80AF - Resource unavailable, unspecified
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENT: process_rxstate: ces/callid 1/0x804B calltype 2 CALL_DISC
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENTd: process_rxstate: cause=0x2F (47), cause_present=1
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENTd: calltrkr_call_disconnected: isdn_info=0x29DB544, call_id=0x804B
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENTd: calltrkr_call_disconnected: isdn_info=0x12E23174, call_id=0x804B
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENTd: calltrkr_call_disconnected: isdn_info=0x29DB544, call_id=0x804B
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENTd: calltrkr_call_disconnected: isdn_info=0x12E23174, call_id=0x804B
Jul 4 07:13:04.393: ISDN CDAPI: cdapi_find_tsm found a GTD message REL,
PRN,isdn*,,NET5*,
:
end of gtd length is 27
Jul 4 07:13:04.393: ISDN Se0/0/1:15 EVENTd: process_disc_ack: call id 0x804B, ces 1, call type VOICE cause 0x2F
Jul 4 07:13:04.393: ISDN Se0/0/1:15 Q931: TX -> RELEASE pd = 8 callref = 0x0083
Jul 4 07:13:04.425: ISDN Se0/0/1:15 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x8083
Jul 4 07:13:04.425: ISDN EVENTd: cc_clear_free_list freeing 0x027AE288
Jul 4 07:13:04.425: ISDN Se0/0/1:15 EVENT: process_rxstate: ces/callid 1/0x804B calltype 2 CALL_CLEARED
Jul 4 07:13:04.425: ISDN Se0/0/1:15 EVENTd: calltrkr_call_cleared: isdn_info=0x29DB544, call_id=0x804B
Jul 4 07:13:04.425: ISDN Se0/0/1:15 EVENTd: calltrkr_call_cleared: isdn_info=0x12E23174, call_id=0x804B
Jul 4 07:13:04.425: ISDN CDAPI: cdapi_find_tsm found a GTD message RLC,
PRN,isdn*,,NET5*,
:
end of gtd length is 27
Jul 4 07:13:04.425: ISDN Se0/0/1:15 CDAPI: cdapi_mib_update msg CALL_DISC, remote number 84957273784, connected? No
Jul 4 07:13:04.425: ISDN Se0/0/0:15 EVENTd: isdn_get_guid: Got Guid 006264E2820B
Jul 4 07:13:04.425: ISDN Se0/0/0:15 EVENT: process_pri_call: call id 0x804C, number 84957273784, Guid 006264E2820B, speed 0, call type VOICE, redial No, CSM call No, pdata YesReceived pdata len 0x3F data:1C 39 9E 1 0 3 67 74 64 0 0 0 2E 49 41 4D 2C D A 47 43 49 2C 30 30 36 32 36 34 65 32 65 33 62 30 31 31 65 32 38 32 30 62 62 37 32 30 33 39 35 64 33 63 36 32 D A D A 1E 2 81 83
Jul 4 07:13:04.425: ISDN Se0/0/0:15 EVENTd: process_pri_call: No name in GTD
Jul 4 07:13:04.425: ISDN Se0/0/0:15 EVENTd: process_pri_call: Modified by Calldecode
Name Type 0x0, cs 0x0, ie_val 0x28, pi 0x0, avail 0x0
fachd len 0x0 data:
inpdu len 0x0 data:
name len 0xA data:34 39 36 32 32 37 30 31 32 37
Jul 4 07:13:04.429: ISDN Se0/0/0:15 EVENTd: fill_cid_table_voice: Created entry call_id 0x804C, speed 64, remote 84957273784, calling 4962270127
Jul 4 07:13:04.429: ISDN Se0/0/0:15 Q931: Applying typeplan for sw-type 0x12 is 0x2 0x1, Calling num 4962270127
Jul 4 07:13:04.429: ISDN Se0/0/0:15 EVENTd: Packet to CC Data
Jul 4 07:13:04.429: 4D0101804C2A0404800010A318040003
Jul 4 07:13:04.429: 00FF6C0D028183343936323237303132
Jul 4 07:13:04.429: 37700D02013834393537323733373834
Jul 4 07:13:04.429: 040308001018030003001E028183280A
Jul 4 07:13:04.429: 343936323237303132376C0C21A13439
Jul 4 07:13:04.429: 3632323730313237A1
Jul 4 07:13:04.429: ISDN Se0/0/0:15 EVENTd: calltrkr_setup_received: isdn_info=41228616l, call_id=0x804C ORIGINATE
Jul 4 07:13:04.429: ISDN Se0/0/0:15 EVENTd: calltrkr_setup_received: calltracker disabled
Jul 4 07:13:04.429: ISDN Se0/0/0:15 Q931: Sending SETUP callref = 0x0084 callID = 0x804C switch = primary-net5 interface = User
Jul 4 07:13:04.429: ISDN Se0/0/0:15 Q931: TX -> SETUP pd = 8 callref = 0x0084
Sending Complete
Bearer Capability i = 0x8090A3
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA9839A
Exclusive, Channel 26
Progress Ind i = 0x8183 - Origination address is non-ISDN
Calling Party Number i = 0x2183, '4962270127'
Plan:ISDN, Type:National
Called Party Number i = 0xA1, '84957273784'
Plan:ISDN, Type:National
Jul 4 07:13:04.465: ISDN Se0/0/0:15 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x8084
Cause i = 0x83A2 - No circuit/channel available
Jul 4 07:13:04.465: ISDN EVENTd: cc_clear_free_list freeing 0x027AE288
Jul 4 07:13:04.465: ISDN Se0/0/0:15 EVENT: process_rxstate: ces/callid 1/0x804C calltype 2 CALL_REJECTION
Jul 4 07:13:04.465: ISDN Se0/0/0:15 EVENTd: process_rxstate: cause=0x22 (34), cause_present=1
Jul 4 07:13:04.465: ISDN CDAPI: cdapi_find_tsm found a GTD message RLC,
PRN,isdn*,,NET5*,
:
end of gtd length is 27
Jul 4 07:13:04.465: ISDN Se0/0/0:15 EVENT: process_rxstate: ces/callid 1/0x804C calltype 2 CALL_CLEARED
Jul 4 07:13:04.465: ISDN Se0/0/0:15 EVENTd: process_rxstate: cause=0x22 (34), cause_present=1
Вот конфиг Cisco 3925:
isdn switch-type primary-qsig
!
voice-card 0
!
!
voice hunt user-busy
voice call send-alert
voice call convert-discpi-to-prog always
voice call carrier capacity active
voice rtp send-recv
!
voice service pots
supported-language ru
!
voice service voip
clid network-provided
fax protocol t38 version 0 ls-redundancy 2 hs-redundancy 2 fallback pass-through g711alaw
h323
modem passthrough nse codec g711alaw
sip
!
voice service voatm
!
!
voice service vofr
modem passthrough codec g711alaw
!
!
voice class uri VEGA sip
pattern .*@10.14.0.2
voice class codec 1
codec preference 2 g729br8 bytes 80
codec preference 3 g729r8 bytes 80
codec preference 4 g723r53
codec preference 5 g711ulaw
codec preference 6 clear-channel
!
voice class codec 2
codec preference 1 g729r8
codec preference 2 g726r32
codec preference 3 g711alaw
codec preference 4 clear-channel
codec preference 7 g711ulaw
!
controller E1 0/0/0
pri-group timeslots 1-31
!
controller E1 0/0/1
pri-group timeslots 1-31
!
interface Serial0/0/0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice modem
isdn map address .* plan isdn type national
isdn T309-enable
isdn send-alerting
isdn bchan-number-order descending round-robin
isdn sending-complete
no fair-queue
no cdp enable
!
interface Serial0/0/1:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice modem
isdn map address .* plan isdn type national
isdn T309-enable
isdn send-alerting
isdn bchan-number-order descending round-robin
isdn sending-complete
no fair-queue
no cdp enable
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
nls resp-timeout 1
cpd cr-id 1
!
!
!
!
control-plane
!
!
voice-port 0/0/0:15
no comfort-noise
cptone RU
bearer-cap Speech
!
voice-port 0/0/1:15
no comfort-noise
cptone RU
bearer-cap Speech
!
!
!
mgcp profile default
!
!
dial-peer voice 90 voip
destination-pattern 495
session protocol sipv2
session target ipv4:10.4.0.2
session transport udp
incoming uri from VEGA
voice-class codec 2
dtmf-relay rtp-nte
fax rate 14400
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
no vad
!
dial-peer voice 50 pots
destination-pattern 0[0-9]$
progress_ind setup enable 3
progress_ind alert enable 8
progress_ind progress enable 8
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 51 pots
destination-pattern 8
progress_ind setup enable 3
progress_ind alert enable 8
progress_ind progress enable 8
direct-inward-dial
port 0/0/1:15
forward-digits all
!
dial-peer voice 52 pots
destination-pattern 8
progress_ind setup enable 3
progress_ind alert enable 8
progress_ind progress enable 8
direct-inward-dial
port 0/0/0:15
forward-digits all
!
dial-peer voice 91 voip
destination-pattern 49622
session protocol sipv2
session target ipv4:10.4.0.2
session transport udp
voice-class codec 2
dtmf-relay rtp-nte
fax rate 14400
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
no vad
!
!
!
!
gatekeeper
shutdown
!
!
configuration mode exclusive
!
line con 0
stopbits 1
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
transport input all
!
scheduler allocate 20000 1000
end
Буду благодарен за помощь.