Differenze tra le versioni di "AdminGuide:Service:AMI/en"
(Creata pagina con "The Asterisk Manager Interface lets KalliopepBX interface with third party software.") |
(Creata pagina con "By enabling the AMi interface from the Kalliope GUI, you can interface with external systems to carry out click-to-call operations. The standard syntex to carry out c2c via...") |
||
Riga 5: | Riga 5: | ||
The Asterisk Manager Interface lets KalliopepBX interface with third party software. | The Asterisk Manager Interface lets KalliopepBX interface with third party software. | ||
By enabling the AMi interface from the Kalliope GUI, you can interface with external systems to carry out click-to-call operations. | |||
The standard syntex to carry out c2c via AMI (from the extension %extension% towards the destination %toNum%, including the outbound prefix for external numbers) on KalliopePBXv4 is the following, in which some channel variables are set: | |||
Action: Originate<br> | Action: Originate<br> | ||
Async: true<br> | Async: true<br> | ||
Channel: Local/% | Channel: Local/%extension%@c2c<br> | ||
Context: from_c2c<br> | Context: from_c2c<br> | ||
Exten: %toNum%<br> | Exten: %toNum%<br> | ||
Riga 20: | Riga 20: | ||
Variable: C2C_DST=%toNum%<br> | Variable: C2C_DST=%toNum%<br> | ||
Variable: __TENANT_UUID=%tenantUid%<br> | Variable: __TENANT_UUID=%tenantUid%<br> | ||
Where: <br> | |||
%callerId% = in | %callerId% = in "%displayname%" <%number%> format (we set "c2c: %toNum%" <%toNum%>)<br> | ||
%timeout% = | %timeout% = the number of milliseconds in which to accept the call on the caller's terminal (we set 10000)<br> | ||
%tenantUid% = | %tenantUid% = the tenant UUID. It must be indicated even in silge tenant systems; it can be found in the the AMI settings page (with firware version 4.2.x) or the dashboard widget (with firmware 4.3.x)<br> | ||
Versione delle 12:27, 26 set 2018
Return to AdminGuide:Service
The Asterisk Manager Interface lets KalliopepBX interface with third party software.
By enabling the AMi interface from the Kalliope GUI, you can interface with external systems to carry out click-to-call operations.
The standard syntex to carry out c2c via AMI (from the extension %extension% towards the destination %toNum%, including the outbound prefix for external numbers) on KalliopePBXv4 is the following, in which some channel variables are set:
Action: Originate
Async: true
Channel: Local/%extension%@c2c
Context: from_c2c
Exten: %toNum%
CallerId: %callerId%
Timeout: %timeout%
Priority: 1
Variable: C2C_SRC=%interno%
Variable: C2C_DST=%toNum%
Variable: __TENANT_UUID=%tenantUid%
Where:
%callerId% = in "%displayname%" <%number%> format (we set "c2c: %toNum%" <%toNum%>)
%timeout% = the number of milliseconds in which to accept the call on the caller's terminal (we set 10000)
%tenantUid% = the tenant UUID. It must be indicated even in silge tenant systems; it can be found in the the AMI settings page (with firware version 4.2.x) or the dashboard widget (with firmware 4.3.x)
Nel caso del TSP Xtelsio Tapi for asterisk (frequentemente utilizzato per l'integrazione dell'applicativo Estos ProCall con sistemi Asterisk) non è possibile (alla data odierna) impostare queste variabili nella chiamata AMI, per cui è stato sviluppato un meccanismo che si basa su dei contesti wrapper per impostare a dialplan le variabili necessarie.
Il messaggio AMI da far inviare diventa quindi (sono comunque supportate entrambe le modalità):
Action: Originate
Async: true
Channel: Local/%interno%@c2c_%tenantUid%
Context: from_c2c_%tenantUid%
Exten: %toNum%
CallerId: "c2c: %toNum%" <%interno%>
Timeout: %timeout%
Priority: 1