Click to call using znuny CTI

English! place to talk about development, programming and coding
Post Reply
sunny
Znuny newbie
Posts: 68
Joined: 30 Aug 2011, 13:14
Znuny Version: 5.0.22
Real Name: Sunny
Contact:

Click to call using znuny CTI

Post by sunny »

Hi,

Using 5.0.22 While dialing number from customer information need to have number + agent id so that call should go via that specific agent only

so finally got number using Data.UserPhone but not able to get looged in agent ID..

Can someone shed some light on this?

Your help will be really appreciated.
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Click to call using znuny CTI

Post by root »

Hi,

How should the ULR look at the end?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
sunny
Znuny newbie
Posts: 68
Joined: 30 Aug 2011, 13:14
Znuny Version: 5.0.22
Real Name: Sunny
Contact:

Re: Click to call using znuny CTI

Post by sunny »

Hi,

Right now URL is looking like this -> http://IP/cti/call.php?num=88091441XX&agent=

But not getting agent ID value

so sending like below example

'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'http://IP/cti/call.php?num=[% Data.UserPhone %]&agent=[% Data.AgentID %]
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Click to call using znuny CTI

Post by root »

Hi,

Without modofying code you can only use ticket data in addition, like Data.OwnerID.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
sunny
Znuny newbie
Posts: 68
Joined: 30 Aug 2011, 13:14
Znuny Version: 5.0.22
Real Name: Sunny
Contact:

Re: Click to call using znuny CTI

Post by sunny »

root wrote: 14 May 2020, 11:25 Hi,

Without modofying code you can only use ticket data in addition, like Data.OwnerID.

- Roy
but this gives me that agentid only who has worked on that ticket or owner of ticket...is there any other way or may be via some hard code?
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Click to call using znuny CTI

Post by root »

sunny wrote: 14 May 2020, 11:31
root wrote: 14 May 2020, 11:25 Hi,

Without modofying code you can only use ticket data in addition, like Data.OwnerID.

- Roy
but this gives me that agentid only who has worked on that ticket or owner of ticket...is there any other way or may be via some hard code?

Obviously it's the id of the owner. If you need the current user you'll have to code.

Anyway, what has this to do with Znuny4OTRS-CTI?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
sunny
Znuny newbie
Posts: 68
Joined: 30 Aug 2011, 13:14
Znuny Version: 5.0.22
Real Name: Sunny
Contact:

Re: Click to call using znuny CTI

Post by sunny »

root wrote: 14 May 2020, 12:50
sunny wrote: 14 May 2020, 11:31
root wrote: 14 May 2020, 11:25 Hi,

Without modofying code you can only use ticket data in addition, like Data.OwnerID.

- Roy
but this gives me that agentid only who has worked on that ticket or owner of ticket...is there any other way or may be via some hard code?

Obviously it's the id of the owner. If you need the current user you'll have to code.

Anyway, what has this to do with Znuny4OTRS-CTI?

- Roy
Hi Roy,

Ok, let me explain you I am using the CTI adon and while incoming call it is working as expected but on the right hand side where customer information shows the phone number which is a text so I want it to be clickable so for making it clickable I put a value in Znuny4OTRSCTI.pm in customeruser section like below
'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'http://IP/cti/call.php?num=[% Data.UserPhone %]&agent=[% Data.AgentID %]
or are there anything else I need to do in that file? or may be not in that file for clicking purpose?
skullz
Znuny superhero
Posts: 617
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Click to call using znuny CTI

Post by skullz »

There is no such a thing called Data.AgentID, try instead

Code: Select all

Agent=[% Env("UserID") | uri %]
sunny
Znuny newbie
Posts: 68
Joined: 30 Aug 2011, 13:14
Znuny Version: 5.0.22
Real Name: Sunny
Contact:

Re: Click to call using znuny CTI

Post by sunny »

skullz wrote: 14 May 2020, 14:46 There is no such a thing called Data.AgentID, try instead

Code: Select all

Agent=[% Env("UserID") | uri %]
Wow it is really great ...it worked and really thankful to you @skullz I was trying very hard from last 2 days...

Once again Thanks and Appreciated
Post Reply