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):
for i in `rasterisk -x "queue show" |grep wait |awk -F" "
'{print $2}'`; do
rasterisk -x "core show channel $i" | grep "Caller ID";done
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.
To skip the second entry (caller-id name), you can just add a colon to the
last grep command, like so:
for i in `rasterisk -x "queue show" |grep wait |awk -F" "
'{print $2}'`; do
rasterisk -x "core show channel $i" | grep "Caller ID:";done
What this does, essentially, is check the callers' channels in the queue,
and then check each individual channel for the caller-id.
Best regards,
?rn
On Tue, Jul 1, 2008 at 7:20 PM, Marcin J. Kowalczyk
<marcin.kowalczyk at ccig.pl> wrote:
> Hi,
>
> Is there a way to show callerID of calls waiting in queue?
> queue show
> shows only channel not callerID
>
>
> Cheers,
> Marcin
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080724/bc7fcfb3/attachment.htm