Channel: <ChannelId........................................> <State.....> <Time.....>
Exten: <DialedExten.............> CLCID: <ConnectedLineCID.......>
==========================================================================================
Channel: PJSIP/752-00009eae/AppDial Ringing 00:00:07
Exten: 220 CLCID: "DC-88007753758: +79045238268" <+79045238268>
Channel: PJSIP/774-00009eac/Dial Up 00:00:14
Exten: s CLCID: "CID:9622088888" <+79060846348>
Channel: PJSIP/803-00009eaf/AppDial Ringing 00:00:07
Exten: 220 CLCID: "DC-88007753758: +79045238268" <+79045238268>
Channel: PJSIP/820-00009eaa/Dial Up 00:01:08
Exten: s CLCID: "CID:9622088888" <79028491178>
Channel: PJSIP/BEELINE_9622088888-00009eab/AppDial Up 00:01:04
Exten: CLCID: "" <9622088888>
Channel: PJSIP/BEELINE_9622088888-00009ead/Return Down 00:00:12
Exten: s CLCID: "" <9622088881>
Objects found: 6
$str = '
Channel: <ChannelId........................................> <State.....> <Time.....>
Exten: <DialedExten.............> CLCID: <ConnectedLineCID.......>
==========================================================================================
Channel: PJSIP/748-00009e7b/AppDial Up 00:00:18
Exten: s CLCID: "IVD-mob-9201105088: +74855238028" <+74855238028>
Channel: PJSIP/803-00009e79/AppDial Up 00:00:37
Exten: s CLCID: "RTK-int-S-88007755008+79021055918" <+79021055918>
Channel: PJSIP/815-00009e78/AppDial Up 00:01:06
Exten: s CLCID: "MTS-ru-S-88007008908+79639104178" <+79639104178>
Channel: PJSIP/820-00009e72/Dial Up 00:02:40
Exten: s CLCID: "CID:9622088888" <+79178858288>
Channel: PJSIP/BEELINE_9622088888-00009e73/AppDial Up 00:02:36
Exten: CLCID: "" <9622088888>
Objects found: 5
';
$subject = 'Channel: Exten: CLCID: ========================================================================================== Channel: PJSIP/739-00009cf3/Dial Up 00:01:15 Exten: s CLCID: "CID:9622088888" <79379853222> Channel: PJSIP/814-00009cf5/Dial Up 00:00:25 Exten: s CLCID: "CID:9622088888" <89119120799> Channel: PJSIP/BEELINE_9622088888-00009cf4/AppDial Up 00:01:13 Exten: CLCID: "" <9622088888> Channel: PJSIP/BEELINE_9622088888-00009cf6/AppDial Up 00:00:25 Exten: CLCID: "" <9622088888> Objects found: 4';
$pattern = '.+?PJSIP\/([^-_]+).+?(\d{2}:\d{2}:\d{2}).+?<(\d+)>.+?';
preg_match_all($pattern, $subject, $matches);
print_r($matches);
AddEventHandler("currency", "OnCurrencyRateUpdate", "CurrencyUpdate");
function CurrencyUpdate()
{
CModule::IncludeModule('iblock');
CModule::IncludeModule('catalog');
CModule::IncludeModule('currency');
$rsGroup = \Bitrix\Catalog\GroupTable::getList();
while($arGroup=$rsGroup->fetch())
{
print_r($arGroup);
}
}