1 | изначальная версия редактировать | |
Продолжаю копать организацию звонка через конкретный канал DAHDI. Тестовый звонок совершается с экстеншена на аналоговый телефон через TDMoE идущему на мини-АТС DX-500 с помощью команды.
channel originate SIP/6999 application dial DAHDI/30/2340
Т.е. звоню "в лоб" по 30 каналу. Сначала все нормально, звонок идет по 30 каналу но потом перебрасывается на на произвольный. Та же картина при звонке через группу (30,31 каналы), Costum Trunk (прописан конкретный канал) и т.д.
Лог Астериск со включенной отладкой pri.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 09:28:53.648735'},'6999','6999','','','','s','from-internal','SIP/6999-00000298','','',3,'','1477376933.1349','1477376933.1349','','','')]
> 0x7fdd80008870 -- Probation passed - setting RTP source address to 10.73.224.97:2070
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-10-25 09:28:55.840635'},'6999','6999','6999','','','','from-internal','SIP/6999-00000298','','',3,'','1477376933.1349','1477376933.1349','','','')]
-- Launching dial(DAHDI/30/2340) on SIP/6999-00000298
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 09:28:55.842346'},'','','','','','s','from-pstn','DAHDI/i1/2340-2a4','','',3,'','1477376935.1350','1477376933.1349','','','')]
PRI Span: 1 -- Making new call for cref 33153
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=122, window is open V(A)=122 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 9e]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 30 Type: CPE]
PRI Span: 1 > [1e 02 80 83]
PRI Span: 1 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
PRI Span: 1 > Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]
PRI Span: 1 > [28 05 b1 36 39 39 39]
PRI Span: 1 > Display (len= 5) Charset: 31 [ 6999 ]
PRI Span: 1 > [6c 06 21 81 36 39 39 39]
PRI Span: 1 > Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation permitted, user number passed network screening (1) '6999' ]
PRI Span: 1 > [70 05 80 32 33 34 30]
PRI Span: 1 > Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '2340' ]
PRI Span: 1 q931.c:6036 q931_setup: Call 33153 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/30/2340
> 0x7fdd80008870 -- Probation passed - setting RTP source address to 10.73.224.97:2070
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=14
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: SETUP ACKNOWLEDGE (13)
PRI Span: 1 < [18 03 a9 83 91]
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 1 < ChanSel: As indicated in following octets
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 < Ext: 1 Channel: 17 Type: CPE]
PRI Span: 1 < [1e 02 81 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 24 (cs0, Channel Identification)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 q931.c:8809 post_handle_q931_message: Call 33153 enters state 2 (Overlap Sending). Hold state: Idle
Span 1: Processing event PRI_EVENT_SETUP_ACK(14)
-- Moving call (DAHDI/i1/2340-2a4) from channel 30 to 17.
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8454 post_handle_q931_message: Call 33153 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
-- DAHDI/i1/2340-2a4 is proceeding passing it to SIP/6999-00000298
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: ALERTING (1)
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8319 post_handle_q931_message: Call 33153 enters state 4 (Call Delivered). Hold state: Idle
Span 1: Processing event PRI_EVENT_RINGING(7)
-- DAHDI/i1/2340-2a4 is ringing
В общем нужно звонить по 30 или по 31 каналу, т.е чтобы не было
Moving call (DAHDI/i1/2340-2a4) from channel 30 to XX.
Или звонок перебрасывался конкретно между двумя этими каналами. Через эти каналы будут звонить всего два человека. Остальные могут звонить через произвольные.
2 | No.2 Revision редактировать |
Продолжаю копать организацию звонка через конкретный канал DAHDI. Тестовый звонок совершается с экстеншена на аналоговый телефон через TDMoE идущему на мини-АТС DX-500 с помощью команды.
channel originate SIP/6999 application dial DAHDI/30/2340
Т.е. звоню "в лоб" по 30 каналу. Сначала все нормально, звонок идет по 30 каналу но потом перебрасывается на на произвольный. Та же картина при звонке через группу (30,31 каналы), Costum Trunk (прописан конкретный канал) и т.д.
Лог Астериск со включенной отладкой pri.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 09:28:53.648735'},'6999','6999','','','','s','from-internal','SIP/6999-00000298','','',3,'','1477376933.1349','1477376933.1349','','','')]
> 0x7fdd80008870 -- Probation passed - setting RTP source address to 10.73.224.97:2070
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-10-25 09:28:55.840635'},'6999','6999','6999','','','','from-internal','SIP/6999-00000298','','',3,'','1477376933.1349','1477376933.1349','','','')]
-- Launching dial(DAHDI/30/2340) on SIP/6999-00000298
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 09:28:55.842346'},'','','','','','s','from-pstn','DAHDI/i1/2340-2a4','','',3,'','1477376935.1350','1477376933.1349','','','')]
PRI Span: 1 -- Making new call for cref 33153
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=122, window is open V(A)=122 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 9e]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 30 Type: CPE]
PRI Span: 1 > [1e 02 80 83]
PRI Span: 1 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
PRI Span: 1 > Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]
PRI Span: 1 > [28 05 b1 36 39 39 39]
PRI Span: 1 > Display (len= 5) Charset: 31 [ 6999 ]
PRI Span: 1 > [6c 06 21 81 36 39 39 39]
PRI Span: 1 > Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation permitted, user number passed network screening (1) '6999' ]
PRI Span: 1 > [70 05 80 32 33 34 30]
PRI Span: 1 > Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '2340' ]
PRI Span: 1 q931.c:6036 q931_setup: Call 33153 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/30/2340
> 0x7fdd80008870 -- Probation passed - setting RTP source address to 10.73.224.97:2070
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=14
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: SETUP ACKNOWLEDGE (13)
PRI Span: 1 < [18 03 a9 83 91]
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 1 < ChanSel: As indicated in following octets
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 < Ext: 1 Channel: 17 Type: CPE]
PRI Span: 1 < [1e 02 81 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 24 (cs0, Channel Identification)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 q931.c:8809 post_handle_q931_message: Call 33153 enters state 2 (Overlap Sending). Hold state: Idle
Span 1: Processing event PRI_EVENT_SETUP_ACK(14)
-- Moving call (DAHDI/i1/2340-2a4) from channel 30 to 17.
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8454 post_handle_q931_message: Call 33153 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
-- DAHDI/i1/2340-2a4 is proceeding passing it to SIP/6999-00000298
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: ALERTING (1)
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8319 post_handle_q931_message: Call 33153 enters state 4 (Call Delivered). Hold state: Idle
Span 1: Processing event PRI_EVENT_RINGING(7)
-- DAHDI/i1/2340-2a4 is ringing
В общем нужно звонить по 30 или по 31 каналу, т.е чтобы не было
Moving call (DAHDI/i1/2340-2a4) from channel 30 to XX.
Или звонок перебрасывался конкретно между двумя этими каналами. Через эти каналы будут звонить всего два человека. Остальные могут звонить через произвольные.произвольные. С каналами все впорядке. Если долго звонить, можно поймать переброс с 31 на 30 канал и наоборот.
3 | No.3 Revision редактировать |
Продолжаю копать организацию звонка через конкретный канал DAHDI. Тестовый звонок совершается с экстеншена на аналоговый телефон через TDMoE идущему на мини-АТС DX-500 с помощью команды.
channel originate SIP/6999 application dial DAHDI/30/2340
Т.е. звоню "в лоб" по 30 каналу. Сначала все нормально, звонок идет по 30 каналу но потом перебрасывается на на произвольный. Та же картина при звонке через группу (30,31 каналы), Costum Trunk (прописан конкретный канал) и т.д.
Лог Астериск со включенной отладкой pri.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 09:28:53.648735'},'6999','6999','','','','s','from-internal','SIP/6999-00000298','','',3,'','1477376933.1349','1477376933.1349','','','')]
> 0x7fdd80008870 -- Probation passed - setting RTP source address to 10.73.224.97:2070
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-10-25 09:28:55.840635'},'6999','6999','6999','','','','from-internal','SIP/6999-00000298','','',3,'','1477376933.1349','1477376933.1349','','','')]
-- Launching dial(DAHDI/30/2340) on SIP/6999-00000298
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 09:28:55.842346'},'','','','','','s','from-pstn','DAHDI/i1/2340-2a4','','',3,'','1477376935.1350','1477376933.1349','','','')]
PRI Span: 1 -- Making new call for cref 33153
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=122, window is open V(A)=122 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 9e]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 30 Type: CPE]
PRI Span: 1 > [1e 02 80 83]
PRI Span: 1 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
PRI Span: 1 > Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]
PRI Span: 1 > [28 05 b1 36 39 39 39]
PRI Span: 1 > Display (len= 5) Charset: 31 [ 6999 ]
PRI Span: 1 > [6c 06 21 81 36 39 39 39]
PRI Span: 1 > Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation permitted, user number passed network screening (1) '6999' ]
PRI Span: 1 > [70 05 80 32 33 34 30]
PRI Span: 1 > Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '2340' ]
PRI Span: 1 q931.c:6036 q931_setup: Call 33153 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/30/2340
> 0x7fdd80008870 -- Probation passed - setting RTP source address to 10.73.224.97:2070
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=14
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: SETUP ACKNOWLEDGE (13)
PRI Span: 1 < [18 03 a9 83 91]
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 1 < ChanSel: As indicated in following octets
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 < Ext: 1 Channel: 17 Type: CPE]
PRI Span: 1 < [1e 02 81 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 24 (cs0, Channel Identification)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 q931.c:8809 post_handle_q931_message: Call 33153 enters state 2 (Overlap Sending). Hold state: Idle
Span 1: Processing event PRI_EVENT_SETUP_ACK(14)
-- Moving call (DAHDI/i1/2340-2a4) from channel 30 to 17.
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8454 post_handle_q931_message: Call 33153 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
-- DAHDI/i1/2340-2a4 is proceeding passing it to SIP/6999-00000298
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 385/0x181) (Sent to originator)
PRI Span: 1 < Message Type: ALERTING (1)
PRI Span: 1 Received message for call 0x7fdd80021470 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8319 post_handle_q931_message: Call 33153 enters state 4 (Call Delivered). Hold state: Idle
Span 1: Processing event PRI_EVENT_RINGING(7)
-- DAHDI/i1/2340-2a4 is ringing
В общем нужно звонить по 30 или по 31 каналу, т.е чтобы не было
Moving call (DAHDI/i1/2340-2a4) from channel 30 to XX.
Или звонок перебрасывался конкретно между двумя этими каналами. Через эти каналы будут звонить всего два человека. Остальные могут звонить через произвольные. С каналами все впорядке. Если долго звонить, можно поймать переброс с 31 на 30 канал и наоборот.
Боюсь перегрузить пост информацией, но все же. Перебросы идут постоянно. Если аналоговый телефон занят, то все равно слышны длинные гудки. Это и есть основная проблема. У 30 и 31 канала понижена категория, чтобы слышать занятость. Сейчас ловил переброс с 31 на 30 канал. Из 30 звонков на свободный телефон 1-2 раза такой переброс ловится стабильно. Если же телефон занят, то 1-2 раза происходит то чего я и хочу добиться - сигнал занятости. Лог такого звонка.
des*CLI> channel originate SIP/6999 application dial DAHDI/31/2340
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 10:18:06.902598'},'6999','6999','','','','s','from-internal','SIP/6999-00000352','','',3,'','1477379886.1716','1477379886.1716','','','')]
> 0x7fdd8002d110 -- Probation passed - setting RTP source address to 10.73.224.97:2072
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-10-25 10:18:08.372110'},'6999','6999','6999','','','','from-internal','SIP/6999-00000352','','',3,'','1477379886.1716','1477379886.1716','','','')]
-- Launching dial(DAHDI/31/2340) on SIP/6999-00000352
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-25 10:18:08.376611'},'','','','','','s','from-pstn','DAHDI/i1/2340-359','','',3,'','1477379888.1717','1477379886.1716','','','')]
PRI Span: 1 -- Making new call for cref 33325
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=58, window is open V(A)=58 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=41
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 9f]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 31 Type: CPE]
PRI Span: 1 > [1e 02 80 83]
PRI Span: 1 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: User (0)
PRI Span: 1 > Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]
PRI Span: 1 > [28 05 b1 36 39 39 39]
PRI Span: 1 > Display (len= 5) Charset: 31 [ 6999 ]
PRI Span: 1 > [6c 06 21 81 36 39 39 39]
PRI Span: 1 > Calling Number (len= 8) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation permitted, user number passed network screening (1) '6999' ]
PRI Span: 1 > [70 05 80 32 33 34 30]
PRI Span: 1 > Called Number (len= 7) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '2340' ]
PRI Span: 1 q931.c:6036 q931_setup: Call 33325 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/31/2340
> 0x7fdd8002d110 -- Probation passed - setting RTP source address to 10.73.224.97:2072
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=14
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent to originator)
PRI Span: 1 < Message Type: SETUP ACKNOWLEDGE (13)
PRI Span: 1 < [18 03 a9 83 9f]
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 1 < ChanSel: As indicated in following octets
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 < Ext: 1 Channel: 31 Type: CPE]
PRI Span: 1 < [1e 02 81 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7fdd8003bca0 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 24 (cs0, Channel Identification)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 q931.c:8809 post_handle_q931_message: Call 33325 enters state 2 (Overlap Sending). Hold state: Idle
Span 1: Processing event PRI_EVENT_SETUP_ACK(14)
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent to originator)
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
PRI Span: 1 Received message for call 0x7fdd8003bca0 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8454 post_handle_q931_message: Call 33325 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
-- DAHDI/i1/2340-359 is proceeding passing it to SIP/6999-00000352
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=13
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent to originator)
PRI Span: 1 < Message Type: DISCONNECT (69)
PRI Span: 1 < [08 02 80 91]
PRI Span: 1 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: User (0)
PRI Span: 1 < Ext: 1 Cause: User busy (17), class = Normal Event (1) ]
PRI Span: 1 < [1e 02 81 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7fdd8003bca0 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 8 (cs0, Cause)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 -- Found active call: 0x7fdd8003bca0 cref:33325
PRI Span: 1 q931.c:8707 post_handle_q931_message: Call 33325 enters state 12 (Disconnect Indication). Hold state: Idle
Span 1: Processing event PRI_EVENT_HANGUP_REQ(15)
-- Span 1: Channel 0/31 got hangup request, cause 17
-- DAHDI/i1/2340-359 is busy
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:33325
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
PRI Span: 1 q931.c:5703 q931_release: Call 33325 enters state 19 (Release Request). Hold state: Idle
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 TEI=0 Transmitting N(S)=59, window is open V(A)=59 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 > [08 02 81 91]
PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
PRI Span: 1 > Ext: 1 Cause: User busy (17), class = Normal Event (1) ]
-- Hungup 'DAHDI/i1/2340-359'
== Everyone is busy/congested at this time (1:1/0/0)
> [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid) VALUES ({ ts '2016-10-25 10:18:06' },'"6999" <6999>','6999','s','from-internal','SIP/6999-00000352','DAHDI/i1/2340-359','Dial','DAHDI/31/2340',2,0,'BUSY',3,'1477379886.1716')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2016-10-25 10:18:08.497409'},'','','0784','','','','from-pstn','DAHDI/i1/2340-359','AppDial','(Outgoing Line)',3,'','1477379888.1717','1477379886.1716','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2016-10-25 10:18:08.497619'},'','','0784','','','','from-pstn','DAHDI/i1/2340-359','AppDial','(Outgoing Line)',3,'','1477379888.1717','1477379886.1716','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2016-10-25 10:18:08.497767'},'6999','6999','6999','','','','from-internal','SIP/6999-00000352','','',3,'','1477379886.1716','1477379886.1716','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2016-10-25 10:18:08.499778'},'6999','6999','6999','','','','from-internal','SIP/6999-00000352','','',3,'','1477379886.1716','1477379886.1716','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('LINKEDID_END',{ts '2016-10-25 10:18:08.499789'},'6999','6999','6999','','','','from-internal','SIP/6999-00000352','','',3,'','1477379886.1716','1477379886.1716','','','')]
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 557/0x22D) (Sent to originator)
PRI Span: 1 < Message Type: RELEASE COMPLETE (90)
PRI Span: 1 Received message for call 0x7fdd8003bca0 on link 0x2cf1800 TEI/SAPI 0/0
PRI Span: 1 q931.c:8567 post_handle_q931_message: Call 33325 enters state 0 (Null). Hold state: Idle
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:33325
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 1 Destroying call 0x7fdd8003bca0, ourstate Null, peerstate Null, hold-state Idle
Span 1: Processing event PRI_EVENT_HANGUP_ACK(9)
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.