[Home]

Summary:ASTERISK-16531: [patch] AGENTBYCALLERID not set for agent logged from AMI
Reporter:Henrique Grolli Bassotto (guaxinim)Labels:
Date Opened:2010-08-09 11:42:30Date Closed:2011-12-20 12:51:35.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_agent
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) fixed_agentbycallerid.patch
Description:The global variable AGENTBYCALLERID is not being set for agents logged from AMI via AgentCallBackLogin action. This variable is set when logged normaly via dialplan application.

****** ADDITIONAL INFORMATION ******

Fixed by adding the necessary code on chan_agent.c::action_agent_callback_login.

The solution is trivial. All i need was to set the p->logincallerid and calling set_agentbycallerid.

The change was testes for about a week with no problems to chan_agent as expected.
Comments:By: Henrique Grolli Bassotto (guaxinim) 2010-08-09 11:47:03

Sorry for the duplicated code on the issue, just found the upload form after submited the issue.

By: Henrique Grolli Bassotto (guaxinim) 2010-08-11 12:13:16

Oops. Just made a newbie error. Inverted the diff -u parms. Im uploading the right patch. Sorry again.

By: Henrique Grolli Bassotto (guaxinim) 2010-12-16 16:46:44.000-0600

some news with this case? been 4 months for review.

By: Matthew Nicholson (mnicholson) 2011-12-20 12:51:14.246-0600

This patch appears to be against 1.6.2 (or earlier). I don't believe this features exists in Asterisk 1.8 and later. Please correct me if I am mistaken.