#!/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("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile") sys.stdout.write(profile.num_to_callerid(sys.argv[1])) else: print >> sys.stderr, "Usage %s {user}" % sys.argv[0]