scripts/sip/scripts/alias_to_num

12 lines
293 B
Bash
Executable file

#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
from sip.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]