1 | изначальная версия редактировать | |
Есть Е1 поток на нем вести 2 номера. Диалплан для входящих звонков типа exten => s,1,... нужно чтобы с одного входящего номера звонок переходил сразу на определенный внутренний номер но как это сделать чет не соображу. Пните в нужном нарпавлении
2 | No.2 Revision редактировать |
Есть Е1 поток на нем вести 2 номера. Диалплан для входящих звонков типа exten => s,1,... нужно чтобы с одного входящего номера звонок переходил сразу на определенный внутренний номер но как это сделать чет не соображу. Пните в нужном нарпавлении
debug pri span 1
< Protocol Discriminator: Q.931 (8) len=47
< TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent from originator)
< Message Type: SETUP (5)
< [a1]
< Sending Complete (len= 1)
< [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 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]
< [28 0b 38 39 32 35 30 33 34 37 32 35 32]
< Display (len=11) [ 892503472XX ]
< [6c 0d 01 80 38 39 32 35 30 33 34 37 32 35 32]
< Calling Number (len=15) [ Ext: 0 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number not screened (0) '892503472XX' ]
< [70 01 81]
< Called Number (len= 3) [ Ext: 1 TON: Unknown Number Type (0) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '' ]
-- Making new call for cref 252
Received message for call 0x1da3f470 on 0x2aaad012cb70 TEI/SAPI 0/0, call->pri is 0x2aaad012cb70 TEI/SAPI 0/0
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 40 (cs0, Display)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
q931.c:6871 post_handle_q931_message: Call 252 enters state 6 (Call Present). Hold state: Idle
-- Going to extension s|1 because of Complete received
q931.c:4524 q931_call_proceeding: Call 252 enters state 9 (Incoming Call Proceeding). Hold state: Idle
> DL-DATA request
> Protocol Discriminator: Q.931 (8) len=10
> TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent to originator)
> Message Type: CALL PROCEEDING (2)
TEI=0 Transmitting N(S)=102, window is open V(A)=102 K=7
> Protocol Discriminator: Q.931 (8) len=10
> TEI=0 Call Ref: len= 2 (reference 252/0xFC) (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]
-- Accepting call from '892503472XX' to 's' on channel 0/1, span 1
-- Executing [s@menu:1] Answer("DAHDI/1-1", "") in new stack
q931.c:4683 q931_connect: Call 252 enters state 8 (Connect Request). Hold state: Idle
> DL-DATA request
> Protocol Discriminator: Q.931 (8) len=14
> TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent to originator)
> Message Type: CONNECT (7)
TEI=0 Transmitting N(S)=103, window is open V(A)=102 K=7
> Protocol Discriminator: Q.931 (8) len=14
> TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent to originator)
> Message Type: CONNECT (7)
> [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]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
> Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ]
-- Executing [s@menu:2] NoOp("DAHDI/1-1", "Calling from 892503472XX to s") in new stack
-- Executing [s@menu:3] Set("DAHDI/1-1", "choice_counter=1") in new stack
-- Executing [s@menu:4] Wait("DAHDI/1-1", "1) (Ожидание") in new stack
< Protocol Discriminator: Q.931 (8) len=5
< TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent from originator)
< Message Type: CONNECT ACKNOWLEDGE (15)
Received message for call 0x1da3f470 on 0x2aaad012cb70 TEI/SAPI 0/0, call->pri is 0x2aaad012cb70 TEI/SAPI 0/0
q931.c:7024 post_handle_q931_message: Call 252 enters state 10 (Active). Hold state: Idle
-- Executing [s@menu:5] Set("DAHDI/1-1", "TIMEOUT(response)=4") in new stack
-- Response timeout set to 4.000
-- Executing [s@menu:6] Set("DAHDI/1-1", "TIMEOUT(digit)=4") in new stack
-- Digit timeout set to 4.000
-- Executing [s@menu:7] BackGround("DAHDI/1-1", "zdravstujte") in new stack
-- <DAHDI/1-1> Playing 'zdravstujte.slin' (language 'ru')
-- Executing [s@menu:8] BackGround("DAHDI/1-1", "01") in new stack
-- <DAHDI/1-1> Playing '01.slin' (language 'ru')
< Protocol Discriminator: Q.931 (8) len=9
< TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent from originator)
< Message Type: DISCONNECT (69)
< [08 02 82 90]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2)
< Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
Received message for call 0x1da3f470 on 0x2aaad012cb70 TEI/SAPI 0/0, call->pri is 0x2aaad012cb70 TEI/SAPI 0/0
-- Processing IE 8 (cs0, Cause)
-- Found active call: 0x1da3f470 cref:252
q931.c:7201 post_handle_q931_message: Call 252 enters state 12 (Disconnect Indication). Hold state: Idle
-- Channel 0/1, span 1 got hangup request, cause 16
== Spawn extension (menu, s, 8) exited non-zero on 'DAHDI/1-1'
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 252 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 252/0xFC) (Sent to originator)
> Message Type: RELEASE (77)
TEI=0 Transmitting N(S)=104, window is open V(A)=104 K=7
> Protocol Discriminator: Q.931 (8) len=9
> TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent to originator)
> Message Type: RELEASE (77)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Hungup 'DAHDI/1-1'
< Protocol Discriminator: Q.931 (8) len=5
< TEI=0 Call Ref: len= 2 (reference 252/0xFC) (Sent from originator)
< Message Type: RELEASE COMPLETE (90)
Received message for call 0x1da3f470 on 0x2aaad012cb70 TEI/SAPI 0/0, call->pri is 0x2aaad012cb70 TEI/SAPI 0/0
q931.c:7083 post_handle_q931_message: Call 252 enters state 0 (Null). Hold state: Idle
q931_hangup: other hangup
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.