Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Benjamin Graillot
scripts
Commits
db5de1a8
Commit
db5de1a8
authored
Nov 12, 2013
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sip] Scripts appelé par asterisk dans un sous dossier
parent
4060df40
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
8 deletions
+9
-8
sip/scripts/README
sip/scripts/README
+1
-0
sip/scripts/alias_to_num
sip/scripts/alias_to_num
+2
-2
sip/scripts/code_impression.py
sip/scripts/code_impression.py
+0
-0
sip/scripts/num_to_callerid
sip/scripts/num_to_callerid
+3
-3
sip/scripts/update_pin
sip/scripts/update_pin
+3
-3
sip/scripts/user_exist.py
sip/scripts/user_exist.py
+0
-0
No files found.
sip/scripts/README
0 → 100644
View file @
db5de1a8
Contient des script appelé par asterisk qui lit leur résultat sur stdin
sip/alias_to_num
→
sip/
scripts/
alias_to_num
View file @
db5de1a8
#!/
usr/bin/env python
#!/
bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import sys
import sys
from
asterisk
import
Profile
from
sip.
asterisk import Profile
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
if
len
(
sys.argv
)>
1:
if
len
(
sys.argv
)>
1:
...
...
sip/code_impression.py
→
sip/
scripts/
code_impression.py
View file @
db5de1a8
File moved
sip/num_to_callerid
→
sip/
scripts/
num_to_callerid
View file @
db5de1a8
#!/
usr/bin/env python
#!/
bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import sys
import sys
from
asterisk
import
Profile
from
sip.
asterisk import Profile
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
if
len
(
sys.argv
)>
1:
if
len
(
sys.argv
)>
1:
profile
=
Profile
(
"dbname='django' user='crans' host='pgsql.adm.crans.org'"
,
"voip_profile"
)
profile
=
Profile
(
"dbname='django' user='crans' host='pgsql.adm.crans.org'"
,
"voip_profile"
)
sys.stdout.write
(
profile.num_to_callerid
(
sys.argv[1]
))
sys.stdout.write
(
profile.num_to_callerid
(
sys.argv[1]
))
else
:
else
:
print
>>
sys
.
stderr
,
"Usage %s {user}"
%
sys
.
argv
[
0
]
print
>>
sys.stderr,
"Usage %s {user}"
% sys.argv[0]
\ No newline at end of file
sip/update_pin
→
sip/
scripts/
update_pin
View file @
db5de1a8
#!/
usr/bin/env python
#!/
bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import sys
import sys
from
asterisk
import
Profile
from
sip.
asterisk import Profile
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
if
len
(
sys.argv
)>
3:
if
len
(
sys.argv
)>
3:
profile
=
Profile
(
"dbname='django' user='crans' host='pgsql.adm.crans.org'"
,
"voip_profile"
)
profile
=
Profile
(
"dbname='django' user='crans' host='pgsql.adm.crans.org'"
,
"voip_profile"
)
profile.update_pin
(
sys.argv[2], sys.argv[3]
)
profile.update_pin
(
sys.argv[2], sys.argv[3]
)
else
:
else
:
print
>>
sys
.
stderr
,
"Usage %s {seed} {number} {pin}"
%
sys
.
argv
[
0
]
print
>>
sys.stderr,
"Usage %s {seed} {number} {pin}"
% sys.argv[0]
\ No newline at end of file
sip/user_exist.py
→
sip/
scripts/
user_exist.py
View file @
db5de1a8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment