Skip to content

Commit

Permalink
Merge pull request #63 from wazo-communication/rubix
Browse files Browse the repository at this point in the history
Rubix new template
  • Loading branch information
mwolff44 authored Jun 17, 2024
2 parents 5543356 + af75020 commit d8ba011
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/sip/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@
"logo": "https://raw.githubusercontent.com/wazo-communication/portal-plugins/master/plugins/sip/phenixpartnerv1/logo.svg",
"mainColor": "#F2F2F2"
},
{
"name": "Rubix Telecom",
"version": "1.0",
"slug": "rubixv1",
"url": "https://www.rubix-telecom.fr",
"country": "FR",
"url_doc": null,
"logo": "https://raw.githubusercontent.com/wazo-communication/portal-plugins/master/plugins/sip/rubixv1/logo.svg",
"mainColor": "#000000"
},
{
"name": "Sewan",
"version": "0.1",
Expand Down
34 changes: 34 additions & 0 deletions plugins/sip/rubixv1/endpoint/body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"label": "{{ label }}",
"name": "rubix_trunk_{{ tenant_uuid }}_{{ suffix }}",
"transport": {"uuid": "{{ transport_uuid }}"},
"templates": [{"uuid": "{{ global_sip_template_uuid }}"}, {"uuid":"{{ registration_trunk_sip_template_uuid }}"}],
"endpoint_section_options": [
["identify_by", "header,username"],
["contact_user", "{{ username }}"],
["send_pai", "yes"],
["allow", "!all,alaw"]
],
"registration_section_options": [
["expiration", "60"],
["line", "yes"],
["client_uri", "sip:{{ username }}@{{ server }}"],
["server_uri", "sip:{{ server }}:5060"],
["contact_user", "{{ username }}"]
],
"registration_outbound_auth_section_options": [
["username", "{{ username }}"],
["password", "{{ password }}"]
],
"outbound_auth_section_options": [
["username", "{{ username }}"],
["password", "{{ password }}"]
],
"aor_section_options": [
["contact", "sip:{{ username }}@{{ server }}:5060"]
],
"identify_section_options": [
["match_header", "Contact: /<sip:{{ username }}@.*>/"],
["match", "{{ server }}"]
]
}
41 changes: 41 additions & 0 deletions plugins/sip/rubixv1/endpoint/variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"variables": [
{
"name": "label",
"label": [
{"language": "fr_CA", "value": "Étiquette"},
{"language": "fr_FR", "value": "Étiquette"},
{"language": "en_US", "value": "Label"}
],
"required": true,
"default": "Rubix"
},
{
"name": "username",
"label": [
{"language": "fr_CA", "value": "Nom d'utilisateur"},
{"language": "fr_FR", "value": "Nom d'utilisateur"},
{"language": "en_US", "value": "Username"}
],
"required": true
},
{
"name": "password",
"label": [
{"language": "fr_CA", "value": "Mot de passe"},
{"language": "fr_FR", "value": "Mot de passe"},
{"language": "en_US", "value": "Password"}
],
"required": true
},
{
"name": "server",
"label": [
{"language": "fr_CA", "value": "Serveur SIP"},
{"language": "fr_FR", "value": "Serveur SIP"},
{"language": "en_US", "value": "SIP server"}
],
"required": true
}
]
}
41 changes: 41 additions & 0 deletions plugins/sip/rubixv1/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8ba011

Please sign in to comment.