{"action":"created","issue":{"url":"https://api.github.com/repos/sipcapture/heplify/issues/45","repository_url":"https://api.github.com/repos/sipcapture/heplify","labels_url":"https://api.github.com/repos/sipcapture/heplify/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/sipcapture/heplify/issues/45/comments","events_url":"https://api.github.com/repos/sipcapture/heplify/issues/45/events","html_url":"https://github.com/sipcapture/heplify/issues/45","id":314427327,"number":45,"title":"Disregarding uninteresting packets (-di) eg: OPTIONS","user":{"login":"00Asgaroth00","id":13218073,"avatar_url":"https://avatars1.githubusercontent.com/u/13218073?v=4","gravatar_id":"","url":"https://api.github.com/users/00Asgaroth00","html_url":"https://github.com/00Asgaroth00","followers_url":"https://api.github.com/users/00Asgaroth00/followers","following_url":"https://api.github.com/users/00Asgaroth00/following{/other_user}","gists_url":"https://api.github.com/users/00Asgaroth00/gists{/gist_id}","starred_url":"https://api.github.com/users/00Asgaroth00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00Asgaroth00/subscriptions","organizations_url":"https://api.github.com/users/00Asgaroth00/orgs","repos_url":"https://api.github.com/users/00Asgaroth00/repos","events_url":"https://api.github.com/users/00Asgaroth00/events{/privacy}","received_events_url":"https://api.github.com/users/00Asgaroth00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-15T15:54:48Z","updated_at":"2018-04-21T18:07:09Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nHow does the \"disregard uninteresting\" option work. Does it disregard based on the sip method (and associated replies) or is it essentially an exclusion of a particular sip method if some of its headers/header-content match the string given to \"-di\"?\r\n\r\nAs an example, if I want to exclude all OPTIONS messages and associated responses, then I try to run as follows:\r\n```\r\nheplify -pr 5060 -hs homer_ip:port -di \" OPTIONS\"\r\n```\r\nThe above example has a space preceding the word OPTIONS, I've also tried it without pre/post spaces.\r\n\r\nWhen I run the above command, options messages are excluded, but, I've noticed, that some messages that contain the word options in it are also excluded. An example, an initial INVITE message that has an \"Allows:\" header that contains the word OPTIONS. Using spaces to try and overcome the exclusion of the INVITE only results in other UA's initial invite being excluded.\r\n\r\nIf \"-di\" is indeed a \"grep\" style match across a message to be excluded, would it be possible to have an additional option that would exclude a sip method and associated responses. So instead of checking headers/bodies for a string match, check the sip method (INVITE/REGISTER/OPTIONS etc) and exclude it based on the sip method? By exclude I mean to exclude the message and associated responses.\r\n\r\nIf we could have an option to exclude on sip method, would it be possible to allow multiple exclusions, as an example(s), if the new arg option was \"-dim\":\r\n```\r\nheplify -pr 5060 -hs homer_ip:port -dim \"OPTIONS\"\r\nheplify -pr 5060 -hs homer_ip:port -dim \"OPTIONS|SUBSCRIBE\"\r\nheplify -pr 5060 -hs homer_ip:port -dim \"OPTIONS|SUBSCRIBE|PUBLISH\"\r\n```\r\n\r\nThanks for reading :)"},"comment":{"url":"https://api.github.com/repos/sipcapture/heplify/issues/comments/383317282","html_url":"https://github.com/sipcapture/heplify/issues/45#issuecomment-383317282","issue_url":"https://api.github.com/repos/sipcapture/heplify/issues/45","id":383317282,"user":{"login":"negbie","id":20154956,"avatar_url":"https://avatars0.githubusercontent.com/u/20154956?v=4","gravatar_id":"","url":"https://api.github.com/users/negbie","html_url":"https://github.com/negbie","followers_url":"https://api.github.com/users/negbie/followers","following_url":"https://api.github.com/users/negbie/following{/other_user}","gists_url":"https://api.github.com/users/negbie/gists{/gist_id}","starred_url":"https://api.github.com/users/negbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negbie/subscriptions","organizations_url":"https://api.github.com/users/negbie/orgs","repos_url":"https://api.github.com/users/negbie/repos","events_url":"https://api.github.com/users/negbie/events{/privacy}","received_events_url":"https://api.github.com/users/negbie/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T18:07:09Z","updated_at":"2018-04-21T18:07:09Z","author_association":"MEMBER","body":"Hi, \r\nwhen you compile latest source you should have a new flag -dim\r\nWith that you are able to drop comma separated SIP methods (-dim \"OPTIONS,NOTIFY\")\r\n"}}
{"actor":{"display_login":"negbie"}}