#!/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()
                nums=profile.right_to_nums(sys.argv[1])
                if nums:
			sys.stdout.write('SIP/' + '&SIP/'.join(nums))
		else:
			sys.stdout.write('NONE')
	else:
		print >> sys.stderr, "Usage %s {right}" % sys.argv[0]
