{"action":"created","issue":{"url":"https://api.github.com/repos/alfredh/baresip/issues/70","labels_url":"https://api.github.com/repos/alfredh/baresip/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/alfredh/baresip/issues/70/comments","events_url":"https://api.github.com/repos/alfredh/baresip/issues/70/events","html_url":"https://github.com/alfredh/baresip/issues/70","id":102502782,"number":70,"title":"Switch audio-device","user":{"login":"AlexMarlo","id":213848,"avatar_url":"https://avatars.githubusercontent.com/u/213848?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexMarlo","html_url":"https://github.com/AlexMarlo","followers_url":"https://api.github.com/users/AlexMarlo/followers","following_url":"https://api.github.com/users/AlexMarlo/following{/other_user}","gists_url":"https://api.github.com/users/AlexMarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMarlo/subscriptions","organizations_url":"https://api.github.com/users/AlexMarlo/orgs","repos_url":"https://api.github.com/users/AlexMarlo/repos","events_url":"https://api.github.com/users/AlexMarlo/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMarlo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-22T04:40:38Z","updated_at":"2015-09-20T10:18:10Z","closed_at":null,"body":"I used this feature to switch device on call in other software, so it will be good to have this in baresip\r\n\r\nAnd it will be great if you show me where to looks for this  in the code."},"comment":{"url":"https://api.github.com/repos/alfredh/baresip/issues/comments/141773279","html_url":"https://github.com/alfredh/baresip/issues/70#issuecomment-141773279","issue_url":"https://api.github.com/repos/alfredh/baresip/issues/70","id":141773279,"user":{"login":"alfredh","id":114750,"avatar_url":"https://avatars.githubusercontent.com/u/114750?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredh","html_url":"https://github.com/alfredh","followers_url":"https://api.github.com/users/alfredh/followers","following_url":"https://api.github.com/users/alfredh/following{/other_user}","gists_url":"https://api.github.com/users/alfredh/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredh/subscriptions","organizations_url":"https://api.github.com/users/alfredh/orgs","repos_url":"https://api.github.com/users/alfredh/repos","events_url":"https://api.github.com/users/alfredh/events{/privacy}","received_events_url":"https://api.github.com/users/alfredh/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T10:18:10Z","updated_at":"2015-09-20T10:18:10Z","body":"the code for setting/changing audio-device can be found in audio.c,\r\nlook for ausrc_alloc and auplay_alloc:\r\n\r\nhttps://github.com/alfredh/baresip/blob/master/src/audio.c#L1032\r\n\r\n\r\ncan you please describe your desired behaviour of switch audio-device?\r\n\r\n- are you using baresip program, do you want to update config and update audio-device ?\r\n- are you using libbaresip as a library, do you need exposed functions to set audio dev ?\r\n- do you need to switch input-device, output-device, or both ?\r\n\r\n"}}