Добрый день!
Внедряем ERP+CRM 3.0
Внедрялось и работает на основе чистого Asterisk панель и журнал звонков.
НО – осталось одно маленькое недоразумение.
В некоторых ситуациях генерируется 2 документа телефонных звонков с одним и тем
же linked id. Они попадают в один МИКОвский тел звонок. Однако документов тел
звонков 2.
Замечено по времени создания, что это возникает после завершения 1го тел звонка
(кладут трубку). В этот момент генерируется 2й.
Прикладываю ЛОГ из документа МИКО тел. Звонка.
Сможете подсказать направление – где возможная ошибка?
{"#",4238019d-7e49-4fc9-91db-b6b951d5cf8e,
{3,
{
{"S","CDR"},
{"#",acf6192e-81ca-46ef-93a6-5a6968b78663,
{9,
{34,
{0,"AcctId",
{"Pattern",
{"L"},
{"N",10,0,1}
},"AcctId",10},
{1,"id_pbx",
{"Pattern",
{"L"},
{"N",10,0,0}
},"id_pbx",10},
{2,"UID",
{"Pattern",
{"L"},
{"N",32,0,1}
},"UID",32},
{3,"calldate",
{"Pattern",
{"D"},
{"L"}
},"calldate",19},
{4,"clid",
{"Pattern",
{"S",50,1},
{"L"}
},"clid",50},
{5,"src",
{"Pattern",
{"S",50,1},
{"L"}
},"src",50},
{6,"dst",
{"Pattern",
{"S",50,1},
{"L"}
},"dst",50},
{7,"answer",
{"Pattern",
{"D"},
{"L"}
},"answer",19},
{8,"dcontext",
{"Pattern",
{"S",300,1},
{"L"}
},"dcontext",300},
{9,"channel",
{"Pattern",
{"S",300,1},
{"L"}
},"channel",300},
{10,"dstchannel",
{"Pattern",
{"S",300,1},
{"L"}
},"dstchannel",300},
{11,"lastapp",
{"Pattern",
{"S",50,1},
{"L"}
},"lastapp",50},
{12,"lastdata",
{"Pattern",
{"S",500,1},
{"L"}
},"lastdata",500},
{13,"start",
{"Pattern",
{"D"},
{"L"}
},"start",19},
{14,"end",
{"Pattern",
{"D"},
{"L"}
},"end",19},
{15,"duration",
{"Pattern",
{"L"},
{"N",10,0,0}
},"duration",10},
{16,"billsec",
{"Pattern",
{"L"},
{"N",10,0,0}
},"billsec",10},
{17,"disposition",
{"Pattern",
{"S",50,1},
{"L"}
},"disposition",50},
{18,"amaflags",
{"Pattern",
{"S",50,1},
{"L"}
},"amaflags",50},
{19,"accountcode",
{"Pattern",
{"S",50,1},
{"L"}
},"accountcode",50},
{20,"uniqueid",
{"Pattern",
{"S",32,1},
{"L"}
},"uniqueid",32},
{21,"userfield",
{"Pattern",
{"S",500,1},
{"L"}
},"userfield",500},
{22,"InternalCalleridNum",
{"Pattern",
{"L"},
{"N",32,0,0}
},"InternalCalleridNum",32},
{23,"recordingfile",
{"Pattern",
{"S",500,1},
{"L"}
},"recordingfile",500},
{24,"origextension",
{"Pattern",
{"S",50,1},
{"L"}
},"origextension",50},
{25,"aocs",
{"Pattern",
{"S",50,1},
{"L"}
},"aocs",50},
{26,"aocd",
{"Pattern",
{"S",50,1},
{"L"}
},"aocd",50},
{27,"aoce",
{"Pattern",
{"S",50,1},
{"L"}
},"aoce",50},
{28,"aoc_costs_per_unit",
{"Pattern",
{"S",50,1},
{"L"}
},"aoc_costs_per_unit",50},
{29,"aoc_costs_per_unit_currency",
{"Pattern",
{"S",50,1},
{"L"}
},"aoc_costs_per_unit_currency",50},
{30,"linkedid",
{"Pattern",
{"S",50,1},
{"L"}
},"linkedid",50},
{31,"did",
{"Pattern",
{"S",50,1},
{"L"}
},"did",50},
{32,"cnum",
{"Pattern",
{"S",30,1},
{"L"}
},"cnum",30},
{33,"cnam",
{"Pattern",
{"S",50,1},
{"L"}
},"cnam",50}
},
{2,34,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33,
{1,1,
{2,0,34,
{"N",383958},
{"N",0},
{"N",11611735533475843},
{"D",20210127151853},
{"S","""9628348324""
<9628348324>"},
{"S","9628348324"},
{"S","73833357161"},
{"D",20210127151853},
{"S","office"},
{"S","SIP/73833357845-0005dbe2"},
{"S","SIP/1139"},
{"S","Queue"},
{"S","nsk_operator,rt"},
{"D",20210127151853},
{"D",20210127151927},
{"N",34},
{"N",34},
{"S","ANSWERED"},
{"S","DOCUMENTATION"},
{"S",""},
{"S","1611735533.475843"},
{"S",""},
{"N",0},
{"S","1611735533.475843.wav"},
{"S",""},
{"S",""},
{"S",""},
{"S",""},
{"S",""},
{"S",""},
{"S","1611735533.475843"},
{"S","73833357161"},
{"S",""},
{"S",""},0}
},33,0},
{0,0}
}
}
},
{
{"S","CEL"},
{"#",acf6192e-81ca-46ef-93a6-5a6968b78663,
{9,
{23,
{0,"AcctId",
{"Pattern",
{"L"},
{"N",10,0,1}
},"AcctId",10},
{1,"id_pbx",
{"Pattern",
{"L"},
{"N",10,0,0}
},"id_pbx",10},
{2,"UID",
{"Pattern",
{"L"},
{"N",32,0,1}
},"UID",32},
{3,"eventtype",
{"Pattern",
{"S",50,1},
{"L"}
},"eventtype",50},
{4,"eventtime",
{"Pattern",
{"D"},
{"L"}
},"eventtime",19},
{5,"cidname",
{"Pattern",
{"S",50,1},
{"L"}
},"cidname",50},
{6,"cidnum",
{"Pattern",
{"S",50,1},
{"L"}
},"cidnum",50},
{7,"cidani",
{"Pattern",
{"S",50,1},
{"L"}
},"cidani",50},
{8,"cidrdnis",
{"Pattern",
{"S",50,1},
{"L"}
},"cidrdnis",50},
{9,"ciddnid",
{"Pattern",
{"S",50,1},
{"L"}
},"ciddnid",50},
{10,"context",
{"Pattern",
{"S",300,1},
{"L"}
},"context",300},
{11,"exten",
{"Pattern",
{"S",50,1},
{"L"}
},"exten",50},
{12,"channame",
{"Pattern",
{"S",300,1},
{"L"}
},"channame",300},
{13,"appname",
{"Pattern",
{"S",50,1},
{"L"}
},"appname",50},
{14,"appdata",
{"Pattern",
{"S",300,1},
{"L"}
},"appdata",300},
{15,"amaflags",
{"Pattern",
{"S",50,1},
{"L"}
},"amaflags",50},
{16,"accountcode",
{"Pattern",
{"S",50,1},
{"L"}
},"accountcode",50},
{17,"uniqueid",
{"Pattern",
{"S",50,1},
{"L"}
},"uniqueid",50},
{18,"peer",
{"Pattern",
{"S",300,1},
{"L"}
},"peer",300},
{19,"userdeftype",
{"Pattern",
{"S",50,1},
{"L"}
},"userdeftype",50},
{20,"eventextra",
{"Pattern",
{"S",50,1},
{"L"}
},"eventextra",50},
{21,"linkedid",
{"Pattern",
{"S",32,1},
{"L"}
},"linkedid",32},
{22,"userfield",
{"Pattern",
{"S",50,1},
{"L"}
},"userfield",50}
},
{2,23,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,
{1,2,
{2,0,23,
{"N",471705},
{"N",0},
{"N",11611735533475843},
{"S","BRIDGE_START"},
{"D",20210127151917},
{"S","9628348324"},
{"S","9628348324"},
{"S","9628348324"},
{"S",""},
{"S","73833357161"},
{"S","office"},
{"S","73833357161"},
{"S","SIP/73833357845-0005dbe2"},
{"S","Queue"},
{"S","nsk_operator,rt"},
{"S","3"},
{"S",""},
{"S","1611735533.475843"},
{"S","SIP/1139-0005dbf0"},
{"S",""},
{"S",""},
{"S","1611735533.475843"},
{"S",""},0},
{2,1,23,
{"N",471707},
{"N",0},
{"N",11611735533475843},
{"S","BRIDGE_END"},
{"D",20210127151926},
{"S","9628348324"},
{"S","9628348324"},
{"S","9628348324"},
{"S",""},
{"S","73833357161"},
{"S","office"},
{"S","73833357161"},
{"S","SIP/73833357845-0005dbe2"},
{"S","Queue"},
{"S","nsk_operator,rt"},
{"S","3"},
{"S",""},
{"S","1611735533.475843"},
{"S","SIP/1139-0005dbf0"},
{"S",""},
{"S",""},
{"S","1611735533.475843"},
{"S",""},0}
},22,1},
{0,0}
}
}
},
{
{"S","АСКОЗИЯ_CDR"},
{"#",acf6192e-81ca-46ef-93a6-5a6968b78663,
{9,
{22,
{0,"AcctId",
{"Pattern",
{"L"},
{"N",10,0,1}
},"AcctId",10},
{1,"id_pbx",
{"Pattern",
{"L"},
{"N",10,0,0}
},"id_pbx",10},
{2,"UID",
{"Pattern",
{"L"},
{"N",32,0,0}
},"UID",32},
{3,"start",
{"Pattern",
{"D"},
{"L"}
},"start",19},
{4,"answer",
{"Pattern",
{"D"},
{"L"}
},"answer",19},
{5,"end",
{"Pattern",
{"D"},
{"L"}
},"end",19},
{6,"src_chan",
{"Pattern",
{"S",300,1},
{"L"}
},"src_chan",300},
{7,"src_num",
{"Pattern",
{"S",300,1},
{"L"}
},"src_num",300},
{8,"dst_chan",
{"Pattern",
{"S",300,1},
{"L"}
},"dst_chan",300},
{9,"dst_num",
{"Pattern",
{"S",300,1},
{"L"}
},"dst_num",300},
{10,"UNIQUEID",
{"Pattern",
{"S",300,1},
{"L"}
},"UNIQUEID",300},
{11,"linkedid",
{"Pattern",
{"S",300,1},
{"L"}
},"linkedid",300},
{12,"did",
{"Pattern",
{"S",32,1},
{"L"}
},"did",32},
{13,"disposition",
{"Pattern",
{"S",300,1},
{"L"}
},"disposition",300},
{14,"recordingfile",
{"Pattern",
{"S",400,1},
{"L"}
},"recordingfile",400},
{15,"from_account",
{"Pattern",
{"S",300,1},
{"L"}
},"from_account",300},
{16,"to_account",
{"Pattern",
{"S",300,1},
{"L"}
},"to_account",300},
{17,"dialstatus",
{"Pattern",
{"S",50,1},
{"L"}
},"dialstatus",50},
{18,"appname",
{"Pattern",
{"S",50,1},
{"L"}
},"appname",50},
{19,"is_app",
{"Pattern",
{"B"},
{"L"}
},"is_app",2},
{20,"duration",
{"Pattern",
{"L"},
{"N",10,0,0}
},"duration",10},
{21,"billsec",
{"Pattern",
{"L"},
{"N",10,0,0}
},"billsec",10}
},
{2,22,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,
{1,0},21,-1},
{0,0}
}
}
}
}
}
Внедряем ERP+CRM 3.0
Внедрялось и работает на основе чистого Asterisk панель и журнал звонков.
НО – осталось одно маленькое недоразумение.
В некоторых ситуациях генерируется 2 документа телефонных звонков с одним и тем
же linked id. Они попадают в один МИКОвский тел звонок. Однако документов тел
звонков 2.
Замечено по времени создания, что это возникает после завершения 1го тел звонка
(кладут трубку). В этот момент генерируется 2й.
Прикладываю ЛОГ из документа МИКО тел. Звонка.
Сможете подсказать направление – где возможная ошибка?
{"#",4238019d-7e49-4fc9-91db-b6b951d5cf8e,
{3,
{
{"S","CDR"},
{"#",acf6192e-81ca-46ef-93a6-5a6968b78663,
{9,
{34,
{0,"AcctId",
{"Pattern",
{"L"},
{"N",10,0,1}
},"AcctId",10},
{1,"id_pbx",
{"Pattern",
{"L"},
{"N",10,0,0}
},"id_pbx",10},
{2,"UID",
{"Pattern",
{"L"},
{"N",32,0,1}
},"UID",32},
{3,"calldate",
{"Pattern",
{"D"},
{"L"}
},"calldate",19},
{4,"clid",
{"Pattern",
{"S",50,1},
{"L"}
},"clid",50},
{5,"src",
{"Pattern",
{"S",50,1},
{"L"}
},"src",50},
{6,"dst",
{"Pattern",
{"S",50,1},
{"L"}
},"dst",50},
{7,"answer",
{"Pattern",
{"D"},
{"L"}
},"answer",19},
{8,"dcontext",
{"Pattern",
{"S",300,1},
{"L"}
},"dcontext",300},
{9,"channel",
{"Pattern",
{"S",300,1},
{"L"}
},"channel",300},
{10,"dstchannel",
{"Pattern",
{"S",300,1},
{"L"}
},"dstchannel",300},
{11,"lastapp",
{"Pattern",
{"S",50,1},
{"L"}
},"lastapp",50},
{12,"lastdata",
{"Pattern",
{"S",500,1},
{"L"}
},"lastdata",500},
{13,"start",
{"Pattern",
{"D"},
{"L"}
},"start",19},
{14,"end",
{"Pattern",
{"D"},
{"L"}
},"end",19},
{15,"duration",
{"Pattern",
{"L"},
{"N",10,0,0}
},"duration",10},
{16,"billsec",
{"Pattern",
{"L"},
{"N",10,0,0}
},"billsec",10},
{17,"disposition",
{"Pattern",
{"S",50,1},
{"L"}
},"disposition",50},
{18,"amaflags",
{"Pattern",
{"S",50,1},
{"L"}
},"amaflags",50},
{19,"accountcode",
{"Pattern",
{"S",50,1},
{"L"}
},"accountcode",50},
{20,"uniqueid",
{"Pattern",
{"S",32,1},
{"L"}
},"uniqueid",32},
{21,"userfield",
{"Pattern",
{"S",500,1},
{"L"}
},"userfield",500},
{22,"InternalCalleridNum",
{"Pattern",
{"L"},
{"N",32,0,0}
},"InternalCalleridNum",32},
{23,"recordingfile",
{"Pattern",
{"S",500,1},
{"L"}
},"recordingfile",500},
{24,"origextension",
{"Pattern",
{"S",50,1},
{"L"}
},"origextension",50},
{25,"aocs",
{"Pattern",
{"S",50,1},
{"L"}
},"aocs",50},
{26,"aocd",
{"Pattern",
{"S",50,1},
{"L"}
},"aocd",50},
{27,"aoce",
{"Pattern",
{"S",50,1},
{"L"}
},"aoce",50},
{28,"aoc_costs_per_unit",
{"Pattern",
{"S",50,1},
{"L"}
},"aoc_costs_per_unit",50},
{29,"aoc_costs_per_unit_currency",
{"Pattern",
{"S",50,1},
{"L"}
},"aoc_costs_per_unit_currency",50},
{30,"linkedid",
{"Pattern",
{"S",50,1},
{"L"}
},"linkedid",50},
{31,"did",
{"Pattern",
{"S",50,1},
{"L"}
},"did",50},
{32,"cnum",
{"Pattern",
{"S",30,1},
{"L"}
},"cnum",30},
{33,"cnam",
{"Pattern",
{"S",50,1},
{"L"}
},"cnam",50}
},
{2,34,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33,
{1,1,
{2,0,34,
{"N",383958},
{"N",0},
{"N",11611735533475843},
{"D",20210127151853},
{"S","""9628348324""
<9628348324>"},
{"S","9628348324"},
{"S","73833357161"},
{"D",20210127151853},
{"S","office"},
{"S","SIP/73833357845-0005dbe2"},
{"S","SIP/1139"},
{"S","Queue"},
{"S","nsk_operator,rt"},
{"D",20210127151853},
{"D",20210127151927},
{"N",34},
{"N",34},
{"S","ANSWERED"},
{"S","DOCUMENTATION"},
{"S",""},
{"S","1611735533.475843"},
{"S",""},
{"N",0},
{"S","1611735533.475843.wav"},
{"S",""},
{"S",""},
{"S",""},
{"S",""},
{"S",""},
{"S",""},
{"S","1611735533.475843"},
{"S","73833357161"},
{"S",""},
{"S",""},0}
},33,0},
{0,0}
}
}
},
{
{"S","CEL"},
{"#",acf6192e-81ca-46ef-93a6-5a6968b78663,
{9,
{23,
{0,"AcctId",
{"Pattern",
{"L"},
{"N",10,0,1}
},"AcctId",10},
{1,"id_pbx",
{"Pattern",
{"L"},
{"N",10,0,0}
},"id_pbx",10},
{2,"UID",
{"Pattern",
{"L"},
{"N",32,0,1}
},"UID",32},
{3,"eventtype",
{"Pattern",
{"S",50,1},
{"L"}
},"eventtype",50},
{4,"eventtime",
{"Pattern",
{"D"},
{"L"}
},"eventtime",19},
{5,"cidname",
{"Pattern",
{"S",50,1},
{"L"}
},"cidname",50},
{6,"cidnum",
{"Pattern",
{"S",50,1},
{"L"}
},"cidnum",50},
{7,"cidani",
{"Pattern",
{"S",50,1},
{"L"}
},"cidani",50},
{8,"cidrdnis",
{"Pattern",
{"S",50,1},
{"L"}
},"cidrdnis",50},
{9,"ciddnid",
{"Pattern",
{"S",50,1},
{"L"}
},"ciddnid",50},
{10,"context",
{"Pattern",
{"S",300,1},
{"L"}
},"context",300},
{11,"exten",
{"Pattern",
{"S",50,1},
{"L"}
},"exten",50},
{12,"channame",
{"Pattern",
{"S",300,1},
{"L"}
},"channame",300},
{13,"appname",
{"Pattern",
{"S",50,1},
{"L"}
},"appname",50},
{14,"appdata",
{"Pattern",
{"S",300,1},
{"L"}
},"appdata",300},
{15,"amaflags",
{"Pattern",
{"S",50,1},
{"L"}
},"amaflags",50},
{16,"accountcode",
{"Pattern",
{"S",50,1},
{"L"}
},"accountcode",50},
{17,"uniqueid",
{"Pattern",
{"S",50,1},
{"L"}
},"uniqueid",50},
{18,"peer",
{"Pattern",
{"S",300,1},
{"L"}
},"peer",300},
{19,"userdeftype",
{"Pattern",
{"S",50,1},
{"L"}
},"userdeftype",50},
{20,"eventextra",
{"Pattern",
{"S",50,1},
{"L"}
},"eventextra",50},
{21,"linkedid",
{"Pattern",
{"S",32,1},
{"L"}
},"linkedid",32},
{22,"userfield",
{"Pattern",
{"S",50,1},
{"L"}
},"userfield",50}
},
{2,23,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,
{1,2,
{2,0,23,
{"N",471705},
{"N",0},
{"N",11611735533475843},
{"S","BRIDGE_START"},
{"D",20210127151917},
{"S","9628348324"},
{"S","9628348324"},
{"S","9628348324"},
{"S",""},
{"S","73833357161"},
{"S","office"},
{"S","73833357161"},
{"S","SIP/73833357845-0005dbe2"},
{"S","Queue"},
{"S","nsk_operator,rt"},
{"S","3"},
{"S",""},
{"S","1611735533.475843"},
{"S","SIP/1139-0005dbf0"},
{"S",""},
{"S",""},
{"S","1611735533.475843"},
{"S",""},0},
{2,1,23,
{"N",471707},
{"N",0},
{"N",11611735533475843},
{"S","BRIDGE_END"},
{"D",20210127151926},
{"S","9628348324"},
{"S","9628348324"},
{"S","9628348324"},
{"S",""},
{"S","73833357161"},
{"S","office"},
{"S","73833357161"},
{"S","SIP/73833357845-0005dbe2"},
{"S","Queue"},
{"S","nsk_operator,rt"},
{"S","3"},
{"S",""},
{"S","1611735533.475843"},
{"S","SIP/1139-0005dbf0"},
{"S",""},
{"S",""},
{"S","1611735533.475843"},
{"S",""},0}
},22,1},
{0,0}
}
}
},
{
{"S","АСКОЗИЯ_CDR"},
{"#",acf6192e-81ca-46ef-93a6-5a6968b78663,
{9,
{22,
{0,"AcctId",
{"Pattern",
{"L"},
{"N",10,0,1}
},"AcctId",10},
{1,"id_pbx",
{"Pattern",
{"L"},
{"N",10,0,0}
},"id_pbx",10},
{2,"UID",
{"Pattern",
{"L"},
{"N",32,0,0}
},"UID",32},
{3,"start",
{"Pattern",
{"D"},
{"L"}
},"start",19},
{4,"answer",
{"Pattern",
{"D"},
{"L"}
},"answer",19},
{5,"end",
{"Pattern",
{"D"},
{"L"}
},"end",19},
{6,"src_chan",
{"Pattern",
{"S",300,1},
{"L"}
},"src_chan",300},
{7,"src_num",
{"Pattern",
{"S",300,1},
{"L"}
},"src_num",300},
{8,"dst_chan",
{"Pattern",
{"S",300,1},
{"L"}
},"dst_chan",300},
{9,"dst_num",
{"Pattern",
{"S",300,1},
{"L"}
},"dst_num",300},
{10,"UNIQUEID",
{"Pattern",
{"S",300,1},
{"L"}
},"UNIQUEID",300},
{11,"linkedid",
{"Pattern",
{"S",300,1},
{"L"}
},"linkedid",300},
{12,"did",
{"Pattern",
{"S",32,1},
{"L"}
},"did",32},
{13,"disposition",
{"Pattern",
{"S",300,1},
{"L"}
},"disposition",300},
{14,"recordingfile",
{"Pattern",
{"S",400,1},
{"L"}
},"recordingfile",400},
{15,"from_account",
{"Pattern",
{"S",300,1},
{"L"}
},"from_account",300},
{16,"to_account",
{"Pattern",
{"S",300,1},
{"L"}
},"to_account",300},
{17,"dialstatus",
{"Pattern",
{"S",50,1},
{"L"}
},"dialstatus",50},
{18,"appname",
{"Pattern",
{"S",50,1},
{"L"}
},"appname",50},
{19,"is_app",
{"Pattern",
{"B"},
{"L"}
},"is_app",2},
{20,"duration",
{"Pattern",
{"L"},
{"N",10,0,0}
},"duration",10},
{21,"billsec",
{"Pattern",
{"L"},
{"N",10,0,0}
},"billsec",10}
},
{2,22,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,
{1,0},21,-1},
{0,0}
}
}
}
}
}