Skip to content

Commit

Permalink
adista v2 template
Browse files Browse the repository at this point in the history
  • Loading branch information
mwolff44 committed Sep 5, 2024
1 parent d8ba011 commit bf4c466
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 79 deletions.
35 changes: 0 additions & 35 deletions plugins/sip/adistav1/endpoint/body.json

This file was deleted.

41 changes: 0 additions & 41 deletions plugins/sip/adistav1/endpoint/variables.json

This file was deleted.

19 changes: 19 additions & 0 deletions plugins/sip/adistav2/endpoint/body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"label": "{{ label }}",
"name": "adista_trunk_{{ tenant_uuid }}_{{ suffix }}",
"transport": {"uuid": "{{ transport_uuid }}"},
"templates": [{"uuid": "{{ global_sip_template_uuid }}"}, {"uuid":"{{ registration_trunk_sip_template_uuid }}"}],
"endpoint_section_options": [
["set_var", "PJSIP_HEADER(add,P-Charge-Info)={{ client_ref }}"],
["identify_by", "header"],
["allow", "!all,alaw"]
],
"aor_section_options": [
["contact", "sip:{{ server }}"],
["qualify_frequency", "30"]
],
"identify_section_options": [
["match_header", "P-Charge-Info): {{ client_ref }}"],
["endpoint", "{{ platform }}"]
]
}
52 changes: 52 additions & 0 deletions plugins/sip/adistav2/endpoint/variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"variables": [
{
"name": "label",
"label": [
{"language": "fr_CA", "value": "Étiquette"},
{"language": "fr_FR", "value": "Étiquette"},
{"language": "en_US", "value": "Label"}
],
"required": true,
"default": "Adista"
},
{
"name": "platform",
"label": [
{"language": "fr_CA", "value": "Platforme"},
{"language": "fr_FR", "value": "Plateforme"},
{"language": "en_US", "value": "Plateform"}
],
"required": true,
"default": "Adista_GW1",
"choices":[
"Adista_GW1",
"Adista_GW2"
]
},
{
"name": "server",
"label": [
{"language": "fr_CA", "value": "Serveur SIP"},
{"language": "fr_FR", "value": "Serveur SIP"},
{"language": "en_US", "value": "SIP server"}
],
"required": true,
"default": "212.51.161.4",
"choices":[
"212.51.161.4",
"212.51.161.5"
]
},
{
"name": "client_ref",
"label": [
{"language": "fr_CA", "value": "Ref. Client"},
{"language": "fr_FR", "value": "Ref. Client"},
{"language": "en_US", "value": "Ref. Client"}
],
"required": true,
"default": ""
}
]
}
File renamed without changes
6 changes: 3 additions & 3 deletions plugins/sip/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"items": [
{
"name": "Adista",
"version": "0.1",
"slug": "adistav1",
"version": "2.0",
"slug": "adistav2",
"url": "http://www.adista.fr",
"country": "FR",
"url_doc": null,
"logo": "https://raw.githubusercontent.com/wazo-communication/portal-plugins/master/plugins/sip/adistav1/logo-adista.svg",
"logo": "https://raw.githubusercontent.com/wazo-communication/portal-plugins/master/plugins/sip/adistav2/logo-adista.svg",
"mainColor": "#F2F2F2"
},
{
Expand Down

0 comments on commit bf4c466

Please sign in to comment.