@ipcom/asterisk-ari 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -865,13 +865,20 @@ function toQueryParams2(options) {
865
865
  ).toString();
866
866
  }
867
867
  var ChannelInstance = class extends import_events.EventEmitter {
868
- constructor(client, baseClient, channelId) {
868
+ constructor(client, baseClient, channelId = `channel-${Date.now()}`) {
869
869
  super();
870
870
  this.client = client;
871
871
  this.baseClient = baseClient;
872
872
  this.channelId = channelId;
873
873
  }
874
874
  channelData = null;
875
+ /**
876
+ * Getter para o ID do canal.
877
+ * Sempre retorna um ID, seja o definido manualmente ou o gerado automaticamente.
878
+ */
879
+ get id() {
880
+ return this.channelId;
881
+ }
875
882
  /**
876
883
  * Origina um canal físico no Asterisk.
877
884
  */