Skip to content

Commit

Permalink
Fix prev commit (unacceptable "." char in reply FIFO filename?!)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Nov 30, 2022
1 parent f6b9b4f commit e4dee4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opensipscli/communication/fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def execute(method, params):
global fifo_file

jsoncmd = jsonrpc_helper.get_command(method, params)
reply_fifo_file_name = REPLY_FIFO_FILE_TEMPLATE.format(time.time())

# the "_" replacement is necessary, as OpenSIPS rejects "." in file names
reply_fifo_file_name = REPLY_FIFO_FILE_TEMPLATE.format(
str(time.time()).replace('.', '_'))

reply_dir = cfg.get('fifo_reply_dir')
reply_fifo_file = "{}/{}".format(reply_dir, reply_fifo_file_name)

Expand Down

0 comments on commit e4dee4a

Please sign in to comment.