{"action":"created","comment":{"url":"https://api.github.com/repos/motech/modules/pulls/comments/54394292","id":54394292,"diff_hunk":"@@ -50,7 +49,7 @@ public void handle(OutgoingSms sms, String response, Header[] headers) {\n             getLogger().info(String.format(\"Sent messageId %s '%s' to %s\", messageId, messageForLog(sms),\n                     sms.getRecipients().get(0)));\n             getAuditRecords().add(new SmsRecord(getConfig().getName(), OUTBOUND, sms.getRecipients().get(0),\n-                    sms.getMessage(), now(), DeliveryStatus.DISPATCHED, null, sms.getMotechId(), messageId, null));\n+                    sms.getMessage(), now(), getTemplateOutgoingResponse().getSuccessStatus(), null, sms.getMotechId(), messageId, null));","path":"sms/src/main/java/org/motechproject/sms/http/MultilineSingleResponseHandler.java","position":13,"original_position":13,"commit_id":"8a146c7ad9c20e2f0d84fc88c097784e91455100","original_commit_id":"8a146c7ad9c20e2f0d84fc88c097784e91455100","user":{"login":"sebbrudzinski","id":8852946,"avatar_url":"https://avatars.githubusercontent.com/u/8852946?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbrudzinski","html_url":"https://github.com/sebbrudzinski","followers_url":"https://api.github.com/users/sebbrudzinski/followers","following_url":"https://api.github.com/users/sebbrudzinski/following{/other_user}","gists_url":"https://api.github.com/users/sebbrudzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbrudzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbrudzinski/subscriptions","organizations_url":"https://api.github.com/users/sebbrudzinski/orgs","repos_url":"https://api.github.com/users/sebbrudzinski/repos","events_url":"https://api.github.com/users/sebbrudzinski/events{/privacy}","received_events_url":"https://api.github.com/users/sebbrudzinski/received_events","type":"User","site_admin":false},"body":"\r\n@sebbrudzinski\r\nMOTECH member\r\nsebbrudzinski added a note 30 seconds ago\r\n\r\nAccording to the javadocs, this field contains the status, that the provider considers as success. Are you sure this is the proper field to use? Won't this always put the success in the logs, no matter what the actual response was?","created_at":"2016-02-29T10:48:25Z","updated_at":"2016-02-29T10:48:25Z","html_url":"https://github.com/motech/modules/pull/130#discussion_r54394292","pull_request_url":"https://api.github.com/repos/motech/modules/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/comments/54394292"},"html":{"href":"https://github.com/motech/modules/pull/130#discussion_r54394292"},"pull_request":{"href":"https://api.github.com/repos/motech/modules/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/motech/modules/pulls/130","id":58875592,"html_url":"https://github.com/motech/modules/pull/130","diff_url":"https://github.com/motech/modules/pull/130.diff","patch_url":"https://github.com/motech/modules/pull/130.patch","issue_url":"https://api.github.com/repos/motech/modules/issues/130","number":130,"state":"open","locked":false,"title":"MOTECH-1401: IVR & SMS - There should be no Call Status Enum","user":{"login":"1stmateusz","id":15270555,"avatar_url":"https://avatars.githubusercontent.com/u/15270555?v=3","gravatar_id":"","url":"https://api.github.com/users/1stmateusz","html_url":"https://github.com/1stmateusz","followers_url":"https://api.github.com/users/1stmateusz/followers","following_url":"https://api.github.com/users/1stmateusz/following{/other_user}","gists_url":"https://api.github.com/users/1stmateusz/gists{/gist_id}","starred_url":"https://api.github.com/users/1stmateusz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1stmateusz/subscriptions","organizations_url":"https://api.github.com/users/1stmateusz/orgs","repos_url":"https://api.github.com/users/1stmateusz/repos","events_url":"https://api.github.com/users/1stmateusz/events{/privacy}","received_events_url":"https://api.github.com/users/1stmateusz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-10T11:04:51Z","updated_at":"2016-02-29T10:48:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"895b931846be42a291f4530c09a3cd638be70faa","assignee":{"login":"sebbrudzinski","id":8852946,"avatar_url":"https://avatars.githubusercontent.com/u/8852946?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbrudzinski","html_url":"https://github.com/sebbrudzinski","followers_url":"https://api.github.com/users/sebbrudzinski/followers","following_url":"https://api.github.com/users/sebbrudzinski/following{/other_user}","gists_url":"https://api.github.com/users/sebbrudzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbrudzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbrudzinski/subscriptions","organizations_url":"https://api.github.com/users/sebbrudzinski/orgs","repos_url":"https://api.github.com/users/sebbrudzinski/repos","events_url":"https://api.github.com/users/sebbrudzinski/events{/privacy}","received_events_url":"https://api.github.com/users/sebbrudzinski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/motech/modules/pulls/130/commits","review_comments_url":"https://api.github.com/repos/motech/modules/pulls/130/comments","review_comment_url":"https://api.github.com/repos/motech/modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/motech/modules/issues/130/comments","statuses_url":"https://api.github.com/repos/motech/modules/statuses/8a146c7ad9c20e2f0d84fc88c097784e91455100","head":{"label":"1stmateusz:motech-1401","ref":"motech-1401","sha":"8a146c7ad9c20e2f0d84fc88c097784e91455100","user":{"login":"1stmateusz","id":15270555,"avatar_url":"https://avatars.githubusercontent.com/u/15270555?v=3","gravatar_id":"","url":"https://api.github.com/users/1stmateusz","html_url":"https://github.com/1stmateusz","followers_url":"https://api.github.com/users/1stmateusz/followers","following_url":"https://api.github.com/users/1stmateusz/following{/other_user}","gists_url":"https://api.github.com/users/1stmateusz/gists{/gist_id}","starred_url":"https://api.github.com/users/1stmateusz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1stmateusz/subscriptions","organizations_url":"https://api.github.com/users/1stmateusz/orgs","repos_url":"https://api.github.com/users/1stmateusz/repos","events_url":"https://api.github.com/users/1stmateusz/events{/privacy}","received_events_url":"https://api.github.com/users/1stmateusz/received_events","type":"User","site_admin":false},"repo":{"id":45537312,"name":"modules","full_name":"1stmateusz/modules","owner":{"login":"1stmateusz","id":15270555,"avatar_url":"https://avatars.githubusercontent.com/u/15270555?v=3","gravatar_id":"","url":"https://api.github.com/users/1stmateusz","html_url":"https://github.com/1stmateusz","followers_url":"https://api.github.com/users/1stmateusz/followers","following_url":"https://api.github.com/users/1stmateusz/following{/other_user}","gists_url":"https://api.github.com/users/1stmateusz/gists{/gist_id}","starred_url":"https://api.github.com/users/1stmateusz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1stmateusz/subscriptions","organizations_url":"https://api.github.com/users/1stmateusz/orgs","repos_url":"https://api.github.com/users/1stmateusz/repos","events_url":"https://api.github.com/users/1stmateusz/events{/privacy}","received_events_url":"https://api.github.com/users/1stmateusz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/1stmateusz/modules","description":" Mobile Technology for Community Health - Modules","fork":true,"url":"https://api.github.com/repos/1stmateusz/modules","forks_url":"https://api.github.com/repos/1stmateusz/modules/forks","keys_url":"https://api.github.com/repos/1stmateusz/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1stmateusz/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1stmateusz/modules/teams","hooks_url":"https://api.github.com/repos/1stmateusz/modules/hooks","issue_events_url":"https://api.github.com/repos/1stmateusz/modules/issues/events{/number}","events_url":"https://api.github.com/repos/1stmateusz/modules/events","assignees_url":"https://api.github.com/repos/1stmateusz/modules/assignees{/user}","branches_url":"https://api.github.com/repos/1stmateusz/modules/branches{/branch}","tags_url":"https://api.github.com/repos/1stmateusz/modules/tags","blobs_url":"https://api.github.com/repos/1stmateusz/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1stmateusz/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1stmateusz/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/1stmateusz/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1stmateusz/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/1stmateusz/modules/languages","stargazers_url":"https://api.github.com/repos/1stmateusz/modules/stargazers","contributors_url":"https://api.github.com/repos/1stmateusz/modules/contributors","subscribers_url":"https://api.github.com/repos/1stmateusz/modules/subscribers","subscription_url":"https://api.github.com/repos/1stmateusz/modules/subscription","commits_url":"https://api.github.com/repos/1stmateusz/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/1stmateusz/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/1stmateusz/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/1stmateusz/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/1stmateusz/modules/contents/{+path}","compare_url":"https://api.github.com/repos/1stmateusz/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1stmateusz/modules/merges","archive_url":"https://api.github.com/repos/1stmateusz/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1stmateusz/modules/downloads","issues_url":"https://api.github.com/repos/1stmateusz/modules/issues{/number}","pulls_url":"https://api.github.com/repos/1stmateusz/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/1stmateusz/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/1stmateusz/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1stmateusz/modules/labels{/name}","releases_url":"https://api.github.com/repos/1stmateusz/modules/releases{/id}","deployments_url":"https://api.github.com/repos/1stmateusz/modules/deployments","created_at":"2015-11-04T12:23:37Z","updated_at":"2016-01-15T12:55:46Z","pushed_at":"2016-02-26T18:21:17Z","git_url":"git://github.com/1stmateusz/modules.git","ssh_url":"git@github.com:1stmateusz/modules.git","clone_url":"https://github.com/1stmateusz/modules.git","svn_url":"https://github.com/1stmateusz/modules","homepage":"http://modules.motechproject.org","size":31690,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"motech:master","ref":"master","sha":"c7d0cc8ed6d1979a9a5e0a9c585d77fb3660e851","user":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"repo":{"id":19785525,"name":"modules","full_name":"motech/modules","owner":{"login":"motech","id":477919,"avatar_url":"https://avatars.githubusercontent.com/u/477919?v=3","gravatar_id":"","url":"https://api.github.com/users/motech","html_url":"https://github.com/motech","followers_url":"https://api.github.com/users/motech/followers","following_url":"https://api.github.com/users/motech/following{/other_user}","gists_url":"https://api.github.com/users/motech/gists{/gist_id}","starred_url":"https://api.github.com/users/motech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motech/subscriptions","organizations_url":"https://api.github.com/users/motech/orgs","repos_url":"https://api.github.com/users/motech/repos","events_url":"https://api.github.com/users/motech/events{/privacy}","received_events_url":"https://api.github.com/users/motech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/motech/modules","description":" Mobile Technology for Community Health - Modules","fork":false,"url":"https://api.github.com/repos/motech/modules","forks_url":"https://api.github.com/repos/motech/modules/forks","keys_url":"https://api.github.com/repos/motech/modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motech/modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motech/modules/teams","hooks_url":"https://api.github.com/repos/motech/modules/hooks","issue_events_url":"https://api.github.com/repos/motech/modules/issues/events{/number}","events_url":"https://api.github.com/repos/motech/modules/events","assignees_url":"https://api.github.com/repos/motech/modules/assignees{/user}","branches_url":"https://api.github.com/repos/motech/modules/branches{/branch}","tags_url":"https://api.github.com/repos/motech/modules/tags","blobs_url":"https://api.github.com/repos/motech/modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motech/modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motech/modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/motech/modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motech/modules/statuses/{sha}","languages_url":"https://api.github.com/repos/motech/modules/languages","stargazers_url":"https://api.github.com/repos/motech/modules/stargazers","contributors_url":"https://api.github.com/repos/motech/modules/contributors","subscribers_url":"https://api.github.com/repos/motech/modules/subscribers","subscription_url":"https://api.github.com/repos/motech/modules/subscription","commits_url":"https://api.github.com/repos/motech/modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/motech/modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/motech/modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/motech/modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/motech/modules/contents/{+path}","compare_url":"https://api.github.com/repos/motech/modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motech/modules/merges","archive_url":"https://api.github.com/repos/motech/modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motech/modules/downloads","issues_url":"https://api.github.com/repos/motech/modules/issues{/number}","pulls_url":"https://api.github.com/repos/motech/modules/pulls{/number}","milestones_url":"https://api.github.com/repos/motech/modules/milestones{/number}","notifications_url":"https://api.github.com/repos/motech/modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motech/modules/labels{/name}","releases_url":"https://api.github.com/repos/motech/modules/releases{/id}","deployments_url":"https://api.github.com/repos/motech/modules/deployments","created_at":"2014-05-14T15:41:17Z","updated_at":"2016-01-13T08:57:18Z","pushed_at":"2016-02-29T10:34:07Z","git_url":"git://github.com/motech/modules.git","ssh_url":"git@github.com:motech/modules.git","clone_url":"https://github.com/motech/modules.git","svn_url":"https://github.com/motech/modules","homepage":"http://modules.motechproject.org","size":37382,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":12,"forks":32,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/motech/modules/pulls/130"},"html":{"href":"https://github.com/motech/modules/pull/130"},"issue":{"href":"https://api.github.com/repos/motech/modules/issues/130"},"comments":{"href":"https://api.github.com/repos/motech/modules/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/motech/modules/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/motech/modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/motech/modules/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/motech/modules/statuses/8a146c7ad9c20e2f0d84fc88c097784e91455100"}}}}