scripts/sip/alias_to_num
2013-11-11 17:37:20 +01:00

12 lines
276 B
Python
Executable file

#!/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]