31,040
edits
PolyglotBot (talk | contribs) m (Import interlang links (links to translated versions of this page in other languages) from Multi Language Manager table.) |
mNo edit summary Tag: 2017 source edit |
||
| 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''' ) | ||
< | <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 | ||
</ | </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. | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
Change providervoip with SIP provider. | Change providervoip with SIP provider. | ||
Validate change with | Validate change with | ||
< | <syntaxhighlight lang="ini"> | ||
asterisk -rvvvvvvvvvvvvvvvvvv | asterisk -rvvvvvvvvvvvvvvvvvv | ||
CLI> manager reload | CLI> manager reload | ||
CLI> dialplan 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 | ||