01-22-2014 02:19 AM - edited 03-17-2019 03:53 PM
Hi all,
For a custom embedded tab we want to add call variables in a URL.
From cisco documentation:
The following is an example of how you can use the ${UserID} token:
1 You specify the following in your custom embedded tab:
<url>www.cisco.com/${UserID}/profile</url>
Are there other tokens availible to add to this URL? For example called number and calling line ID?
Thanks!
Regards,
Wouter
03-27-2014 01:09 AM
wouter were you able to get the value in the token ${UserID}? I do not get any value in place of the token, it remains blank.
Regards,
Yogesh
11-17-2015 03:22 AM
were you able to find other tokens? I need also to find the called number (myNumber)
When there is an incoming call I can get this information in the event:
function OnTelephonyConversationStateChanged(json) {
var conversation = JSON.parse(json);
var myNumber=conversation.localParticipant.translatedNumber;
var incomingNumber=conversation.remoteParticipants[0].translatedNumber;
but when there is not an incoming call I don't know how to get it. It could be interesting to have something like ${translatedNumber} or similar
05-30-2016 02:37 AM
I used 'Cisco Jabber 11.0 Deployment and Installation Guide' and creted a custom tab.
Plugin info:
<browser-plugin> <page refresh="true" preload="false"> <tooltip>Weiterleitung KSC</tooltip> <icon/> <url>http://XXXX/LasttestGUI/index.jsp</url> </page> </browser-plugin>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-cache">
<title>CTI Test</title>
<script type="text/javascript">
function OnTelephonyConversationStateChanged(json) {
var myDiv = document.getElementById("ctilog");
try {
var conversation = JSON.parse(json);
myDiv.innerHTML += "State: " + conversation.state + "<br/>";
myDiv.innerHTML += "Acceptance: " + conversation.acceptanceState + "<br/>";
myDiv.innerHTML += "Type: " + conversation.callType + "<br/>";
myDiv.innerHTML += "<br/>";
}
catch(e) {
myDiv.innerHTML += "cannot parse conversation:: " + e.message + "<br/>";
}
if (conversation.acceptanceState == "Pending" && conversation.state == "Started") {
myDiv.innerHTML += "About to screen pop<br/>";
int anzahlErkanntenTel = conversation.remoteParticipants.length;
if (anzahlErkanntenTel == 0) {
window.open("http://mitarbeiterportal-np/");
} else {
for (var i=0; i<conversation.remoteParticipants.length; i++) {
myDiv.innerHTML += "Popping with number: " + conversation.remoteParticipants[i].translatedNumber + '<br/>';
window.open("http://mitarbeiterportal-np/");
}
}
}
}
</script>
</head>
<body>
<h4>CTI Log Try</h4>
<div id="ctilog"></div>
</body>
</html>
I see the CTI Log Try Screen. But the page doesn't write the log.
What I do wrong?
Thanks in advance.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide