[sip] Alias dynamiques

This commit is contained in:
Valentin Samir 2013-11-11 17:37:20 +01:00
parent 7c6a395972
commit 86906cc6e3
2 changed files with 24 additions and 1 deletions

12
sip/alias_to_num Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from asterisk import Profile
if __name__ == '__main__' :
if len(sys.argv)>1:
profile = Profile()
sys.stdout.write(profile.alias_to_num(sys.argv[1]))
else:
print >> sys.stderr, "Usage %s {alias}" % sys.argv[0]