Был настроен Е1 и работал как часы! Повайдер решил поменять оборудование и после этого Е1 перестал работать :( Карта Digium TE121b при звонке в логе вижу:
-- Executing [892503472хх@from-internal:1] Dial("SIP/911-00000002", "Dahdi/g1/892503472хх") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/892503472хх
-- DAHDI/1-1 is proceeding passing it to SIP/911-00000002
-- Channel 0/1, span 1 got hangup request, cause 63
-- Hungup 'DAHDI/1-1'
конфиги: dahdi/system.conf
span=1,1,0,ccs,hdb3,crc4
bchan=1-6
dchan=16
loadzone = ru
defaultzone = ru
asterisk/chan_dahdi.conf
[trunkgroups]
[channels]
language=ru
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
group=1
;;;[E1]
context=menu
switchtype=euroisdn
;prilocaldialplan=local
;pridialplan=national
signalling=pri_cpe
;faxdetect=incoming
channel =>1-6
провайдер говорит что у него всё шоколадно! Как включить дебаг чтоб понять что происходит ну или у кого есть может какие замечания. Спасибо.
Дописанный лог дебага:
-- Executing [89167947014@from-internal:1] Dial("SIP/105-00000003", "Dahdi/g1/89167947014") in new stack
-- Making new call for cref 32771
-- Requested transfer capability: 0x00 - SPEECH
> DL-DATA request
> Protocol Discriminator: Q.931 (8) len=37
> TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent from originator)
> Message Type: SETUP (5)
TEI=0 Transmitting N(S)=4, window is open V(A)=4 K=7
> Protocol Discriminator: Q.931 (8) len=37
> TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent from originator)
> Message Type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
> Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
> User information layer 1: A-Law (35)
> [18 03 a1 83 81]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
> ChanSel: As indicated in following octets
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 Type: CPE]
> [6c 05 41 80 31 30 35]
> Calling Number (len= 7) [ Ext: 0 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> Presentation: Presentation permitted, user number not screened (0) '105' ]
> [70 0c a1 38 39 31 36 37 39 34 37 30 31 34]
> Called Number (len=14) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '89167947014' ]
> [a1]
> Sending Complete (len= 1)
q931.c:4959 q931_setup: Call 32771 enters state 1 (Call Initiated). Hold state: Idle
-- Called g1/89167947014
< Protocol Discriminator: Q.931 (8) len=10
< TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent to originator)
< Message Type: CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
< ChanSel: As indicated in following octets
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 1 Type: CPE]
Received message for call 0x8e7f6d8 on 0x8eb6538 TEI/SAPI 0/0, call->pri is 0x8eb6538 TEI/SAPI 0/0
-- Processing IE 24 (cs0, Channel Identification)
q931.c:6998 post_handle_q931_message: Call 32771 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
-- DAHDI/1-1 is proceeding passing it to SIP/105-00000003
< Protocol Discriminator: Q.931 (8) len=9
< TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent to originator)
< Message Type: DISCONNECT (69)
< [08 02 82 bf]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
< Ext: 1 Cause: Service or option not available, unspecified (63), class = Service or Option not Available (3) ]
Received message for call 0x8e7f6d8 on 0x8eb6538 TEI/SAPI 0/0, call->pri is 0x8eb6538 TEI/SAPI 0/0
-- Processing IE 8 (cs0, Cause)
-- Found active call: 0x8e7f6d8 cref:32771
q931.c:7201 post_handle_q931_message: Call 32771 enters state 12 (Disconnect Indication). Hold state: Idle
-- Channel 0/1, span 1 got hangup request, cause 63
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
q931.c:4721 q931_release: Call 32771 enters state 19 (Release Request). Hold state: Idle
> DL-DATA request
> Protocol Discriminator: Q.931 (8) len=9
> TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent from originator)
> Message Type: RELEASE (77)
TEI=0 Transmitting N(S)=5, window is open V(A)=5 K=7
> Protocol Discriminator: Q.931 (8) len=9
> TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent from originator)
> Message Type: RELEASE (77)
> [08 02 81 bf]
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Service or option not available, unspecified (63), class = Service or Option not Available (3) ]
-- Hungup 'DAHDI/1-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [89167947014@from-internal:2] NoCDR("SIP/105-00000003", "") in new stack
-- Executing [89167947014@from-internal:3] Progress("SIP/105-00000003", "") in new stack
-- Executing [89167947014@from-internal:4] Wait("SIP/105-00000003", "1") in new stack
< Protocol Discriminator: Q.931 (8) len=5
< TEI=0 Call Ref: len= 2 (reference 3/0x3) (Sent to originator)
< Message Type: RELEASE COMPLETE (90)
Received message for call 0x8e7f6d8 on 0x8eb6538 TEI/SAPI 0/0, call->pri is 0x8eb6538 TEI/SAPI 0/0
q931.c:7083 post_handle_q931_message: Call 32771 enters state 0 (Null). Hold state: Idle
q931_hangup: other hangup
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null, hold-state Idle
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null, hold-state Idle
-- Executing [89167947014@from-internal:5] Playback("SIP/105-00000003", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
-- <SIP/105-00000003> Playing 'silence/1.gsm' (language 'ru')
-- <SIP/105-00000003> Playing 'cannot-complete-as-dialed.slin' (language 'ru')
-- <SIP/105-00000003> Playing 'check-number-dial-again.slin' (language 'ru')
-- Executing [89167947014@from-internal:6] Wait("SIP/105-00000003", "1") in new stack
-- Executing [89167947014@from-internal:7] Congestion("SIP/105-00000003", "20") in new stack
== Spawn extension (from-internal, 89167947014, 7) exited non-zero on 'SIP/105-00000003'
-- Executing [h@from-internal:1] Macro("SIP/105-00000003", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/105-00000003", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/105-00000003", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/105-00000003", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/105-00000003", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/105-00000003", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/105-00000003", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/105-00000003' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/105-00000003'
Дописал:
elastix*CLI> pri show span 1
Primary D-channel: 16
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: CPE
Overlap Dial: 0
Logical Channel Mapping: 0
Timer and counter settings:
N200: 3
N202: 3
K: 7
T200: 1000
T202: 10000
T203: 10000
T303: 4000
T305: 30000
T308: 4000
T309: 6000
T313: 4000
T-HOLD: 4000
T-RETRIEVE: 4000
T-RESPONSE: 4000
Overlap Recv: No
[root@elastix asterisk]# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TE121 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE121 (VPMADT032)
location=PCI Bus 03 Slot 09
basechan=1
totchans=31
irq=169
type=digital-E1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
Cause No. 63 - service or option not available. unspecified.
This cause is used to report a service or option not available event only when no other cause in the service or option not available class applies.
из лога следует, что канал не установлен тоесть скорее всего encoding на этом и на том конце не совпадает. либо надо поменять режим(чтоб ваша сторона стала network).
к сожалению, pri не включает в себя защиту от дурака(как у сипа например), тоесть вам прийдеться спросить у провайдера какие настроки у него или перепробывать все варианты. узнать у канала какие настройки стоят сейча, нельзя. ибо для этого надо сначала соединиться. оно как шифрование в какойто мере.
для начала попробуйте crc4 убрать. а вообще я бы на вашем месте написал письмо(бумажное такое) провайдеру с просьбой провести расследование и вернуть как было. ну и наказать виновных.
уточните у провайдера кто мастер, а кто слейв, используется ли crc4, тип callerID
Алилуя поток заработал) ничего в конфигах не менял) просто позвонил Одмин прова и говорит проверь... а причину жду на почту
Пров пристал с циски такую хрень:
elektr-r1#show isdn status
Global ISDN Switchtype = primary-net5
ISDN Serial0/1/0:15 interface
******* Network side configuration *******
dsl 0, interface ISDN Switchtype = primary-net5
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
0 Active Layer 3 Call(s)
Active dsl 0 CCBs = 0
The Free Channel Mask: 0x80FF7FFF
Number of L2 Discards = 0, L2 Session ID = 53
Total Allocated ISDN CCBs = 0
elektr-r1#show interfaces serial0/1/0:15
Serial0/1/0:15 is up, line protocol is up (spoofing)
Hardware is DSX1
MTU 1500 bytes, BW 64 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
CRC checking enabled
Last input 00:00:06, output 00:00:06, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 48 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
571700 packets input, 2288233 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
106 input errors, 75 CRC, 0 frame, 4 overrun, 0 ignored, 27 abort
571803 packets output, 2287865 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
25 carrier transitions
Timeslot(s) Used:16, SCC: 0, Transmitter delay is 0 flags
elektr-r1#show controllers E1
E1 0/1/0 is up.
Applique type is Channelized E1 - balanced
No alarms detected.
alarm-trigger is not set
Version info Firmware: 20090113, FPGA: 20, spm_count = 0
Framing is CRC4, Line Code is HDB3, Clock Source is Internal.
CRC Threshold is 320. Reported from firmware is 320.
Data in current interval (67 seconds elapsed):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
Total Data (last 24 hours)
200 Line Code Violations, 4138 Path Code Violations,
0 Slip Secs, 2 Fr Loss Secs, 21 Line Err Secs, 0 Degraded Mins,
29 Errored Secs, 0 Bursty Err Secs, 2 Severely Err Secs, 97 Unavail Secs
Проф прислал кусок конфига циски с настройками:
isdn switch-type primary-net5
!
controller E1 0/1/0
clock source internal
pri-group timeslots 1-24
!
interface Serial0/1/0:15
no ip address
encapsulation hdlc
no logging event link-status
isdn switch-type primary-net5
isdn protocol-emulate network
isdn incoming-voice voice
isdn send-alerting
isdn sending-complete
no cdp enable
!
voice-port 0/1/0:15
cptone RU
bearer-cap Speech
!
dial-peer voice 1 pots
description *** incoming calls from PSTN ***
incoming called-number .T
direct-inward-dial
port 0/1/0:15
!
dial-peer voice 3 pots
destination-pattern *номер*
port 0/1/0:15
что тут можно увидеть?
Задан: 2011-08-17 20:20:22 +0400
Просмотрен: 5,956 раз
Обновлен: Aug 23 '11
Проблема с dahdi 2.4.1.2 EC: OSLEC
Переадресация E1->E1 с освобождением B-канала
Звонки в город с Asterisk через Panas tde600 (PRI30) E1 QSIG.
Как рассчитать нагрузку на E1 в данной ситуации?
Входящие маршруты для 2-х портов E1
Как разобрать поток е1 по номерам
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.