Commit e6a64c1d authored by Valentin Samir's avatar Valentin Samir

[sip_multidial] On utilise plus sh

parent 18ff6147
...@@ -8,7 +8,7 @@ sys.path.append('/etc/crans/secrets/') ...@@ -8,7 +8,7 @@ sys.path.append('/etc/crans/secrets/')
import secrets import secrets
import lc_ldap.shortcuts import lc_ldap.shortcuts
from sh import asterisk from asterisk_reload_conf import reload_config
conn=lc_ldap.shortcuts.lc_ldap_admin() conn=lc_ldap.shortcuts.lc_ldap_admin()
...@@ -38,4 +38,4 @@ if __name__ == '__main__' : ...@@ -38,4 +38,4 @@ if __name__ == '__main__' :
file.write(multidial) file.write(multidial)
file.close() file.close()
os.rename('/usr/scripts/var/sip/sip_multidial.new','/usr/scripts/var/sip/sip_multidial') os.rename('/usr/scripts/var/sip/sip_multidial.new','/usr/scripts/var/sip/sip_multidial')
print asterisk('-x','dialplan reload') reload_config('dialplan')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment