Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node): 📝 Fixes documentation and info logs in node hangup #70

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()