Skip to content

Commit

Permalink
Merge pull request #17 from Otoru/otoru/fix-for-outbound-socket-mode-16
Browse files Browse the repository at this point in the history
Fix for Outbound Socket Mode
  • Loading branch information
Otoru authored Sep 5, 2022
2 parents d734d95 + 57662db commit 694bd47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions genesis/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async def playback(self, path: str, block=True) -> Awaitable[ESLEvent]:
return await self.sendmsg("execute", "playback", path)

logging.debug("Send playback command to freeswitch with block behavior.")
command_is_complete = self._awaitable_complete_command("playback")
command_is_complete = await self._awaitable_complete_command("playback")
response = await self.sendmsg("execute", "playback", path)

logging.debug("Await playback complete event...")
Expand Down Expand Up @@ -126,7 +126,7 @@ async def say(
return await self.sendmsg("execute", "say", arguments)

logging.debug("Send say command to freeswitch with block behavior.")
command_is_complete = self._awaitable_complete_command("say")
command_is_complete = await self._awaitable_complete_command("say")
response = await self.sendmsg("execute", "say", arguments)
logging.debug(f"Response of say command: {response}")

Expand Down Expand Up @@ -177,7 +177,9 @@ async def play_and_get_digits(
logging.debug(
"Send play_and_get_digits command to freeswitch with block behavior."
)
command_is_complete = self._awaitable_complete_command("play_and_get_digits")
command_is_complete = await self._awaitable_complete_command(
"play_and_get_digits"
)
response = await self.sendmsg("execute", "play_and_get_digits", arguments)
logging.debug(f"Response of play_and_get_digits command: {response}")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "genesis"
version = "0.3.4"
version = "0.3.5"
description = "Implementation of FreeSWITCH Event Socket protocol with asyncio"
authors = ["Vitor <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 694bd47

Please sign in to comment.