[asterisk-users] QueueLog from AMI

Sebastian Gutierrez sgutierrez at inconcertcc.com
Wed Nov 12 11:31:10 CST 2008


Not if I have realtime, I'm inserting and deleting from queue_members table,
so I don't have that info.




-----Mensaje original-----
De: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] En nombre de Atis Lezdins
Enviado el: Wednesday, November 12, 2008 3:16 PM
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: Re: [asterisk-users] QueueLog from AMI

On Wed, Nov 12, 2008 at 6:44 PM, Sebastian Gutierrez
<sgutierrez at inconcertcc.com> wrote:
> Hi,
>
>
>
> How can I pass the following data to te queuelog via ami??
>
>
>
> Agent,data.
>
>
>
> ??
>
>
>
> I'm doing this:
>
> Action: QueueLog\r\nQueue: queueprueba\r\nEvent: Login\r\n\r\n
>
>
>
> And thath works fine getting the log with the event but I cant find how to
> pass the agent and data parameters
>
>
>
> Any idea?
>

>From app_queue.c (1.6.0):

 queuename = astman_get_header(m, "Queue");
  uniqueid = astman_get_header(m, "UniqueId");
  interface = astman_get_header(m, "Interface");
  event = astman_get_header(m, "Event");
  message = astman_get_header(m, "Message");

ast_queue_log(queuename, S_OR(uniqueid, "NONE"), interface, event,
"%s", message);

So, agent would be "Interface" and data would be "Message".

However, i wonder why do you need to pass "Login" event, as any kind
of Queue Login (dialplan or AMI) would do that automatically.

Regards,
Atisw

-- 
Atis Lezdins,
VoIP Project Manager / Developer,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list