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 34:
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)
+
ASTERISK_CONTEXT with context of call (ex: from-internal)
+
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''' )
* Create a new console user on your Asterisk server ( File '''/etc/asterisk/manager.conf''' )
−
<source lang="ini">
+
<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.
'''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.
* You may also need to edit file '''/etc/asterisk/extension.conf''' to define contact from-internal.
−
<source lang="ini">
+
<syntaxhighlight lang="ini">
[from-internal]
[from-internal]
exten => _00XX.,1,NoOp(Call Dolibarr)
exten => _00XX.,1,NoOp(Call Dolibarr)
same => n,Dial(SIP/providervoip/${EXTEN},30)
same => n,Dial(SIP/providervoip/${EXTEN},30)
same => n,hangup
same => n,hangup
−
</source>
+
</syntaxhighlight>
Change providervoip with SIP provider.
Change providervoip with SIP provider.
Validate change with
Validate change with
−
<source lang="ini">
+
<syntaxhighlight lang="ini">
asterisk -rvvvvvvvvvvvvvvvvvv
asterisk -rvvvvvvvvvvvvvvvvvv
CLI> manager reload
CLI> manager reload
CLI> dialplan reload
CLI> dialplan reload
−
</source>
+
</syntaxhighlight>
* Enter Asterisk informations on your Dolibarr user card, tab ClickToDial
* Enter Asterisk informations on your Dolibarr user card, tab ClickToDial
Line 66:
Line 75:
ClickToDial Password : dolibarrpass (use same pass than added into manager.conf file)
ClickToDial Password : dolibarrpass (use same pass than added into manager.conf file)
ClickToDial Id caller (phone) : your phone
ClickToDial Id caller (phone) : your phone
−
=== Using the phoning service of OVH ===
=== Using the phoning service of OVH ===