[asterisk-dev] Hold-Unhold information in queue-log

Stefan Schmidt sst at sil.at
Thu Feb 10 04:32:57 CST 2011


Am 10.02.11 11:25, schrieb winay chaudhari:
> Hi,
> We are trying to modify asterisk code to log events in queue-log when an agent puts a call on hold. (Asterisk 1.6 & 1.8)
> 
> Scenario:
> 
> 1. Call comes into the system.
> 2. Call is put in a queue.
> 3. Agent in the queue takes the call.
> 4. Agent puts the call on hold
> 5. Agent takes the call off hold
> 
> We want to log the events for 4 and 5 along with the queue-name, callid & agent
> We tried including the log in update_status method of app_queue.c but somehow we managed to get all fields but callid. Where can we get all the 4 fields required in the log viz queue-name, callid, agent & event?
> 
> Regards,
> Winay
Hello,

Its just a guess but i think you are on the wrong channel to look for
the callid.

you have two possible ways.
1) in your extensions.conf before dialing the queue just do something
like Set(_callidincoming=${CALLERID(number)})
then you should see the callidincoming var also on the agent channel .

2) or you try to get this information over the bridged channel, but
thats IMHO the not so easy way.

best regards

Stefan



More information about the asterisk-dev mailing list