Commit fb8dff75 authored by Valentin Samir's avatar Valentin Samir

[sip] Un AGI pour résoudre les alias

parent 8ce6d5d4
#!/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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment