[asterisk-users] how to get Current Calls details

Thorsten Göllner tg at ovm-group.com
Wed Feb 2 05:18:43 CST 2011


Well, for me it seems to be simple: Just parse "core show channels 
verbose". If you "see" 2 lines per call the field "Channel" should be 
unique. After parsing write it to a flat file or to a database which you 
query in your gui/webinterface.

Am 02.02.2011 12:10, schrieb Nikhil:
> thanks for reply..
> I know these commands .But my requirement is I should show the current 
> call details to GUI
> eg:
>
> Caller  Callee            Starttime                   Duration
>
> 101      104    2010-12-21 12:24:34 PM        10
>
> Now tel me how I get these values by give commands to asterisk.
>
> Thanks
> Nikhil
>
>
> On 02/02/2011 03:58 PM, Ishfaq Malik wrote:
>> On Wed, 2011-02-02 at 09:04 +0530, Nikhil wrote:
>>> Hi everyone
>>>     How can I get the current calls details in asterisk.if I use cli
>>> commad core show channels,there is two channels of each call.But the
>>> requirement is, need to get caller ,calee,starttime ,duration of the
>>> current calls.This value should be proper for call forward,call 
>>> transfer
>>> ,and scenarios.Please help me on this.
>>>
>>> Thanks
>>> Nikhil
>> For one of each pair channels do
>> core show channel<channel name>
>>> -- 
>>> _____________________________________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>                 http://www.asterisk.org/hello
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>     http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

-- 
Thorsten Göllner

OVM Office Voice Media GmbH
Herderstrasse 68
40237 Düsseldorf

Tel.: +49(0)211 / 618 57 53
Fax: +49(0)211 / 618 57 54




More information about the asterisk-users mailing list