{"action":"created","issue":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/856","repository_url":"https://api.github.com/repos/cgrates/cgrates","labels_url":"https://api.github.com/repos/cgrates/cgrates/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/cgrates/cgrates/issues/856/comments","events_url":"https://api.github.com/repos/cgrates/cgrates/issues/856/events","html_url":"https://github.com/cgrates/cgrates/issues/856","id":279724236,"number":856,"title":"Aliases seems not working with kamailio evapi","user":{"login":"paolovisintin","id":18315788,"avatar_url":"https://avatars0.githubusercontent.com/u/18315788?v=4","gravatar_id":"","url":"https://api.github.com/users/paolovisintin","html_url":"https://github.com/paolovisintin","followers_url":"https://api.github.com/users/paolovisintin/followers","following_url":"https://api.github.com/users/paolovisintin/following{/other_user}","gists_url":"https://api.github.com/users/paolovisintin/gists{/gist_id}","starred_url":"https://api.github.com/users/paolovisintin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolovisintin/subscriptions","organizations_url":"https://api.github.com/users/paolovisintin/orgs","repos_url":"https://api.github.com/users/paolovisintin/repos","events_url":"https://api.github.com/users/paolovisintin/events{/privacy}","received_events_url":"https://api.github.com/users/paolovisintin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2017-12-06T11:48:49Z","updated_at":"2018-02-13T12:44:11Z","closed_at":"2018-02-13T12:09:01Z","author_association":"CONTRIBUTOR","body":"Hi everyone, I'm trying to implement Aliases module ; I'm working with kamailio+evapi ; \r\nin cgr-console everything seems working (`cgr-console 'aliases Direction=\"*out\" Tenant=\"evox.it\" Category=\"call\" Account=\"0409811201\" Subject=\"0409811201\" Context=\"*rating\"'`) but when kamailio makes authentication and asks fot \"Responder.GetDerivedMaxSessionTime\" Cgrates replies : \"ACCOUNT_NOT_FOUND\"; what could be wrong ?\r\n\r\n`tp_aliases`\r\n```\r\n+----+------+-----------+---------+----------+------------+---------+----------------+---------+---------+----------+------------+--------+------------+\r\n| id | tpid | direction | tenant  | category | account    | subject | destination_id | context | target  | original | alias      | weight | created_at |\r\n+----+------+-----------+---------+----------+------------+---------+----------------+---------+---------+----------+------------+--------+------------+\r\n|  1 | 2    | *out      | evox.it | call     | 0409811201 | *any    |                | *rating | Account | *any     | 0409828031 |  10.00 | NULL       |\r\n|  2 | 2    | *out      | evox.it | call     | 0409811202 | *any    |                | *rating | Account | *any     | 0409828031 |  10.00 | NULL       |\r\n+----+------+-----------+---------+----------+------------+---------+----------------+---------+---------+----------+------------+--------+------------+\r\n```\r\non `RALs` ngrep -W byline port 2012\r\n```\r\nT 10.32.0.1:46076 -> 10.32.0.236:2012 [AP]\r\n{\"method\":\"Responder.GetDerivedMaxSessionTime\",\"params\":[{\"CGRID\":\"83cef65a7598474fa6f0ed631b59750d952eac55\",\"RunID\":\"\",\"OrderID\":0,\"OriginHost\":\"127.0.0.1\",\"Source\":\"KAMAILIO_CGR_AUTH_REQUEST\",\"OriginID\":\";\",\"ToR\":\"*voice\",\"RequestType\":\"*prepaid\",\"Direction\":\"*out\",\"Tenant\":\"evox.it\",\"Category\":\"call\",\"Account\":\"0409811201\",\"Subject\":\"0409811201\",\"Destination\":\"0039040123532\",\"SetupTime\":\"2017-12-06T11:30:36Z\",\"PDD\":0,\"AnswerTime\":\"0001-01-01T00:00:00Z\",\"Usage\":0,\"Supplier\":\"\",\"DisconnectCause\":\"\",\"ExtraFields\":{\"cgr_computelcr\":\"true\",\"tr_index\":\"11028\",\"tr_label\":\"537416753\"},\"CostSource\":\"\",\"Cost\":-1,\"CostDetails\":null,\"AccountSummary\":null,\"ExtraInfo\":\"\",\"Rated\":false,\"Partial\":false}],\"id\":8}\r\n\r\n##\r\nT 10.32.0.236:2012 -> 10.32.0.1:46076 [AP]\r\n{\"id\":8,\"result\":null,\"error\":\"ACCOUNT_NOT_FOUND\"}\r\n```\r\n\r\n\r\n`config.json` (abstract)\r\n```\r\n\r\n \"rals\": {\r\n     \"enabled\": true,                        // enable Rater service: <true|false>\r\n     \"aliases_conns\": [\r\n\t\t{\"address\": \"*internal\"}\r\n\t]\r\n},\r\n...\r\n \"aliases\": {\r\n\t\"enabled\": true,\r\n},\r\n```"},"comment":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/comments/365256085","html_url":"https://github.com/cgrates/cgrates/issues/856#issuecomment-365256085","issue_url":"https://api.github.com/repos/cgrates/cgrates/issues/856","id":365256085,"user":{"login":"miromiky","id":34477700,"avatar_url":"https://avatars2.githubusercontent.com/u/34477700?v=4","gravatar_id":"","url":"https://api.github.com/users/miromiky","html_url":"https://github.com/miromiky","followers_url":"https://api.github.com/users/miromiky/followers","following_url":"https://api.github.com/users/miromiky/following{/other_user}","gists_url":"https://api.github.com/users/miromiky/gists{/gist_id}","starred_url":"https://api.github.com/users/miromiky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miromiky/subscriptions","organizations_url":"https://api.github.com/users/miromiky/orgs","repos_url":"https://api.github.com/users/miromiky/repos","events_url":"https://api.github.com/users/miromiky/events{/privacy}","received_events_url":"https://api.github.com/users/miromiky/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T12:44:11Z","updated_at":"2018-02-13T12:44:11Z","author_association":"NONE","body":"Yes Sir, i create the topic. "}}
{"actor":{"display_login":"miromiky"}}