Changes

m
Line 8: Line 8:  
[[Category:Complementary modules]]
 
[[Category:Complementary modules]]
 
[[Category:OVH]]
 
[[Category:OVH]]
[[Category:NLTechno]]
+
[[Category:DoliCloud]]
 
{{TemplateDocDevEn}}
 
{{TemplateDocDevEn}}
 
{{TemplateDocUser}}
 
{{TemplateDocUser}}
Line 14: Line 14:  
{{TemplateModuleInfo
 
{{TemplateModuleInfo
 
|modulename=OVH
 
|modulename=OVH
|editor=NLTechno
+
|editor=DoliCloud
|web=[https://www.nltechno.com www.nltechno.com]
+
|web={{URLNLTechno}}
 
|webbuy={{LinkToPluginDownloadDoliStore|keyword=ovh}}
 
|webbuy={{LinkToPluginDownloadDoliStore|keyword=ovh}}
 
|status=stable
 
|status=stable
 
|prerequisites=
 
|prerequisites=
 
* An OVH account.
 
* An OVH account.
* To use Click2Dial, you also need an OVH SIP subscription and id provided by OVH
+
* To use Click2Dial, you also need an OVH SIP subscription (You need the plan "Enterpise", plan "Discover" is not supported) and its IDs provided by OVH
 
* Dolibarr 3.8+
 
* Dolibarr 3.8+
 
|note=
 
|note=
Line 54: Line 54:     
== SMS setup ==
 
== SMS setup ==
Sending of SMS need to buy SMS packages at OVH, so with your OVH account, select quantity of SMS to buy at OVH website. Buying SMS credit and getting your API key to use the module is available into the area "Telecom" of your OVH manager (https://www.ovh.com).
+
Sending of SMS need to buy SMS packages at OVH, so with your OVH account, select quantity of SMS to buy at OVH website. Buying SMS credit and getting your API key to use the module is available into the area "Telecom" of your OVH manager (https://www.ovh.com). You must subscribe a quantity of SMS using the mode "Standard" (available by Web API). Do not subscripe SMS using the mode "SMPP".
    
'''Availability'''
 
'''Availability'''
Line 66: Line 66:  
'''Subscription'''
 
'''Subscription'''
   −
Once your credit of SMS has been payed, you must enter on the OVH panel, the list of sender labels that may appears to your recipient when you will send SMS.
+
Once your credit of SMS has been payed, you must go on the OVH panel to define the "Sender label" that may appears to your recipient when you will send SMS. Creating a sender must be done from your OVH customer dashboard, menu '''Telecom - SMS - Your SMS account - Then tab Senders.'''
    
[[File: Warning.png]] Warning: This step requires a delay on the part of OVH to be validated. As long as the sender is not validated by OVH, sending SMS will not be possible. Validation is done once for each different "sender label" you want to use.
 
[[File: Warning.png]] Warning: This step requires a delay on the part of OVH to be validated. As long as the sender is not validated by OVH, sending SMS will not be possible. Validation is done once for each different "sender label" you want to use.
Line 105: Line 105:     
== Fetching invoices ==
 
== Fetching invoices ==
Go into menu "Home - Modules tools - OVH invoices import". If this menu does not exists onto your instance, call URL page http://yourdolibarr/ovh/importovhinvoice.php
+
Go into menu "Home - Modules tools - OVH invoices import". If this menu does not exists onto your instance, call URL page http://yourdolibarr/custom/ovh/importovhinvoice.php
    
You can the choose which invoice to import.
 
You can the choose which invoice to import.
Line 119: Line 119:     
If you are on debian or ubuntu and get this error
 
If you are on debian or ubuntu and get this error
<source lang="bash">
+
<syntaxhighlight lang="bash">
 
Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed [file]
 
Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed [file]
 
.../htdocs/ovh/includes/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 406 [message] fopen(): Failed to enable crypto [file]  
 
.../htdocs/ovh/includes/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 406 [message] fopen(): Failed to enable crypto [file]  
Line 125: Line 125:  
.../ovh/includes/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 406 [message] Undefined variable: http_response_header [file]  
 
.../ovh/includes/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 406 [message] Undefined variable: http_response_header [file]  
 
.../ovh/includes/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 407
 
.../ovh/includes/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 407
</source>
+
</syntaxhighlight>
    
Check that package "ca-certificates" is installed.
 
Check that package "ca-certificates" is installed.
 +
 +
== "Method Not Allowed" error on the /telephony API ==
 +
If, when using ClickToDial, you get the error
 +
<syntaxhighlight lang="bash">
 +
Error: Client error response [url] https://api.ovh.com/1.0/telephony/?%3F%3F%2Fline%2FSIPLineNumber%2Fclick2Call [status code] 405 [reason phrase] Method Not Allowed
 +
</syntaxhighlight>
 +
Check that your subscription is the Enterprise offer. OVH does not allow the use of ClickToDial with the Discovery offer.
 +
 +
== "Only SMPP endpoint allowed for this account" error ==
 +
If, when sending SMS messages you get the error:
 +
<syntaxhighlight lang="bash">
 +
Only SMPP endpoint allowed for this account.
 +
</syntaxhighlight>
 +
This means that you have purchased a batch of SMS from OVH by choosing the "SMPP" mode instead of the batch of SMS usable in "Standard" mode. You need to purchase another batch of SMS using the correct batch choice.