Hi, I'm trying to write a tool, which shows me the state of the current calls. For this purpose I'm reading from Pipe the Asterisk output and parse it... asterisk -vr | mytool However, the problem ist how to get the information about who got this call in the group. The Zap channels are assigned dynamical. Only thing I can see which channel is connect to the caller but not who is using the channel. I know there is the CDR output in Master.csv. But it shows me the same. The other problem with CDR is, that it shows me the Info only after the call is finished. That's why I'm trying to parse the asterisk output. My extensions.conf looks like this.. GROUPCALL => Zap/g2/1200021&Zap/g2/1200022&Zap/g2/1200023 . . exten => s,1,Dial(${GROUPCALL})
On Thu, Jun 30, 2005 at 09:57:36AM +0200, Martin Czarnowski wrote:> Hi, > > I'm trying to write a tool, which shows me the state of the current > calls. For this purpose I'm reading from Pipe the Asterisk output and > parse it... asterisk -vr | mytoolOr use the manager API, which was meant exactly for such cases. Alternatively, look at logger.conf and customize logging. But this sounds really bad... -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend
Chris Coulthurst chris@shuksan.com |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |Martin Czarnowski |Sent: Thursday, June 30, 2005 12:58 AM |To: asterisk-users@lists.digium.com |Subject: [Asterisk-Users] Resolving groupcalls | | |Hi, | |I'm trying to write a tool, which shows me the state of the current |calls. For this purpose I'm reading from Pipe the Asterisk output and |parse it... asterisk -vr | mytool | |However, the problem ist how to get the information about who got this |call in the group. The Zap channels are assigned dynamical. |Only thing I |can see which channel is connect to the caller but not who is |using the |channel. | |I know there is the CDR output in Master.csv. But it shows me |the same. |The other problem with CDR is, that it shows me the Info only |after the |call is finished. That's why I'm trying to parse the asterisk output. | |My extensions.conf looks like this.. |GROUPCALL => Zap/g2/1200021&Zap/g2/1200022&Zap/g2/1200023 |. |. |exten => s,1,Dial(${GROUPCALL}) | | |_______________________________________________ |Asterisk-Users mailing list |Asterisk-Users@lists.digium.com |http://lists.digium.com/mailman/listinfo/asteri|sk-users |To |UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users |
Oops, sent that last one prematurely! How about the accountcode setting? You could get user information from that, right? Maybe you could send: Asterisk -rx 'show channels' ..and when you get the data, you'd know which channels are up and alive (full names). You could then re-run the command with the channel information: Asterisk -rx 'show channel SIP/201-ec69' ..you'd get a dump, with the end looking something like this: CDR Variables: level 1: clid="Chris Office" <201> level 1: src=201 level 1: dst=18009427433 level 1: dcontext=unlimited level 1: channel=SIP/201-ec69 level 1: dstchannel=IAX2/provider-7 level 1: lastapp=Dial level 1: lastdata=iax2/user@provider/2047622726 level 1: start=2005-06-30 02:10:35 level 1: answer=2005-06-30 02:10:38 level 1: end=2005-06-30 02:10:38 level 1: duration=0 level 1: billsec=0 level 1: disposition=ANSWERED level 1: amaflags=DOCUMENTATION level 1: accountcode=019284718233 <<----------------------account code unique to the user level 1: uniqueid=1120122635.400 Anyway, maybe something like that... Chris Coulthurst chris@shuksan.com |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |Martin Czarnowski |Sent: Thursday, June 30, 2005 12:58 AM |To: asterisk-users@lists.digium.com |Subject: [Asterisk-Users] Resolving groupcalls | | |Hi, | |I'm trying to write a tool, which shows me the state of the current |calls. For this purpose I'm reading from Pipe the Asterisk output and |parse it... asterisk -vr | mytool | |However, the problem ist how to get the information about who got this |call in the group. The Zap channels are assigned dynamical. |Only thing I |can see which channel is connect to the caller but not who is |using the |channel. | |I know there is the CDR output in Master.csv. But it shows me |the same. |The other problem with CDR is, that it shows me the Info only |after the |call is finished. That's why I'm trying to parse the asterisk output. | |My extensions.conf looks like this.. |GROUPCALL => Zap/g2/1200021&Zap/g2/1200022&Zap/g2/1200023 |. |. |exten => s,1,Dial(${GROUPCALL}) | | |_______________________________________________ |Asterisk-Users mailing list |Asterisk-Users@lists.digium.com |http://lists.digium.com/mailman/listinfo/asteri|sk-users |To |UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users |