Changes

m
Line 1: Line 1: −
[[Category:ClickToDial]]
+
<!-- BEGIN origin interlang links -->
 +
<!-- You can edit this section but do NOT remove these comments
 +
    Links below will be automatically replicated on translated pages by PolyglotBot -->
 +
[[fr:Module_ClickToDial]]
 +
[[es:Módulo_ClickToDial_Es]]
 +
<!-- END interlang links -->
 +
 
 +
[[Category:CTI]]
 
{{TemplateDocUser}}
 
{{TemplateDocUser}}
 
{{TemplateModEN}}
 
{{TemplateModEN}}
Line 10: Line 17:  
= Introduction =
 
= Introduction =
 
This module allows you to trigger a phone call with a simple mouse click on a phone number in Dolibarr.
 
This module allows you to trigger a phone call with a simple mouse click on a phone number in Dolibarr.
Any SIP server with an URL interface for the ClickToCall can be used.
+
This module is designed to work with:
There is also information for setup with Asterisk.
+
* Any SIP server with an URL interface for the ClickToCall
 +
* or with Asterisk (Asterisk is a server that does not provide such URL but a wrapper is included in Dolibarr to provide such service)
 +
* or with local software able to manage "tel:" urls from web browsers clicks
 +
* or with a locally installed softphone (like LinPhone).
    
= Installation =
 
= Installation =
Line 19: Line 29:  
{{ActivationModuleEn}}
 
{{ActivationModuleEn}}
   −
== With Asterisk ==
+
== Solutions with no need to install client components ==
 +
 
 +
=== With Asterisk ===
 
'''This is how to fill the specific setup for Asterisk:'''
 
'''This is how to fill the specific setup for Asterisk:'''
 
* First, make sure you have an Asterisk server that works for SIP. This unfortunately is not relevant to module or Dolibarr, so we can only refer you to the Asterisk documentation.
 
* First, make sure you have an Asterisk server that works for SIP. This unfortunately is not relevant to module or Dolibarr, so we can only refer you to the Asterisk documentation.
Line 29: Line 41:  
  ASTERISK_INDICATIF with prefix to add in phone number (ie: 0 or NONE)
 
  ASTERISK_INDICATIF with prefix to add in phone number (ie: 0 or NONE)
 
  ASTERISK_PORT with port of Asterisk sever (ie: 5038)
 
  ASTERISK_PORT with port of Asterisk sever (ie: 5038)
* Create a new console user on your Asterisk server ( File /etc/asterisk/manager.conf )
+
ASTERISK_CONTEXT with context of call (ex: from-internal)
<source lang="ini">
+
CLICKTODIAL_FORCENEWTARGET with value 0 or 1. If this value is set to 0 or not defined, then calling will open a new window/tab in the browser.
 +
* Create a new console user on your Asterisk server ( File '''/etc/asterisk/manager.conf''' )
 +
<syntaxhighlight lang="ini">
 
[dolibarruser]
 
[dolibarruser]
 
secret = dolibarrpass
 
secret = dolibarrpass
deny=0.0.0.0/0.0.0.0
+
deny = 0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
+
permit = 127.0.0.1/255.255.255.0
 
read = system,call,log,verbose,command,agent,user
 
read = system,call,log,verbose,command,agent,user
 
#read = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan
 
#read = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan
 
write = system,call,log,verbose,command,agent,user,originate
 
write = system,call,log,verbose,command,agent,user,originate
 
#write = system,call,log,verbose,command,agent,user,originate,reporting
 
#write = system,call,log,verbose,command,agent,user,originate,reporting
</source>
+
</syntaxhighlight>
 +
'''permit''' must contains IP viewed by Asterisk where Dolibarr is installed.
 +
* You may also need to edit file '''/etc/asterisk/extension.conf''' to define contact from-internal.
 +
<syntaxhighlight lang="ini">
 +
[from-internal]
 +
exten => _00XX.,1,NoOp(Call Dolibarr)
 +
same => n,Dial(SIP/providervoip/${EXTEN},30)
 +
same => n,hangup
 +
</syntaxhighlight>
 +
Change providervoip with SIP provider.
 +
 
 +
Validate change with
 +
<syntaxhighlight lang="ini">
 +
asterisk -rvvvvvvvvvvvvvvvvvv
 +
CLI> manager reload
 +
CLI> dialplan reload
 +
</syntaxhighlight>
 +
 
 
* Enter Asterisk informations on your Dolibarr user card, tab ClickToDial
 
* Enter Asterisk informations on your Dolibarr user card, tab ClickToDial
  ClickToDial Login : dolibarruser
+
  ClickToDial Login : dolibarruser (use same entry than added into manager.conf file)
  ClickToDial Password : dolibarrpass
+
  ClickToDial Password : dolibarrpass (use same pass than added into manager.conf file)
 
  ClickToDial Id caller (phone) : your phone
 
  ClickToDial Id caller (phone) : your phone
   −
== With a SIP softare (Ekiga or LinPhone) + Linux + Firefox or Chrome ==
+
=== Using the phoning service of OVH ===
 +
See page of [[Module OVH (SMS, ClickToDial, ...)]] required for that.
 +
 
 +
 
 +
== Solutions with client component installation ==
 +
 
 +
 
 +
=== With with local software able to manage "tel:" url ===
 +
If you have installe software able to manage link with syntax "tel:" from a web browser click (for example, the *Xivo client*), from Dolibarr 3.9, just go on the clicktodial setup page and set option *Use just a link "tel:" on phone numbers* to Yes. That's all.
 +
 
 +
 
 +
=== With SIP phone software (Ekiga or LinPhone) + Linux + Firefox or Chrome ===
 
* First, be sure, a SIP software (like Ekiga or Linphone) is installed and working correctly (you can phone using it) without using Dolibarr.  
 
* First, be sure, a SIP software (like Ekiga or Linphone) is installed and working correctly (you can phone using it) without using Dolibarr.  
 
* Once this is done, login to Dolibarr, go into ClickToDial module setup page. Into URL field, type  
 
* Once this is done, login to Dolibarr, go into ClickToDial module setup page. Into URL field, type