[sip] Un AGI pour résoudre les alias
This commit is contained in:
parent
8ce6d5d4e8
commit
fb8dff755c
1 changed files with 13 additions and 0 deletions
13
sip/agi/alias
Executable file
13
sip/agi/alias
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/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)
|
Loading…
Add table
Add a link
Reference in a new issue