<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">There seems to be a bit of confusion regarding some the callid terminology.<br>We need to log the channel-id of the member's channel when the hold/unhold events occur (struct ast_channel *chan -> uniqueid to be precise)<br><br>In the update_status function in app_queue.c, we get the interface and the updated status.<br><br>static int update_status(const char *interface, const int status)<br><br>Using the interface, the function iterates through queues to find the member and sets the member's status. At this point, how should we get the channel-id associated with the member?<br><br>Regards,<br>Winay<br><br>--- On <b>Thu, 10/2/11, Stefan Schmidt <i><sst@sil.at></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Stefan Schmidt <sst@sil.at><br>Subject: Re: [asterisk-dev]
Hold-Unhold information in queue-log<br>To: "Asterisk Developers Mailing List" <asterisk-dev@lists.digium.com><br>Date: Thursday, 10 February, 2011, 4:02 PM<br><br><div class="plainMail">Am 10.02.11 11:25, schrieb winay chaudhari:<br>> Hi,<br>> 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)<br>> <br>> Scenario:<br>> <br>> 1. Call comes into the system.<br>> 2. Call is put in a queue.<br>> 3. Agent in the queue takes the call.<br>> 4. Agent puts the call on hold<br>> 5. Agent takes the call off hold<br>> <br>> We want to log the events for 4 and 5 along with the queue-name, callid & agent<br>> 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?<br>> <br>>
Regards,<br>> Winay<br>Hello,<br><br>Its just a guess but i think you are on the wrong channel to look for<br>the callid.<br><br>you have two possible ways.<br>1) in your extensions.conf before dialing the queue just do something<br>like Set(_callidincoming=${CALLERID(number)})<br>then you should see the callidincoming var also on the agent channel .<br><br>2) or you try to get this information over the bridged channel, but<br>thats IMHO the not so easy way.<br><br>best regards<br><br>Stefan<br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></div></blockquote></td></tr></table><br>