13 lines
305 B
Python
Executable file
13 lines
305 B
Python
Executable file
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
import sys
|
|
import syslog
|
|
sys.path.append('/usr/scripts/sip/')
|
|
from 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)
|