Hello
please suggest command to search field CallerID with its associated data like numbers.
I have tried few commands but no result yet.
asterisk -rx “core show channels verbose” | grep ‘CallerID:’ | awk -F 'CallerID: ’ ‘{print $2}’
Hello
please suggest command to search field CallerID with its associated data like numbers.
I have tried few commands but no result yet.
asterisk -rx “core show channels verbose” | grep ‘CallerID:’ | awk -F 'CallerID: ’ ‘{print $2}’
I recommend that you take a look at AMI interface as it is much more scripted friendly
core show channels concise
may be easier to parse.grep
is redundant. Awk can filter input.Thanks,
I can fetch data with
asterisk -rx “core show channels concise” | awk -F ‘!’ ‘{print substr($8, 4)}’
But it is not my requirement.
My final need is get CallerID data from
asterisk -rx “confbridge list listname”
This is related to periodical attandance of conference users.
Are you sure
What are you getting versus what are you expecting?
Thanks
Following is getting.
[root@localhost ~]# asterisk -rx “core show channels concise” | awk -F ‘!’ ‘{print substr($8, 4)}’
Giving me output
1234567810
1234567811
My expectation is , I need callerid from following command.
asterisk -rx “confbridge list 6”
1234567810
1234567811
Hope you understood.
thanks
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.