[Home]

Summary:ASTERISK-07630: ${AGENTBYCALLERID_{CALLERID(num)}}
Reporter:k-egg (k-egg)Labels:
Date Opened:2006-08-30 04:57:35Date Closed:2011-06-07 14:08:15
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_agent
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:There is an issue with following scenario:

Agent A signs in, on phone P
he forgets to logout, and leaves office.
Agent B does not know, about A
B logs in on Phone P either.

B logs out on Phone P.

This is done via:
System(asterisk -rx "agent logoff Agent/${AGENTBYCALLERID_${CALLERID(num)}}")

the problem is this:

as there were 2 agnets with same callerid,
${AGENTBYCALLERID_${CALLERID(num)}} should "know" that, but ${AGENTBYCALLERID_${CALLERID(num)}} knows only about Agent B, and nothing
about Agent A, which is still logged in.

even on a second run of
System(asterisk -rx "agent logoff Agent/${AGENTBYCALLERID_${CALLERID(num)}}")
Agent a is logged in, as ${AGENTBYCALLERID_${CALLERID(num)}} is empty after the first run.
Comments:By: k-egg (k-egg) 2006-08-30 04:59:30

"logs in on phone p", is a little unclear.
should better be: "logs in using phone P"

By: Serge Vecher (serge-v) 2006-08-30 09:49:34

what does this bug report have to do with chan_sip?

By: k-egg (k-egg) 2006-08-30 09:54:58

I think i missed the point, that i have to choose the project. sry for this

can you move this to chan_agent ? or should i open a nuw bug there?

By: vortex_0_o (vortex_0_o) 2006-08-30 11:34:11

don't think this is a bug - if you want just one user per phone - at login first log out the current agent silently then process with the login as normal

By: Serge Vecher (serge-v) 2006-08-30 11:43:47

Agreed: achieving what you need can be elegantly done without any modification to the Asterisk code. Closing this non-bug.