Skip to content

Commit

Permalink
Merge pull request #70 from iKonoTelecomunicaciones/69-correction-han…
Browse files Browse the repository at this point in the history
…gup-node

fix(node): 📝 Fixes documentation and info logs in node hangup
  • Loading branch information
egalvis39 committed Nov 7, 2023
2 parents 45ba923 + fe3607f commit 86b39f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ivrflow/models/nodes/hangup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ class Hangup(FlowObject):
## Hangup a channel.
Hangs up the specified channel.
If no channel name is given, hangs up the current channel.
content:
```
- id: p1
type: hangup
chan: SIP/101-123456789
chan: SIP/XXXXXX
```
"""

Expand Down
2 changes: 1 addition & 1 deletion ivrflow/nodes/hangup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ async def _update_node(self):
)

async def run(self):
self.log.info(f"Channel {self.channel.channel_uniqueid} enters record_file node {self.id}")
self.log.info(f"Channel {self.channel.channel_uniqueid} enters hangup node {self.id}")
await self.asterisk_conn.agi.hangup(channel=self.chan)
await self._update_node()

0 comments on commit 86b39f7

Please sign in to comment.