------------------------ 2025.09.15 15:47:18 registerEventListener Array ( [event] => PAMI\Message\Event\NewchannelEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Newchannel [privilege] => call,all [channel] => PJSIP/1001-00000000 [channelstate] => 4 [channelstatedesc] => Ring [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => [connectedlinename] => [language] => en [accountcode] => [context] => from-internal [exten] => 1002 [priority] => 1 [uniqueid] => 1757940438.0 [linkedid] => 1757940438.0 ) [createdDate:protected] => 1757940438 [rawContent:protected] => Event: Newchannel Privilege: call,all Channel: PJSIP/1001-00000000 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: ConnectedLineName: Language: en AccountCode: Context: from-internal Exten: 1002 Priority: 1 Uniqueid: 1757940438.0 Linkedid: 1757940438.0 [channelVariables:protected] => Array ( [pjsip/1001-00000000] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( ) [uniqueids] => Array ( ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:47:18 New NewchannelEvent call Array ( [extNum] => 1001 [callUniqueid] => 1757940438.0 [Exten] => 1002 ) ------------------------ ------------------------ 2025.09.15 15:47:18 queryData Array ( [queryData] => FILTER%5BPHONE%5D=1001&SELECT%5B0%5D=NAME&SELECT%5B1%5D=LAST_NAME ) ------------------------ ------------------------ 2025.09.15 15:47:19 Contact name by extNum Array ( [CallMeCallerIDName] => Vasil'evich_Roman ) ------------------------ ------------------------ 2025.09.15 15:47:19 Trying to set CallMeCallerIDName Array ( [Channel] => PJSIP/1001-00000000 ) ------------------------ ------------------------ 2025.09.15 15:47:19 Trying to set CallMeCallerIDName second step Array ( [resultFromB24] => PAMI\Message\Response\ResponseMessage Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [response] => Success [actionid] => 1757940439.0552 [message] => Variable Set ) [createdDate:protected] => 1757940439 [rawContent:protected] => Response: Success ActionID: 1757940439.0552 Message: Variable Set [channelVariables:protected] => Array ( [default] => Array ( ) ) [events:PAMI\Message\Response\ResponseMessage:private] => Array ( ) [completed:PAMI\Message\Response\ResponseMessage:private] => 1 [eventsCount] => 0 ) ) ------------------------ ------------------------ 2025.09.15 15:47:19 registerEventListener Array ( [event] => PAMI\Message\Event\NewchannelEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Newchannel [privilege] => call,all [channel] => PJSIP/1002-00000001 [channelstate] => 0 [channelstatedesc] => Down [calleridnum] => 1002 [calleridname] => 1002 [connectedlinenum] => [connectedlinename] => [language] => en [accountcode] => [context] => from-internal [exten] => s [priority] => 1 [uniqueid] => 1757940438.1 [linkedid] => 1757940438.0 ) [createdDate:protected] => 1757940439 [rawContent:protected] => Event: Newchannel Privilege: call,all Channel: PJSIP/1002-00000001 ChannelState: 0 ChannelStateDesc: Down CallerIDNum: 1002 CallerIDName: 1002 ConnectedLineNum: ConnectedLineName: Language: en AccountCode: Context: from-internal Exten: s Priority: 1 Uniqueid: 1757940438.1 Linkedid: 1757940438.0 [channelVariables:protected] => Array ( [pjsip/1002-00000001] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( ) [uniqueids] => Array ( [0] => 1757940438.0 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:47:19 New NewchannelEvent call Array ( [extNum] => 1002 [callUniqueid] => 1757940438.1 [Exten] => s ) ------------------------ ------------------------ 2025.09.15 15:47:19 queryData Array ( [queryData] => FILTER%5BPHONE%5D=1002&SELECT%5B0%5D=NAME&SELECT%5B1%5D=LAST_NAME ) ------------------------ ------------------------ 2025.09.15 15:47:19 Contact name by extNum Array ( [CallMeCallerIDName] => test_Sokol'skiy ) ------------------------ ------------------------ 2025.09.15 15:47:19 Trying to set CallMeCallerIDName Array ( [Channel] => PJSIP/1002-00000001 ) ------------------------ ------------------------ 2025.09.15 15:47:19 Trying to set CallMeCallerIDName second step Array ( [resultFromB24] => PAMI\Message\Response\ResponseMessage Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [response] => Success [actionid] => 1757940439.4699 [message] => Variable Set ) [createdDate:protected] => 1757940439 [rawContent:protected] => Response: Success ActionID: 1757940439.4699 Message: Variable Set [channelVariables:protected] => Array ( [default] => Array ( ) ) [events:PAMI\Message\Response\ResponseMessage:private] => Array ( ) [completed:PAMI\Message\Response\ResponseMessage:private] => 1 [eventsCount] => 0 ) ) ------------------------ ------------------------ 2025.09.15 15:47:19 registerEventListener Array ( [event] => PAMI\Message\Event\DialBeginEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => DialBegin [privilege] => call,all [channel] => PJSIP/1001-00000000 [channelstate] => 4 [channelstatedesc] => Ring [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => 1002 [connectedlinename] => 1002 (Доступен) [language] => ru [accountcode] => [context] => dialOne-with-exten [exten] => 1002 [priority] => 2 [uniqueid] => 1757940438.0 [linkedid] => 1757940438.0 [destchannel] => PJSIP/1002-00000001 [destchannelstate] => 0 [destchannelstatedesc] => Down [destcalleridnum] => 1002 [destcalleridname] => 1002 [destconnectedlinenum] => 1001 [destconnectedlinename] => 1001 [destlanguage] => ru [destaccountcode] => [destcontext] => func-apply-sipheaders [destexten] => s [destpriority] => 16 [destuniqueid] => 1757940438.1 [destlinkedid] => 1757940438.0 [dialstring] => 1002/sip:1002@192.168.50.128:5060 ) [createdDate:protected] => 1757940439 [rawContent:protected] => Event: DialBegin Privilege: call,all Channel: PJSIP/1001-00000000 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: 1002 ConnectedLineName: 1002 (Доступен) Language: ru AccountCode: Context: dialOne-with-exten Exten: 1002 Priority: 2 Uniqueid: 1757940438.0 Linkedid: 1757940438.0 DestChannel: PJSIP/1002-00000001 DestChannelState: 0 DestChannelStateDesc: Down DestCallerIDNum: 1002 DestCallerIDName: 1002 DestConnectedLineNum: 1001 DestConnectedLineName: 1001 DestLanguage: ru DestAccountCode: DestContext: func-apply-sipheaders DestExten: s DestPriority: 16 DestUniqueid: 1757940438.1 DestLinkedid: 1757940438.0 DialString: 1002/sip:1002@192.168.50.128:5060 [channelVariables:protected] => Array ( [pjsip/1001-00000000] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( ) [uniqueids] => Array ( [0] => 1757940438.0 [1] => 1757940438.1 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:47:19 queryData Array ( [queryData] => USER_PHONE_INNER=1002&PHONE_NUMBER=1001&TYPE=2&CALL_START_DATE=2025-09-15+15%3A47%3A19&CRM_CREATE=1&SHOW=1 ) ------------------------ ------------------------ 2025.09.15 15:47:20 BITRIX runInputCall result Array ( [result] => Array ( [CALL_ID] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 [CRM_CREATED_LEAD] => [CRM_CREATED_ENTITIES] => Array ( ) [CRM_ENTITY_TYPE] => CONTACT [CRM_ENTITY_ID] => 766 [LEAD_CREATION_ERROR] => ) [time] => Array ( [start] => 1757940439.6278 [finish] => 1757940440.1342 [duration] => 0.50642895698547 [processing] => 0.40241694450378 [date_start] => 2025-09-15T15:47:19+03:00 [date_finish] => 2025-09-15T15:47:20+03:00 ) ) ------------------------ ------------------------ 2025.09.15 15:47:20 queryData Array ( [queryData] => FILTER%5BUF_PHONE_INNER%5D=1002 ) ------------------------ ------------------------ 2025.09.15 15:47:20 queryData Array ( [queryData] => CALL_ID=externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439&USER_ID=1 ) ------------------------ ------------------------ 2025.09.15 15:47:20 New incoming call Array ( [intNum] => 1002 [extNum] => 1001 [callUniqueid] => 1757940438.0 [CALL_ID] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) ------------------------ ------------------------ 2025.09.15 15:47:23 registerEventListener Array ( [event] => PAMI\Message\Event\DialEndEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => DialEnd [privilege] => call,all [channel] => PJSIP/1001-00000000 [channelstate] => 4 [channelstatedesc] => Ring [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => 1002 [connectedlinename] => 1002 [language] => ru [accountcode] => [context] => dialOne-with-exten [exten] => 1002 [priority] => 2 [uniqueid] => 1757940438.0 [linkedid] => 1757940438.0 [destchannel] => PJSIP/1002-00000001 [destchannelstate] => 6 [destchannelstatedesc] => Up [destcalleridnum] => 1002 [destcalleridname] => 1002 [destconnectedlinenum] => 1001 [destconnectedlinename] => 1001 [destlanguage] => ru [destaccountcode] => [destcontext] => from-internal [destexten] => [destpriority] => 1 [destuniqueid] => 1757940438.1 [destlinkedid] => 1757940438.0 [dialstatus] => ANSWER ) [createdDate:protected] => 1757940443 [rawContent:protected] => Event: DialEnd Privilege: call,all Channel: PJSIP/1001-00000000 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: 1002 ConnectedLineName: 1002 Language: ru AccountCode: Context: dialOne-with-exten Exten: 1002 Priority: 2 Uniqueid: 1757940438.0 Linkedid: 1757940438.0 DestChannel: PJSIP/1002-00000001 DestChannelState: 6 DestChannelStateDesc: Up DestCallerIDNum: 1002 DestCallerIDName: 1002 DestConnectedLineNum: 1001 DestConnectedLineName: 1001 DestLanguage: ru DestAccountCode: DestContext: from-internal DestExten: DestPriority: 1 DestUniqueid: 1757940438.1 DestLinkedid: 1757940438.0 DialStatus: ANSWER [channelVariables:protected] => Array ( [pjsip/1001-00000000] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [uniqueids] => Array ( [0] => 1757940438.0 [1] => 1757940438.1 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:47:23 incoming call ANSWER Array ( [intNum] => 1002 [extNum] => 1001 [callUniqueid] => 1757940438.0 [CALL_ID] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) ------------------------ ------------------------ 2025.09.15 15:47:23 queryData Array ( [queryData] => FILTER%5BUF_PHONE_INNER%5D=1002 ) ------------------------ ------------------------ 2025.09.15 15:47:24 queryData Array ( [queryData] => FILTER%5BIS_ONLINE%5D=Y ) ------------------------ ------------------------ 2025.09.15 15:47:28 registerEventListener Array ( [event] => PAMI\Message\Event\HangupEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Hangup [privilege] => call,all [channel] => PJSIP/1002-00000001 [channelstate] => 6 [channelstatedesc] => Up [calleridnum] => 1002 [calleridname] => 1002 [connectedlinenum] => 1001 [connectedlinename] => 1001 [language] => ru [accountcode] => [context] => from-internal [exten] => [priority] => 1 [uniqueid] => 1757940438.1 [linkedid] => 1757940438.0 [cause] => 16 [cause-txt] => Normal Clearing ) [createdDate:protected] => 1757940448 [rawContent:protected] => Event: Hangup Privilege: call,all Channel: PJSIP/1002-00000001 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 1002 CallerIDName: 1002 ConnectedLineNum: 1001 ConnectedLineName: 1001 Language: ru AccountCode: Context: from-internal Exten: Priority: 1 Uniqueid: 1757940438.1 Linkedid: 1757940438.0 Cause: 16 Cause-txt: Normal Clearing [channelVariables:protected] => Array ( [pjsip/1002-00000001] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [uniqueids] => Array ( [0] => 1757940438.0 [1] => 1757940438.1 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940438.0] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:47:28 callUniqueid Array ( [0] => 1757940438.1 ) ------------------------ ------------------------ 2025.09.15 15:47:28 globalsObj Globals Object ( [calls] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [uniqueids] => Array ( [0] => 1757940438.0 [1] => 1757940438.1 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940438.0] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ------------------------ ------------------------ 2025.09.15 15:47:28 New HangupEvent Zero step - params Array ( [0] => 1757940438.1 [1] => Array ( ) [2] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [3] => Array ( ) [4] => Array ( ) ) ------------------------ ------------------------ 2025.09.15 15:47:28 New HangupEvent First step - recording filename URL, intNum, Duration, Disposition Array ( [FullFname] => [call_id] => [intNum] => [Duration] => [Disposition] => ) ------------------------ ------------------------ 2025.09.15 15:47:28 queryData Array ( [queryData] => STATUS_CODE=304 ) ------------------------ ------------------------ 2025.09.15 15:47:28 BITRIX upload Array ( [USER_PHONE_INNER] => [CALL_ID] => [STATUS_CODE] => 304 [DURATION] => [RECORD_URL] => ) ------------------------ ------------------------ 2025.09.15 15:47:28 BITRIX upload result Array ( [error] => [error_description] => USER_ID or USER_PHONE_INNER should be set ) ------------------------ ------------------------ 2025.09.15 15:47:28 New HangupEvent Second Step - upload filename Array ( [error] => [error_description] => USER_ID or USER_PHONE_INNER should be set ) ------------------------ ------------------------ 2025.09.15 15:47:28 registerEventListener Array ( [event] => PAMI\Message\Event\HangupEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Hangup [privilege] => call,all [channel] => PJSIP/1001-00000000 [channelstate] => 6 [channelstatedesc] => Up [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => 1002 [connectedlinename] => 1002 [language] => ru [accountcode] => [context] => macro-hangupcall [exten] => s [priority] => 7 [uniqueid] => 1757940438.0 [linkedid] => 1757940438.0 [cause] => 16 [cause-txt] => Normal Clearing ) [createdDate:protected] => 1757940448 [rawContent:protected] => Event: Hangup Privilege: call,all Channel: PJSIP/1001-00000000 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: 1002 ConnectedLineName: 1002 Language: ru AccountCode: Context: macro-hangupcall Exten: s Priority: 7 Uniqueid: 1757940438.0 Linkedid: 1757940438.0 Cause: 16 Cause-txt: Normal Clearing [channelVariables:protected] => Array ( [pjsip/1001-00000000] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [uniqueids] => Array ( [0] => 1757940438.0 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940438.0] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:47:28 callUniqueid Array ( [0] => 1757940438.0 ) ------------------------ ------------------------ 2025.09.15 15:47:28 globalsObj Globals Object ( [calls] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [uniqueids] => Array ( [0] => 1757940438.0 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940438.0] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ------------------------ ------------------------ 2025.09.15 15:47:28 New HangupEvent Zero step - params Array ( [0] => 1757940438.0 [1] => Array ( ) [2] => Array ( [1757940438.0] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 ) [3] => Array ( ) [4] => Array ( ) ) ------------------------ ------------------------ 2025.09.15 15:47:28 New HangupEvent First step - recording filename URL, intNum, Duration, Disposition Array ( [FullFname] => [call_id] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 [intNum] => 1002 [Duration] => [Disposition] => ) ------------------------ ------------------------ 2025.09.15 15:47:28 queryData Array ( [queryData] => USER_PHONE_INNER=1002&CALL_ID=externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439&STATUS_CODE=304 ) ------------------------ ------------------------ 2025.09.15 15:47:29 BITRIX upload Array ( [USER_PHONE_INNER] => 1002 [CALL_ID] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 [STATUS_CODE] => 304 [DURATION] => [RECORD_URL] => ) ------------------------ ------------------------ 2025.09.15 15:47:29 BITRIX upload result Array ( [result] => Array ( [CALL_ID] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 [EXTERNAL_CALL_ID] => [PORTAL_USER_ID] => 1 [PHONE_NUMBER] => 1001 [PORTAL_NUMBER] => REST_APP: [INCOMING] => 2 [CALL_DURATION] => 0 [CALL_START_DATE] => Array ( ) [CALL_STATUS] => 0 [CALL_VOTE] => 0 [COST] => 0 [COST_CURRENCY] => [CALL_FAILED_CODE] => 304 [CALL_FAILED_REASON] => [REST_APP_ID] => [REST_APP_NAME] => [CRM_ACTIVITY_ID] => 4278 [COMMENT] => [CRM_ENTITY_TYPE] => CONTACT [CRM_ENTITY_ID] => 766 [ID] => 87 ) [time] => Array ( [start] => 1757940448.5681 [finish] => 1757940449.1846 [duration] => 0.61649799346924 [processing] => 0.50608611106873 [date_start] => 2025-09-15T15:47:28+03:00 [date_finish] => 2025-09-15T15:47:29+03:00 ) ) ------------------------ ------------------------ 2025.09.15 15:47:29 New HangupEvent Second Step - upload filename Array ( [result] => Array ( [CALL_ID] => externalCall.57e44864635197db6ef7ba7d756aafaf.1757940439 [EXTERNAL_CALL_ID] => [PORTAL_USER_ID] => 1 [PHONE_NUMBER] => 1001 [PORTAL_NUMBER] => REST_APP: [INCOMING] => 2 [CALL_DURATION] => 0 [CALL_START_DATE] => Array ( ) [CALL_STATUS] => 0 [CALL_VOTE] => 0 [COST] => 0 [COST_CURRENCY] => [CALL_FAILED_CODE] => 304 [CALL_FAILED_REASON] => [REST_APP_ID] => [REST_APP_NAME] => [CRM_ACTIVITY_ID] => 4278 [COMMENT] => [CRM_ENTITY_TYPE] => CONTACT [CRM_ENTITY_ID] => 766 [ID] => 87 ) [time] => Array ( [start] => 1757940448.5681 [finish] => 1757940449.1846 [duration] => 0.61649799346924 [processing] => 0.50608611106873 [date_start] => 2025-09-15T15:47:28+03:00 [date_finish] => 2025-09-15T15:47:29+03:00 ) ) ------------------------ ------------------------ 2025.09.15 15:48:03 registerEventListener Array ( [event] => PAMI\Message\Event\NewchannelEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Newchannel [privilege] => call,all [channel] => PJSIP/1001-00000002 [channelstate] => 4 [channelstatedesc] => Ring [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => [connectedlinename] => [language] => en [accountcode] => [context] => from-internal [exten] => 1002 [priority] => 1 [uniqueid] => 1757940483.3 [linkedid] => 1757940483.3 ) [createdDate:protected] => 1757940483 [rawContent:protected] => Event: Newchannel Privilege: call,all Channel: PJSIP/1001-00000002 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: ConnectedLineName: Language: en AccountCode: Context: from-internal Exten: 1002 Priority: 1 Uniqueid: 1757940483.3 Linkedid: 1757940483.3 [channelVariables:protected] => Array ( [pjsip/1001-00000002] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( ) [uniqueids] => Array ( ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:48:03 New NewchannelEvent call Array ( [extNum] => 1001 [callUniqueid] => 1757940483.3 [Exten] => 1002 ) ------------------------ ------------------------ 2025.09.15 15:48:03 queryData Array ( [queryData] => FILTER%5BPHONE%5D=1001&SELECT%5B0%5D=NAME&SELECT%5B1%5D=LAST_NAME ) ------------------------ ------------------------ 2025.09.15 15:48:03 Contact name by extNum Array ( [CallMeCallerIDName] => Vasil'evich_Roman ) ------------------------ ------------------------ 2025.09.15 15:48:03 Trying to set CallMeCallerIDName Array ( [Channel] => PJSIP/1001-00000002 ) ------------------------ ------------------------ 2025.09.15 15:48:03 Trying to set CallMeCallerIDName second step Array ( [resultFromB24] => PAMI\Message\Response\ResponseMessage Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [response] => Success [actionid] => 1757940483.5713 [message] => Variable Set ) [createdDate:protected] => 1757940483 [rawContent:protected] => Response: Success ActionID: 1757940483.5713 Message: Variable Set [channelVariables:protected] => Array ( [default] => Array ( ) ) [events:PAMI\Message\Response\ResponseMessage:private] => Array ( ) [completed:PAMI\Message\Response\ResponseMessage:private] => 1 [eventsCount] => 0 ) ) ------------------------ ------------------------ 2025.09.15 15:48:03 registerEventListener Array ( [event] => PAMI\Message\Event\NewchannelEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Newchannel [privilege] => call,all [channel] => PJSIP/1002-00000003 [channelstate] => 0 [channelstatedesc] => Down [calleridnum] => 1002 [calleridname] => 1002 [connectedlinenum] => [connectedlinename] => [language] => en [accountcode] => [context] => from-internal [exten] => s [priority] => 1 [uniqueid] => 1757940483.4 [linkedid] => 1757940483.3 ) [createdDate:protected] => 1757940483 [rawContent:protected] => Event: Newchannel Privilege: call,all Channel: PJSIP/1002-00000003 ChannelState: 0 ChannelStateDesc: Down CallerIDNum: 1002 CallerIDName: 1002 ConnectedLineNum: ConnectedLineName: Language: en AccountCode: Context: from-internal Exten: s Priority: 1 Uniqueid: 1757940483.4 Linkedid: 1757940483.3 [channelVariables:protected] => Array ( [pjsip/1002-00000003] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( ) [uniqueids] => Array ( [2] => 1757940483.3 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:48:03 New NewchannelEvent call Array ( [extNum] => 1002 [callUniqueid] => 1757940483.4 [Exten] => s ) ------------------------ ------------------------ 2025.09.15 15:48:03 queryData Array ( [queryData] => FILTER%5BPHONE%5D=1002&SELECT%5B0%5D=NAME&SELECT%5B1%5D=LAST_NAME ) ------------------------ ------------------------ 2025.09.15 15:48:03 Contact name by extNum Array ( [CallMeCallerIDName] => test_Sokol'skiy ) ------------------------ ------------------------ 2025.09.15 15:48:03 Trying to set CallMeCallerIDName Array ( [Channel] => PJSIP/1002-00000003 ) ------------------------ ------------------------ 2025.09.15 15:48:03 Trying to set CallMeCallerIDName second step Array ( [resultFromB24] => PAMI\Message\Response\ResponseMessage Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [response] => Success [actionid] => 1757940483.9751 [message] => Variable Set ) [createdDate:protected] => 1757940483 [rawContent:protected] => Response: Success ActionID: 1757940483.9751 Message: Variable Set [channelVariables:protected] => Array ( [default] => Array ( ) ) [events:PAMI\Message\Response\ResponseMessage:private] => Array ( ) [completed:PAMI\Message\Response\ResponseMessage:private] => 1 [eventsCount] => 0 ) ) ------------------------ ------------------------ 2025.09.15 15:48:03 registerEventListener Array ( [event] => PAMI\Message\Event\DialBeginEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => DialBegin [privilege] => call,all [channel] => PJSIP/1001-00000002 [channelstate] => 4 [channelstatedesc] => Ring [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => 1002 [connectedlinename] => 1002 (Доступен) [language] => ru [accountcode] => [context] => dialOne-with-exten [exten] => 1002 [priority] => 2 [uniqueid] => 1757940483.3 [linkedid] => 1757940483.3 [destchannel] => PJSIP/1002-00000003 [destchannelstate] => 0 [destchannelstatedesc] => Down [destcalleridnum] => 1002 [destcalleridname] => 1002 [destconnectedlinenum] => 1001 [destconnectedlinename] => 1001 [destlanguage] => ru [destaccountcode] => [destcontext] => func-apply-sipheaders [destexten] => s [destpriority] => 16 [destuniqueid] => 1757940483.4 [destlinkedid] => 1757940483.3 [dialstring] => 1002/sip:1002@192.168.50.128:5060 ) [createdDate:protected] => 1757940483 [rawContent:protected] => Event: DialBegin Privilege: call,all Channel: PJSIP/1001-00000002 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: 1002 ConnectedLineName: 1002 (Доступен) Language: ru AccountCode: Context: dialOne-with-exten Exten: 1002 Priority: 2 Uniqueid: 1757940483.3 Linkedid: 1757940483.3 DestChannel: PJSIP/1002-00000003 DestChannelState: 0 DestChannelStateDesc: Down DestCallerIDNum: 1002 DestCallerIDName: 1002 DestConnectedLineNum: 1001 DestConnectedLineName: 1001 DestLanguage: ru DestAccountCode: DestContext: func-apply-sipheaders DestExten: s DestPriority: 16 DestUniqueid: 1757940483.4 DestLinkedid: 1757940483.3 DialString: 1002/sip:1002@192.168.50.128:5060 [channelVariables:protected] => Array ( [pjsip/1001-00000002] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( ) [uniqueids] => Array ( [2] => 1757940483.3 [3] => 1757940483.4 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:48:03 queryData Array ( [queryData] => USER_PHONE_INNER=1002&PHONE_NUMBER=1001&TYPE=2&CALL_START_DATE=2025-09-15+15%3A48%3A03&CRM_CREATE=1&SHOW=1 ) ------------------------ ------------------------ 2025.09.15 15:48:04 BITRIX runInputCall result Array ( [result] => Array ( [CALL_ID] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 [CRM_CREATED_LEAD] => [CRM_CREATED_ENTITIES] => Array ( ) [CRM_ENTITY_TYPE] => CONTACT [CRM_ENTITY_ID] => 766 [LEAD_CREATION_ERROR] => ) [time] => Array ( [start] => 1757940484.1326 [finish] => 1757940484.6576 [duration] => 0.52501010894775 [processing] => 0.42108702659607 [date_start] => 2025-09-15T15:48:04+03:00 [date_finish] => 2025-09-15T15:48:04+03:00 ) ) ------------------------ ------------------------ 2025.09.15 15:48:04 queryData Array ( [queryData] => FILTER%5BUF_PHONE_INNER%5D=1002 ) ------------------------ ------------------------ 2025.09.15 15:48:04 queryData Array ( [queryData] => CALL_ID=externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484&USER_ID=1 ) ------------------------ ------------------------ 2025.09.15 15:48:05 New incoming call Array ( [intNum] => 1002 [extNum] => 1001 [callUniqueid] => 1757940483.3 [CALL_ID] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) ------------------------ ------------------------ 2025.09.15 15:48:07 registerEventListener Array ( [event] => PAMI\Message\Event\DialEndEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => DialEnd [privilege] => call,all [channel] => PJSIP/1001-00000002 [channelstate] => 4 [channelstatedesc] => Ring [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => 1002 [connectedlinename] => 1002 [language] => ru [accountcode] => [context] => dialOne-with-exten [exten] => 1002 [priority] => 2 [uniqueid] => 1757940483.3 [linkedid] => 1757940483.3 [destchannel] => PJSIP/1002-00000003 [destchannelstate] => 6 [destchannelstatedesc] => Up [destcalleridnum] => 1002 [destcalleridname] => 1002 [destconnectedlinenum] => 1001 [destconnectedlinename] => 1001 [destlanguage] => ru [destaccountcode] => [destcontext] => from-internal [destexten] => [destpriority] => 1 [destuniqueid] => 1757940483.4 [destlinkedid] => 1757940483.3 [dialstatus] => ANSWER ) [createdDate:protected] => 1757940487 [rawContent:protected] => Event: DialEnd Privilege: call,all Channel: PJSIP/1001-00000002 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: 1002 ConnectedLineName: 1002 Language: ru AccountCode: Context: dialOne-with-exten Exten: 1002 Priority: 2 Uniqueid: 1757940483.3 Linkedid: 1757940483.3 DestChannel: PJSIP/1002-00000003 DestChannelState: 6 DestChannelStateDesc: Up DestCallerIDNum: 1002 DestCallerIDName: 1002 DestConnectedLineNum: 1001 DestConnectedLineName: 1001 DestLanguage: ru DestAccountCode: DestContext: from-internal DestExten: DestPriority: 1 DestUniqueid: 1757940483.4 DestLinkedid: 1757940483.3 DialStatus: ANSWER [channelVariables:protected] => Array ( [pjsip/1001-00000002] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [uniqueids] => Array ( [2] => 1757940483.3 [3] => 1757940483.4 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:48:07 incoming call ANSWER Array ( [intNum] => 1002 [extNum] => 1001 [callUniqueid] => 1757940483.3 [CALL_ID] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) ------------------------ ------------------------ 2025.09.15 15:48:07 queryData Array ( [queryData] => FILTER%5BUF_PHONE_INNER%5D=1002 ) ------------------------ ------------------------ 2025.09.15 15:48:07 queryData Array ( [queryData] => FILTER%5BIS_ONLINE%5D=Y ) ------------------------ ------------------------ 2025.09.15 15:48:14 registerEventListener Array ( [event] => PAMI\Message\Event\HangupEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Hangup [privilege] => call,all [channel] => PJSIP/1002-00000003 [channelstate] => 6 [channelstatedesc] => Up [calleridnum] => 1002 [calleridname] => 1002 [connectedlinenum] => 1001 [connectedlinename] => 1001 [language] => ru [accountcode] => [context] => from-internal [exten] => [priority] => 1 [uniqueid] => 1757940483.4 [linkedid] => 1757940483.3 [cause] => 16 [cause-txt] => Normal Clearing ) [createdDate:protected] => 1757940494 [rawContent:protected] => Event: Hangup Privilege: call,all Channel: PJSIP/1002-00000003 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 1002 CallerIDName: 1002 ConnectedLineNum: 1001 ConnectedLineName: 1001 Language: ru AccountCode: Context: from-internal Exten: Priority: 1 Uniqueid: 1757940483.4 Linkedid: 1757940483.3 Cause: 16 Cause-txt: Normal Clearing [channelVariables:protected] => Array ( [pjsip/1002-00000003] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [uniqueids] => Array ( [2] => 1757940483.3 [3] => 1757940483.4 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940483.3] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:48:14 callUniqueid Array ( [0] => 1757940483.4 ) ------------------------ ------------------------ 2025.09.15 15:48:14 globalsObj Globals Object ( [calls] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [uniqueids] => Array ( [2] => 1757940483.3 [3] => 1757940483.4 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940483.3] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ------------------------ ------------------------ 2025.09.15 15:48:14 New HangupEvent Zero step - params Array ( [0] => 1757940483.4 [1] => Array ( ) [2] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [3] => Array ( ) [4] => Array ( ) ) ------------------------ ------------------------ 2025.09.15 15:48:14 New HangupEvent First step - recording filename URL, intNum, Duration, Disposition Array ( [FullFname] => [call_id] => [intNum] => [Duration] => [Disposition] => ) ------------------------ ------------------------ 2025.09.15 15:48:14 queryData Array ( [queryData] => STATUS_CODE=304 ) ------------------------ ------------------------ 2025.09.15 15:48:14 BITRIX upload Array ( [USER_PHONE_INNER] => [CALL_ID] => [STATUS_CODE] => 304 [DURATION] => [RECORD_URL] => ) ------------------------ ------------------------ 2025.09.15 15:48:14 BITRIX upload result Array ( [error] => [error_description] => USER_ID or USER_PHONE_INNER should be set ) ------------------------ ------------------------ 2025.09.15 15:48:14 New HangupEvent Second Step - upload filename Array ( [error] => [error_description] => USER_ID or USER_PHONE_INNER should be set ) ------------------------ ------------------------ 2025.09.15 15:48:14 registerEventListener Array ( [event] => PAMI\Message\Event\HangupEvent Object ( [lines:protected] => Array ( ) [variables:protected] => Array ( ) [keys:protected] => Array ( [event] => Hangup [privilege] => call,all [channel] => PJSIP/1001-00000002 [channelstate] => 6 [channelstatedesc] => Up [calleridnum] => 1001 [calleridname] => 1001 [connectedlinenum] => 1002 [connectedlinename] => 1002 [language] => ru [accountcode] => [context] => macro-hangupcall [exten] => s [priority] => 7 [uniqueid] => 1757940483.3 [linkedid] => 1757940483.3 [cause] => 16 [cause-txt] => Normal Clearing ) [createdDate:protected] => 1757940494 [rawContent:protected] => Event: Hangup Privilege: call,all Channel: PJSIP/1001-00000002 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 1001 CallerIDName: 1001 ConnectedLineNum: 1002 ConnectedLineName: 1002 Language: ru AccountCode: Context: macro-hangupcall Exten: s Priority: 7 Uniqueid: 1757940483.3 Linkedid: 1757940483.3 Cause: 16 Cause-txt: Normal Clearing [channelVariables:protected] => Array ( [pjsip/1001-00000002] => Array ( ) ) ) [globalsObj] => Globals Object ( [calls] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [uniqueids] => Array ( [2] => 1757940483.3 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940483.3] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ) ------------------------ ------------------------ 2025.09.15 15:48:14 callUniqueid Array ( [0] => 1757940483.3 ) ------------------------ ------------------------ 2025.09.15 15:48:14 globalsObj Globals Object ( [calls] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [uniqueids] => Array ( [2] => 1757940483.3 ) [FullFnameUrls] => Array ( ) [intNums] => Array ( [1757940483.3] => 1002 ) [Durations] => Array ( ) [Dispositions] => Array ( ) [extensions] => Array ( ) [extentions] => Array ( [0] => 1002 [1] => s ) ) ------------------------ ------------------------ 2025.09.15 15:48:14 New HangupEvent Zero step - params Array ( [0] => 1757940483.3 [1] => Array ( ) [2] => Array ( [1757940483.3] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 ) [3] => Array ( ) [4] => Array ( ) ) ------------------------ ------------------------ 2025.09.15 15:48:14 New HangupEvent First step - recording filename URL, intNum, Duration, Disposition Array ( [FullFname] => [call_id] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 [intNum] => 1002 [Duration] => [Disposition] => ) ------------------------ ------------------------ 2025.09.15 15:48:14 queryData Array ( [queryData] => USER_PHONE_INNER=1002&CALL_ID=externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484&STATUS_CODE=304 ) ------------------------ ------------------------ 2025.09.15 15:48:15 BITRIX upload Array ( [USER_PHONE_INNER] => 1002 [CALL_ID] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 [STATUS_CODE] => 304 [DURATION] => [RECORD_URL] => ) ------------------------ ------------------------ 2025.09.15 15:48:15 BITRIX upload result Array ( [result] => Array ( [CALL_ID] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 [EXTERNAL_CALL_ID] => [PORTAL_USER_ID] => 1 [PHONE_NUMBER] => 1001 [PORTAL_NUMBER] => REST_APP: [INCOMING] => 2 [CALL_DURATION] => 0 [CALL_START_DATE] => Array ( ) [CALL_STATUS] => 0 [CALL_VOTE] => 0 [COST] => 0 [COST_CURRENCY] => [CALL_FAILED_CODE] => 304 [CALL_FAILED_REASON] => [REST_APP_ID] => [REST_APP_NAME] => [CRM_ACTIVITY_ID] => 4279 [COMMENT] => [CRM_ENTITY_TYPE] => CONTACT [CRM_ENTITY_ID] => 766 [ID] => 88 ) [time] => Array ( [start] => 1757940494.4768 [finish] => 1757940495.0558 [duration] => 0.57907199859619 [processing] => 0.48296213150024 [date_start] => 2025-09-15T15:48:14+03:00 [date_finish] => 2025-09-15T15:48:15+03:00 ) ) ------------------------ ------------------------ 2025.09.15 15:48:15 New HangupEvent Second Step - upload filename Array ( [result] => Array ( [CALL_ID] => externalCall.4ffbc57fd1d7b89f366c2146899a9334.1757940484 [EXTERNAL_CALL_ID] => [PORTAL_USER_ID] => 1 [PHONE_NUMBER] => 1001 [PORTAL_NUMBER] => REST_APP: [INCOMING] => 2 [CALL_DURATION] => 0 [CALL_START_DATE] => Array ( ) [CALL_STATUS] => 0 [CALL_VOTE] => 0 [COST] => 0 [COST_CURRENCY] => [CALL_FAILED_CODE] => 304 [CALL_FAILED_REASON] => [REST_APP_ID] => [REST_APP_NAME] => [CRM_ACTIVITY_ID] => 4279 [COMMENT] => [CRM_ENTITY_TYPE] => CONTACT [CRM_ENTITY_ID] => 766 [ID] => 88 ) [time] => Array ( [start] => 1757940494.4768 [finish] => 1757940495.0558 [duration] => 0.57907199859619 [processing] => 0.48296213150024 [date_start] => 2025-09-15T15:48:14+03:00 [date_finish] => 2025-09-15T15:48:15+03:00 ) ) ------------------------