2015-07-24 08:50:08 Loading scenario bitrix24 2015-07-24 08:50:08 Sent event to JS onPhoneEvent with params [{accessURL = ; accountId = XXXXX ; applicationId = XXXXX ; logURL = ; name = Application.Started ; sessionId = 48475497 ; userId = 1 ; } ; ] 2015-07-24 08:50:08 Sent event to JS onPhoneEvent with params [{callerid = test ; destination = 74012XXXXXX ; displayName = 79112233444 ; fromURI = sip:test@ip.accountName.voximplant.com ; headers = {VI-Client-Device = SIP ; VI-Client-IP = 69.167.178.6 ; VI-Client-Type = user ; } ; id = 16214d90008034a8.1437727808.225341 ; name = Application.CallAlerting ; toURI = sip:74012XXXXXX@ip.accountName.voximplant.com ; } ; ] 2015-07-24 08:50:08 Executing JS command: SetCustomData with params [{data = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:08 Executing JS command: StartAudio with params [{headers = NULL ; id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:08 Executing JS command: PlayToneScript with params [{id = 16214d90008034a8.1437727808.225341 ; loop = true ; script = 440@-19,480@-19;*(2/4/1+2) ; } ; ] 2015-07-24 08:50:08 2015-07-24 08:50:08 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:08 Start INCOMING scenario (version: 9) 2015-07-24 08:50:08 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:08 2015-07-24 08:50:08 2015-07-24 08:50:08 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:08 Pure variables 2015-07-24 08:50:08 Call scenario user: 1 2015-07-24 08:50:08 Call callerId: test 2015-07-24 08:50:08 Sent event to JS onPhoneEvent with params [{headers = {} ; id = 16214d90008034a8.1437727808.225341 ; name = Call.AudioStarted ; } ; ] 2015-07-24 08:50:08 Call destination: 74012XXXXXX 2015-07-24 08:50:08 Call displayName: 79112233444 2015-07-24 08:50:08 Call number/destination: 74012XXXXXX 2015-07-24 08:50:08 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:08 2015-07-24 08:50:09 2015-07-24 08:50:09 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:09 Get B24 config: 2015-07-24 08:50:09 ID: 23 / PORTAL_MODE: RENT / SEARCH_ID: test / PHONE_NAME: 88002501860 / CRM: Y / CRM_RULE: queue / CRM_CREATE: lead / CRM_FORWARD: Y / QUEUE_TIME: 3 / QUEUE_TYPE: evenly / DIRECT_CODE: Y / DIRECT_CODE_RULE: voicemail / RECORDING: Y / RECORDING_TIME: 0 / NO_ANSWER_RULE: voicemail / FORWARD_NUMBER: / FORWARD_LINE: default / TIMEMAN: N / VOICEMAIL: Y / MELODY_LANG: RU / MELODY_WELCOME: http://dl.bitrix24.com/vi/RU01.mp3 / MELODY_WELCOME_ENABLE: Y / MELODY_WAIT: http://dl.bitrix24.com/vi/MELODY.mp3 / MELODY_HOLD: http://dl.bitrix24.com/vi/MELODY.mp3 / DATE_DELETE: null / TO_DELETE: N / MELODY_VOICEMAIL: http://dl.bitrix24.com/vi/RU03.mp3 / PHONE_TITLE: 88002501860 / PORTAL_URL: https://phone.bitrix24.ru/ 2015-07-24 08:50:09 PORTAL_SIGN: -hidden- 2015-07-24 08:50:09 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:09 2015-07-24 08:50:09 2015-07-24 08:50:09 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:09 Call type is: TEST CALL 2015-07-24 08:50:09 Phone number: 74012XXXXXX 2015-07-24 08:50:09 Call to: 79112233444 2015-07-24 08:50:09 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:09 2015-07-24 08:50:09 Call in correct worktime 2015-07-24 08:50:09 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:09 2015-07-24 08:50:09 Executing JS command: AcceptCall with params [{headers = NULL ; id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:09 Executing JS command: Play with params [{id = 16214d90008034a8.1437727808.225341 ; loop = false ; url = http://dl.bitrix24.com/vi/RU01.mp3 ; } ; ] 2015-07-24 08:50:09 Executing JS command: HandleTones with params [{handle = true ; id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:10 Sent event to JS onPhoneEvent with params [{headers = {} ; id = 16214d90008034a8.1437727808.225341 ; name = Call.Connected ; } ; ] 2015-07-24 08:50:17 Sent event to JS onPhoneEvent with params [{id = 16214d90008034a8.1437727808.225341 ; name = Call.PlaybackFinished ; } ; ] 2015-07-24 08:50:17 Executing JS command: Stop with params [{id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:19 Executing JS command: HandleTones with params [{handle = false ; id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:19 2015-07-24 08:50:19 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:19 Direct code is: none 2015-07-24 08:50:19 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:19 2015-07-24 08:50:19 Executing JS command: Play with params [{id = 16214d90008034a8.1437727808.225341 ; loop = true ; url = http://dl.bitrix24.com/vi/MELODY.mp3 ; } ; ] 2015-07-24 08:50:20 2015-07-24 08:50:20 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:20 Get B24 invite answer: {"COMMAND":"wait","TYPE_CONNECT":"crm","USER_ID":"67","USER_HAVE_PHONE":"Y"} 2015-07-24 08:50:20 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:20 2015-07-24 08:50:20 2015-07-24 08:50:20 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:20 Action: Send invite to phone67 2015-07-24 08:50:20 from number: 74012XXXXXX 2015-07-24 08:50:20 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:20 2015-07-24 08:50:20 Executing JS command: CallUser with params [{id = viXMtbt2TrSdBzRsqoyzSUQTaqDxKESGr_bNdm7UuBI ; } ; {callerid = 79112233444 ; displayName = NULL ; headers = NULL ; username = phone67 ; video = NULL ; } ; ] 2015-07-24 08:50:21 Sent event to JS onPhoneEvent with params [{content = {"COMMAND":"wait","OPERATOR_ID":"67"} ; method = POST ; name = Application.HttpRequest ; path = /request/28ccd1538fd88709.1437727808.225342_38.88.16.65/e2a2f42cebd2f7a2 ; } ; ] 2015-07-24 08:50:21 2015-07-24 08:50:21 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:21 Get command from B24 portal: {"COMMAND":"wait","OPERATOR_ID":"67"} 2015-07-24 08:50:21 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:21 2015-07-24 08:50:22 Sent event to JS onPhoneEvent with params [{content = {"COMMAND":"wait","OPERATOR_ID":"67"} ; method = POST ; name = Application.HttpRequest ; path = /request/28ccd1538fd88709.1437727808.225342_38.88.16.65/e2a2f42cebd2f7a2 ; } ; ] 2015-07-24 08:50:22 2015-07-24 08:50:22 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:22 Get command from B24 portal: {"COMMAND":"wait","OPERATOR_ID":"67"} 2015-07-24 08:50:22 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:22 2015-07-24 08:50:25 Sent event to JS onPhoneEvent with params [{content = {"COMMAND":"user","OPERATOR_ID":"67","USER_ID":67} ; method = POST ; name = Application.HttpRequest ; path = /request/28ccd1538fd88709.1437727808.225342_38.88.16.65/e2a2f42cebd2f7a2 ; } ; ] 2015-07-24 08:50:25 2015-07-24 08:50:25 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:25 Get command from B24 portal: {"COMMAND":"user","OPERATOR_ID":"67","USER_ID":67} 2015-07-24 08:50:25 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:25 2015-07-24 08:50:25 2015-07-24 08:50:25 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:25 Action: Connect to user67 2015-07-24 08:50:25 from number: 74012XXXXXX 2015-07-24 08:50:25 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:25 2015-07-24 08:50:25 Executing JS command: CallUser with params [{id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; } ; {callerid = 79112233444 ; displayName = NULL ; headers = NULL ; username = user67 ; video = NULL ; } ; ] 2015-07-24 08:50:26 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.Ringing ; } ; ] 2015-07-24 08:50:26 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.Ringing ; } ; ] 2015-07-24 08:50:26 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.AudioStarted ; } ; ] 2015-07-24 08:50:26 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.Connected ; } ; ] 2015-07-24 08:50:26 Executing JS command: HangupCall with params [{code = 3.0200E+02 ; headers = NULL ; id = viXMtbt2TrSdBzRsqoyzSUQTaqDxKESGr_bNdm7UuBI ; } ; ] 2015-07-24 08:50:26 Executing JS command: SendMediaBetween with params [{id1 = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; id2 = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:26 Executing JS command: Record with params [{id = 16214d90008034a8.1437727808.225341 ; stereo = false ; } ; ] 2015-07-24 08:50:26 Sent event to JS onPhoneEvent with params [{id = 16214d90008034a8.1437727808.225341 ; name = Call.RecordStarted ; url = http://recordUrl.com/record.mp3 ; } ; ] 2015-07-24 08:50:26 2015-07-24 08:50:26 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:26 Send CallStart: COMMAND=StartCall&CALL_ID=16214d90008034a8.1437727808.225341&CALL_DEVICE=WEBRTC&EXTERNAL=N&USER_ID=67 2015-07-24 08:50:26 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:26 2015-07-24 08:50:26 2015-07-24 08:50:26 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:26 Start recording call: http://recordUrl.com/record.mp3 2015-07-24 08:50:26 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:26 2015-07-24 08:50:31 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.MessageReceived ; text = {"COMMAND":"hold"} ; } ; ] 2015-07-24 08:50:31 2015-07-24 08:50:31 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:31 Get command from B24 user: {"COMMAND":"hold"} 2015-07-24 08:50:31 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:31 2015-07-24 08:50:31 Executing JS command: StopMediaBetween with params [{id1 = 16214d90008034a8.1437727808.225341 ; id2 = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; } ; ] 2015-07-24 08:50:31 Executing JS command: Stop with params [{id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:31 Executing JS command: Play with params [{id = 16214d90008034a8.1437727808.225341 ; loop = true ; url = http://dl.bitrix24.com/vi/MELODY.mp3 ; } ; ] 2015-07-24 08:50:31 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.MessageReceived ; text = {"COMMAND":"meter","PERCENT":100,"GRADE":5} ; } ; ] 2015-07-24 08:50:31 2015-07-24 08:50:31 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:31 Get command from B24 user: {"COMMAND":"meter","PERCENT":100,"GRADE":5} 2015-07-24 08:50:31 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:31 2015-07-24 08:50:36 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.MessageReceived ; text = {"COMMAND":"meter","PERCENT":100,"GRADE":5} ; } ; ] 2015-07-24 08:50:36 2015-07-24 08:50:36 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:36 Get command from B24 user: {"COMMAND":"meter","PERCENT":100,"GRADE":5} 2015-07-24 08:50:36 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:36 2015-07-24 08:50:36 Sent event to JS onPhoneEvent with params [{code = 487 ; headers = {} ; id = viXMtbt2TrSdBzRsqoyzSUQTaqDxKESGr_bNdm7UuBI ; name = Call.Failed ; reason = Request Terminated ; } ; ] 2015-07-24 08:50:39 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.MessageReceived ; text = {"COMMAND":"unhold"} ; } ; ] 2015-07-24 08:50:39 2015-07-24 08:50:39 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:39 Get command from B24 user: {"COMMAND":"unhold"} 2015-07-24 08:50:39 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:39 2015-07-24 08:50:39 Executing JS command: Stop with params [{id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; } ; ] 2015-07-24 08:50:39 Executing JS command: Stop with params [{id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:39 Executing JS command: SendMediaBetween with params [{id1 = 16214d90008034a8.1437727808.225341 ; id2 = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; } ; ] 2015-07-24 08:50:41 Sent event to JS onPhoneEvent with params [{headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.MessageReceived ; text = {"COMMAND":"meter","PERCENT":100,"GRADE":5} ; } ; ] 2015-07-24 08:50:41 2015-07-24 08:50:41 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:41 Get command from B24 user: {"COMMAND":"meter","PERCENT":100,"GRADE":5} 2015-07-24 08:50:41 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:41 2015-07-24 08:50:44 Sent event to JS onPhoneEvent with params [{cost = 0.0000E+00 ; direction = any outgoing voip ; duration = 18 ; headers = {} ; id = aI2BuvHLRLmeITs0LNDdq1O4AmrcWkZUmtayuwx7k_o ; name = Call.Disconnected ; } ; ] 2015-07-24 08:50:44 Executing JS command: HangupCall with params [{code = 6.0300E+02 ; headers = NULL ; id = 16214d90008034a8.1437727808.225341 ; } ; ] 2015-07-24 08:50:44 Sent event to JS onPhoneEvent with params [{content = {"COMMAND":"queue","OPERATOR_ID":"67"} ; method = POST ; name = Application.HttpRequest ; path = /request/28ccd1538fd88709.1437727808.225342_38.88.16.65/e2a2f42cebd2f7a2 ; } ; ] 2015-07-24 08:50:44 2015-07-24 08:50:44 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:44 Get command from B24 portal: {"COMMAND":"queue","OPERATOR_ID":"67"} 2015-07-24 08:50:44 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:44 2015-07-24 08:50:44 Sent event to JS onPhoneEvent with params [{cost = 0.0000E+00 ; direction = any Incoming VoIP ; duration = 34 ; headers = {} ; id = 16214d90008034a8.1437727808.225341 ; name = Call.Disconnected ; } ; ] 2015-07-24 08:50:44 2015-07-24 08:50:44 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:44 Send HangupCall: COMMAND=HangupCall&PHONE_NUMBER=74012XXXXXX&ACCOUNT_SEARCH_ID=test&CALL_ID=16214d90008034a8.1437727808.225341&USER_ID=67 2015-07-24 08:50:44 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:44 2015-07-24 08:50:44 2015-07-24 08:50:44 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:44 Send call history 2015-07-24 08:50:44 Call code: 200 2015-07-24 08:50:44 Call reason: Success call 2015-07-24 08:50:44 Call direction: any%20Incoming%20VoIP 2015-07-24 08:50:44 Call params: COMMAND=AddCallHistory&ACCOUNT_ID=XXXXX&PORTAL_USER_ID=67&APPLICATION_ID=XXXXX&PORTAL_TYPE=RENT&PORTAL_NUMBER=74012XXXXXX&PORTAL_CALL=N&ACCOUNT_SEARCH_ID=test&PHONE_NUMBER=79112233444&URL=http://recordUrl.com/record.mp3&INCOMING=2&CALL_ID=16214d90008034a8.1437727808.225341&CALL_LOG=http://callLog/call.log&CALL_DURATION=34&CALL_START_DATE=1437727826308&CALL_STATUS=true&CALL_QUALITY=100&CALL_DEVICE=WEBRTC&CALL_VOTE=0&COST=0 2015-07-24 08:50:44 ------------------------------------------------------------------------------------------ 2015-07-24 08:50:44 2015-07-24 08:50:45 Sent event to JS onPhoneEvent with params [{cost = 0 ; duration = 18 ; id = 16214d90008034a8.1437727808.225341 ; name = Call.RecordStopped ; reason = Stopped by user ; url = http://recordUrl.com/record.mp3 ; } ; ] 2015-07-24 08:50:45 Executing JS command: close with params [void ; ] 2015-07-24 08:50:45 Session terminated
Source: https://habr.com/ru/post/263915/
All Articles