call_agent Agent API not calling correct session

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

call_agent Agent API not calling correct session

Postby mjohn425 » Thu Jan 07, 2021 6:09 pm

Hi Team,

For one of our instances we are interacting with vicidial through our portal so we can integrate with a CRM. We are using the call_agent api call if the agent doesn't pick up the call, this works fine at the beginning but runs into an issue if the agent changes sessions. For example, agent logs into sessions 8600051, makes call to client, transfers to another agent and then leaves the 3-way xfer, this then places them in another session (say 8600052), if they accidentally hang up their soft phone or it drops out for whatever reason, the call_agent api will call but place them into the original session they are in e.g. 8600051. This often causes them to drop in on another agents session or call which is already in progress.

I know this doesn't occur using the standard vicidial interface, just wondering if there is a reason for the difference in the api or if it is a bug. Cheers.

Vicibox 9.0.2
VERSION: 2.14-769a
BUILD: 200916-0922
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: call_agent Agent API not calling correct session

Postby mflorell » Fri Jan 08, 2021 8:05 am

I haven't heard of that problem before, but if you can repeat this issue on demand, please post detailed step-by-step instructions for how to replicate this issue to a new ticket in the Issue Tracker and we'll take a look at it.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: call_agent Agent API not calling correct session

Postby mjohn425 » Wed Jan 13, 2021 12:56 am

Thanks Matt.

Have posted the issue.

Basic rundown is that the api is looking for the login call data from the vicidial_session_data table which doesn't update when a user changes sessions (for example when leaving a 3-way transfer). You can confirm this by looking at the difference in session/conference by comparing the values between vicidial_session_data and vicidial_live_agents after leaving a 3-way transfer.

http://www.vicidial.org/VICIDIALmantis/view.php?id=1251
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 85 guests