cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1011
Views
0
Helpful
3
Replies

Availible tokens in custom embedded tabs

Double U S
Level 1
Level 1

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

3 Replies 3

yogeshshanbhag
Level 1
Level 1

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

oscar.barrofet
Level 1
Level 1

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

 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.