[Asterisk-Users] Resolving groupcalls

Brian West brian.west at mac.com
Sat Jul 2 12:38:20 MST 2005


You can also set anything you wish into the CDR variables.  We came  
up with the whole CDR variable thing for this exact purpose.  Check  
cdr_custom to log it like you want.

ie Set(CDR(GROUP)=${GROUPCALL})



/b
PS don't for get to come to cluecon!

On Jun 30, 2005, at 4:15 AM, Chris Coulthurst wrote:

> 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 at 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 at shuksan.com
>
>
>
> |-----Original Message-----
> |From: asterisk-users-bounces at lists.digium.com
> |[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> |Martin Czarnowski
> |Sent: Thursday, June 30, 2005 12:58 AM
> |To: asterisk-users at 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 at 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
> |
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list