diff --git a/plugins/sip/bonv1/endpoint/body.json b/plugins/sip/bonv1/endpoint/body.json new file mode 100644 index 0000000..3bf1bf8 --- /dev/null +++ b/plugins/sip/bonv1/endpoint/body.json @@ -0,0 +1,19 @@ +{ + "label": "{{ label }}", + "name": "bonline_trunk_{{ tenant_uuid }}_{{ suffix }}", + "transport": {"uuid": "{{ transport_uuid }}"}, + "templates": [{"uuid": "{{ global_sip_template_uuid }}"}], + "endpoint_section_options": [ + ["send_pai", "yes"], + ["direct_media", "no"], + ["send_diversion", "no"], + ["allow", "!all,alaw,ulaw,opus"], + ["set_var", "PJSIP_HEADER(add,X-CUSTOMER-ID)={{ client_ref }}"] + ], + "aor_section_options": [ + ["contact", "sip:{{ domain }}:5060"] + ], + "identify_section_options": [ + ["match_header", "X-CUSTOMER-ID: {{ client_ref }}"] + ] +} diff --git a/plugins/sip/bonv1/endpoint/variables.json b/plugins/sip/bonv1/endpoint/variables.json new file mode 100644 index 0000000..843e4d8 --- /dev/null +++ b/plugins/sip/bonv1/endpoint/variables.json @@ -0,0 +1,38 @@ +{ + "variables": [ + { + "name": "label", + "label": [ + {"language": "fr_CA", "value": "Étiquette"}, + {"language": "fr_FR", "value": "Étiquette"}, + {"language": "en_US", "value": "Label"} + ], + "required": true, + "default": "bOnline" + }, + { + "name": "domain", + "label": [ + {"language": "fr_CA", "value": "Serveur Proxy"}, + {"language": "fr_FR", "value": "Serveur Proxy"}, + {"language": "en_US", "value": "Proxy Server"} + ], + "required": true, + "default": "10.0.4.75", + "choices":[ + "10.0.4.75", + "10.0.3.190" + ] + }, + { + "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": "" + } + ] +} diff --git a/plugins/sip/bonv1/logo.svg b/plugins/sip/bonv1/logo.svg new file mode 100644 index 0000000..f07dfcc --- /dev/null +++ b/plugins/sip/bonv1/logo.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + diff --git a/plugins/sip/list.json b/plugins/sip/list.json index f44e40a..6f31cb5 100644 --- a/plugins/sip/list.json +++ b/plugins/sip/list.json @@ -51,6 +51,16 @@ "logo": "https://raw.githubusercontent.com/wazo-communication/portal-plugins/master/plugins/sip/appliwavev1/logo.svg", "mainColor": "#4D4C4F" }, + { + "name": "bOnline", + "version": "1.0", + "slug": "bonv1", + "url": "https://www.bonline.com", + "country": "UK", + "url_doc": null, + "logo": "https://raw.githubusercontent.com/wazo-communication/portal-plugins/master/plugins/sip/bonv1/logo.svg", + "mainColor": "#F2F2F2" + }, { "name": "Bouygues Télécom", "version": "1.1",