在 freeswitch 中是否有可能使用脚本重新加载 xml

In freeswitch is there any possibility to reload xml using script

添加用户后, 如何使用脚本重新加载 Dial-plan XML 动态。

使用 EventSocket 或只是一个 shell 脚本调用 fscli -x "reloadxml"

我知道这是旧的,但我需要用 Python 来做这个,所以我想我会分享。感谢 DanB 的好回答。

Python 3.5:

import subprocess

subprocess.call('fs_cli -x "reloadxml"', shell=True)