#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
import syslog
from sip.asterisk import AGI, Profile

if __name__ == '__main__' :
    agi=AGI()
    alias=Profile().alias_to_num(agi['extension'])
    if alias != "NONE":
        agi.goto('%s,1' % alias)
    exit(0)
