On Wed, Nov 12, 2008 at 6:44 PM, Sebastian Gutierrez <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED] 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