Line 44:
Line 44:
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.
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
Line 53:
Line 53:
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