{"action":"created","issue":{"url":"https://api.github.com/repos/sipcapture/homer-api/issues/69","labels_url":"https://api.github.com/repos/sipcapture/homer-api/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/sipcapture/homer-api/issues/69/comments","events_url":"https://api.github.com/repos/sipcapture/homer-api/issues/69/events","html_url":"https://github.com/sipcapture/homer-api/issues/69","id":128789532,"number":69,"title":"Cannot read property 'id' of undefined.","user":{"login":"AlessioCasco","id":5306425,"avatar_url":"https://avatars.githubusercontent.com/u/5306425?v=3","gravatar_id":"","url":"https://api.github.com/users/AlessioCasco","html_url":"https://github.com/AlessioCasco","followers_url":"https://api.github.com/users/AlessioCasco/followers","following_url":"https://api.github.com/users/AlessioCasco/following{/other_user}","gists_url":"https://api.github.com/users/AlessioCasco/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessioCasco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessioCasco/subscriptions","organizations_url":"https://api.github.com/users/AlessioCasco/orgs","repos_url":"https://api.github.com/users/AlessioCasco/repos","events_url":"https://api.github.com/users/AlessioCasco/events{/privacy}","received_events_url":"https://api.github.com/users/AlessioCasco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-26T10:55:44Z","updated_at":"2016-01-26T11:02:47Z","closed_at":null,"body":"Hello.\r\n\r\nI just noticed, that for a very small amount of calls, HOMER returns me blank results on the details page, even when looks like the DB has all the info on it (at least the data db):\r\n\r\nThis is what I see:\r\n![homer2](https://cloud.githubusercontent.com/assets/5306425/12578303/e65808e6-c417-11e5-88a7-3e27f3f88c80.png)\r\n\r\n* Call flow\r\n![homer1](https://cloud.githubusercontent.com/assets/5306425/12578288/c5ae014a-c417-11e5-8c40-57d5917d106f.jpg)\r\n\r\n* Error I see on the browser console:\r\n```javascript\r\nreloading\r\nresultCtrl.js:37 AUTH TRUE\r\nresultCtrl.js:299 modal1 opened from url trans-1870421790\r\nresultCtrl.js:299 modal1 opened from url trans-1870421790\r\ndialogCtrl.js:296 Get call duration....\r\ndialogCtrl.js:229 modal1 message opened from url message1070437127\r\ndialogCtrl.js:229 modal1 message opened from url message1070437127\r\nangular.js:12520 TypeError: Cannot read property 'id' of undefined\r\n    at dialogCtrl.js:73\r\n    at angular.js:14792\r\n    at r.$eval (angular.js:16052)\r\n    at r.$digest (angular.js:15870)\r\n    at r.$apply (angular.js:16160)\r\n    at g (angular.js:10589)\r\n    at T (angular.js:10787)\r\n    at XMLHttpRequest.w.onload (angular.js:10728)(anonymous function) @ angular.js:12520(anonymous function) @ angular.js:9292(anonymous function) @ angular.js:14800r.$eval @ angular.js:16052r.$digest @ angular.js:15870r.$apply @ angular.js:16160g @ angular.js:10589T @ angular.js:10787w.onload @ angular.js:10728\r\n```\r\n\r\n\r\n* Data on the DB\r\n\r\n```mysql\r\n*************************** 1. row ***************************\r\n              id: 5013880\r\n            date: 2016-01-22 08:34:48\r\n        micro_ts: 1453451687295576\r\n          method: INVITE\r\n    reply_reason: \r\n            ruri: sip:*****@*****\r\n       ruri_user: ***********2\r\n     ruri_domain: \r\n       from_user: ********6\r\n     from_domain: \r\n        from_tag: xxxxxxxx\r\n         to_user: **********2\r\n       to_domain: \r\n          to_tag: \r\n        pid_user: \r\n    contact_user: yyyyyyyy\r\n       auth_user: ***********6\r\n          callid:*********@*************:5060\r\n     callid_aleg: \r\n           via_1: SIP/2.0/UDP a.b.c.d:5060;branch=xxxxxxxxxxx\r\n    via_1_branch: *********\r\n            cseq: 103 INVITE\r\n       diversion: \r\n          reason: \r\n    content_type: application/sdp\r\n            auth: \r\n      user_agent: USER_AGENT_1\r\n       source_ip: a.b.c.d\r\n     source_port: 5060\r\n  destination_ip: d.e.f.g\r\ndestination_port: 5060\r\n      contact_ip: a.b.c.d\r\n    contact_port: 5060\r\n   originator_ip: \r\n originator_port: 0\r\n  correlation_id: *****@*******:5060\r\n   custom_field1: \r\n   custom_field2: \r\n   custom_field3: \r\n           proto: 1\r\n          family: 2\r\n        rtp_stat: \r\n            type: 1\r\n            node: node1:1012\r\n             msg: INVITE [...]\r\n```\r\n\r\nCall was made on the 22nd, query on homer on the 24th, we keep the data for more than 2 days in the db\r\n\r\n```\r\n-----\r\n$maxparts = $ARGV[3] // 7; #7 days How long keep the data in the DB\r\n$newparts = 2; #new partitions for 2 days. Anyway, start this script daily!\r\n@stepsvalues = (86400, 3600, 1800, 900);\r\n$partstep = $ARGV[2] // 0; # 0 - Day, 1 - Hour, 2 - 30 Minutes, 3 - 15 Minutes \r\n------\r\n#Make new table rotate. Homer5 Style. 10 days for calls, 7 days for registrations, 5 days for rest\r\n$new_table 0 10,7,5\r\n```\r\n\r\nAny idea why is this happening?\r\n\r\nThanks Alessio"},"comment":{"url":"https://api.github.com/repos/sipcapture/homer-api/issues/comments/174957794","html_url":"https://github.com/sipcapture/homer-api/issues/69#issuecomment-174957794","issue_url":"https://api.github.com/repos/sipcapture/homer-api/issues/69","id":174957794,"user":{"login":"adubovikov","id":4513061,"avatar_url":"https://avatars.githubusercontent.com/u/4513061?v=3","gravatar_id":"","url":"https://api.github.com/users/adubovikov","html_url":"https://github.com/adubovikov","followers_url":"https://api.github.com/users/adubovikov/followers","following_url":"https://api.github.com/users/adubovikov/following{/other_user}","gists_url":"https://api.github.com/users/adubovikov/gists{/gist_id}","starred_url":"https://api.github.com/users/adubovikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adubovikov/subscriptions","organizations_url":"https://api.github.com/users/adubovikov/orgs","repos_url":"https://api.github.com/users/adubovikov/repos","events_url":"https://api.github.com/users/adubovikov/events{/privacy}","received_events_url":"https://api.github.com/users/adubovikov/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T11:02:47Z","updated_at":"2016-01-26T11:02:47Z","body":"the time between your capture box and capture server are not synced. \r\nplease use ntpdate for this.\r\n"}}