Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
5899b4c5
Commit
5899b4c5
authored
8 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "sip_to_pjsip: Add cert_file and ca_list_path."
parents
560c2abd
38491401
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
+15
-0
15 additions, 0 deletions
contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
with
15 additions
and
0 deletions
contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
+
15
−
0
View file @
5899b4c5
...
...
@@ -467,6 +467,7 @@ peer_map = [
# bind
# async_operations
# ca_list_file
# ca_list_path
# cert_file
# privkey_file
# password
...
...
@@ -700,6 +701,12 @@ def set_tls_bindaddr(val, pjsip, nmapped):
set_value
(
'
bind
'
,
bind
,
'
transport-tls
'
,
pjsip
,
nmapped
,
'
transport
'
)
def
set_tls_cert_file
(
val
,
pjsip
,
section
,
nmapped
):
"""
Sets cert_file based on sip.conf tlscertfile
"""
set_value
(
'
cert_file
'
,
val
,
section
,
pjsip
,
nmapped
,
'
transport
'
)
def
set_tls_private_key
(
val
,
pjsip
,
nmapped
):
"""
Sets privkey_file based on sip.conf tlsprivatekey or sslprivatekey
"""
set_value
(
'
priv_key_file
'
,
val
,
'
transport-tls
'
,
pjsip
,
nmapped
,
...
...
@@ -717,6 +724,12 @@ def set_tls_cafile(val, pjsip, nmapped):
'
transport
'
)
def
set_tls_capath
(
val
,
pjsip
,
nmapped
):
"""
Sets ca_list_path based on sip.conf tlscapath
"""
set_value
(
'
ca_list_path
'
,
val
,
'
transport-tls
'
,
pjsip
,
nmapped
,
'
transport
'
)
def
set_tls_verifyclient
(
val
,
pjsip
,
nmapped
):
"""
Sets verify_client based on sip.conf tlsverifyclient
"""
set_value
(
'
verify_client
'
,
val
,
'
transport-tls
'
,
pjsip
,
nmapped
,
...
...
@@ -753,9 +766,11 @@ def create_tls(sip, pjsip, nmapped):
tls_map
=
[
([
'
tlsbindaddr
'
,
'
sslbindaddr
'
],
set_tls_bindaddr
),
([
'
tlscertfile
'
,
'
sslcert
'
,
'
tlscert
'
],
set_tls_cert_file
),
([
'
tlsprivatekey
'
,
'
sslprivatekey
'
],
set_tls_private_key
),
([
'
tlscipher
'
,
'
sslcipher
'
],
set_tls_cipher
),
([
'
tlscafile
'
],
set_tls_cafile
),
([
'
tlscapath
'
,
'
tlscadir
'
],
set_tls_capath
),
([
'
tlsverifyclient
'
],
set_tls_verifyclient
),
([
'
tlsdontverifyserver
'
],
set_tls_verifyserver
)
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment