payload: {"action":"created","issue":{"url":"https://api.github.com/repos/alfredh/baresip/issues/771","repository_url":"https://api.github.com/repos/alfredh/baresip","labels_url":"https://api.github.com/repos/alfredh/baresip/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/alfredh/baresip/issues/771/comments","events_url":"https://api.github.com/repos/alfredh/baresip/issues/771/events","html_url":"https://github.com/alfredh/baresip/issues/771","id":477030166,"node_id":"MDU6SXNzdWU0NzcwMzAxNjY=","number":771,"title":"Baresip as a lib: Attempting to use struct call results in error.","user":{"login":"Alv3s","id":42544369,"node_id":"MDQ6VXNlcjQyNTQ0MzY5","avatar_url":"https://avatars1.githubusercontent.com/u/42544369?v=4","gravatar_id":"","url":"https://api.github.com/users/Alv3s","html_url":"https://github.com/Alv3s","followers_url":"https://api.github.com/users/Alv3s/followers","following_url":"https://api.github.com/users/Alv3s/following{/other_user}","gists_url":"https://api.github.com/users/Alv3s/gists{/gist_id}","starred_url":"https://api.github.com/users/Alv3s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alv3s/subscriptions","organizations_url":"https://api.github.com/users/Alv3s/orgs","repos_url":"https://api.github.com/users/Alv3s/repos","events_url":"https://api.github.com/users/Alv3s/events{/privacy}","received_events_url":"https://api.github.com/users/Alv3s/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-08-05T19:55:03Z","updated_at":"2019-08-06T10:42:06Z","closed_at":"2019-08-06T10:42:06Z","author_association":"NONE","body":"Hello,\r\n\r\nI've been using baresip as a library. Currently I'm passing baresip a callback function that receives a strctu call. As per my understanding, I can read this struct in order to have some context (for instance, I can know which call I'm on). Since I may have to handle a few calls, I need to read this struct to get the peerURI.\r\n\r\nTHe problem is: when you try to do it, the compiler gives the error:\r\n``` error: invalid use of incomplete type 'struct call'```\r\n\r\nThe code is as follows:\r\n```\r\nvoid SIPPlayer::ua_event_handler(struct ua *ua, enum ua_event ev, struct call *call, const char *prm, void *arg)\r\n{\r\n                SIPPlayer* players = (SIPPlayer*)arg;\r\n                logger.Info(\"UA Event: {0}\", uag_event_str(ev));\r\n                switch(ev)\r\n                {\r\n                    case UA_EVENT_CALL_RINGING:\r\n                    {\r\n                        logger.Info(\"Peer URI: {0}\", call->peer_uri);\r\n                        break;\r\n                    }\r\n                }\r\n}\r\n```\r\n\r\nI tried to search for a header with it's declaration but it only happens on ```call.c```which, as expected, is not installed."},"comment":{"url":"https://api.github.com/repos/alfredh/baresip/issues/comments/518616086","html_url":"https://github.com/alfredh/baresip/issues/771#issuecomment-518616086","issue_url":"https://api.github.com/repos/alfredh/baresip/issues/771","id":518616086,"node_id":"MDEyOklzc3VlQ29tbWVudDUxODYxNjA4Ng==","user":{"login":"Alv3s","id":42544369,"node_id":"MDQ6VXNlcjQyNTQ0MzY5","avatar_url":"https://avatars1.githubusercontent.com/u/42544369?v=4","gravatar_id":"","url":"https://api.github.com/users/Alv3s","html_url":"https://github.com/Alv3s","followers_url":"https://api.github.com/users/Alv3s/followers","following_url":"https://api.github.com/users/Alv3s/following{/other_user}","gists_url":"https://api.github.com/users/Alv3s/gists{/gist_id}","starred_url":"https://api.github.com/users/Alv3s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alv3s/subscriptions","organizations_url":"https://api.github.com/users/Alv3s/orgs","repos_url":"https://api.github.com/users/Alv3s/repos","events_url":"https://api.github.com/users/Alv3s/events{/privacy}","received_events_url":"https://api.github.com/users/Alv3s/received_events","type":"User","site_admin":false},"created_at":"2019-08-06T10:42:06Z","updated_at":"2019-08-06T10:42:06Z","author_association":"NONE","body":"@GGGO Thank you. You're a lifesaver!"}}
other: {"actor":{"display_login":"Alv3s"}}