Skip to content

Commit

Permalink
Expose Id to Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele77 committed Oct 29, 2020
1 parent 17aba2b commit 9068a38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.9.1 - 2020-10-29

- Expose Id of the bridge

## Version 0.9.0 - 2020-06-15

- Add Recording::Mute, Recording::Unmute, Recording::Abort and Recording::Delete
Expand Down
2 changes: 1 addition & 1 deletion Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.0
0.9.1
10 changes: 6 additions & 4 deletions aricpp/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,13 @@ class Bridge
Proxy& Destroy()
{
if ( IsDead() ) return Proxy::CreateEmpty();
auto tmp = id;
id.clear();
return Proxy::Command(Method::delete_, "/ari/bridges/"+tmp, client);
isDead = true;
return Proxy::Command(Method::delete_, "/ari/bridges/"+id, client);
}

bool IsDead() const { return id.empty(); }
bool IsDead() const { return isDead; }

const std::string& Id() const { return id; }

private:

Expand All @@ -274,6 +275,7 @@ class Bridge
std::string technology;
std::string bridge_type;
Client* client;
bool isDead = false;
};

template<class Dummy> const Bridge::Role Bridge::RoleBase<Dummy>::announcer{"announcer"};
Expand Down

0 comments on commit 9068a38

Please sign in to comment.