<div dir="ltr">There's not any direct way of which I am aware in a single command, but from the shell you could do the following (and yes, this is a bit of a hack):<br><br>for i in `rasterisk -x "queue show" |grep wait |awk -F" " '{print $2}'`; do rasterisk -x "core show channel $i" | grep "Caller ID";done<br>
<br>That will return (in order) the calls in your queue, their caller-ids and caller id names. If the caller-id and caller-id-name are the same, each entry will just be 2 repeating lines.<br><br>To skip the second entry (caller-id name), you can just add a colon to the last grep command, like so:<br>
for i in `rasterisk -x "queue show" |grep wait |awk -F" " '{print
$2}'`; do rasterisk -x "core show channel $i" | grep "Caller ID:";done<br><br>What this does, essentially, is check the callers' channels in the queue, and then check each individual channel for the caller-id.<br>
<br>Best regards,<br>Örn<br><br><div class="gmail_quote">On Tue, Jul 1, 2008 at 7:20 PM, Marcin J. Kowalczyk <marcin.kowalczyk@ccig.pl> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Is there a way to show callerID of calls waiting in queue?<br>
queue show<br>
shows only channel not callerID<br>
<br>
<br>
Cheers,<br>
Marcin<br>
<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>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>