[Asterisk-Users] Dial

James Golovich james at wwnet.net
Tue Feb 25 09:11:58 MST 2003


It is in fact in the CDRs.  Here is an entry from my cdr from yesteday
when I received a call.  The 6th field is the channel the call came in on.
The 7th field is the channel that answered the call (this is what you
need).  The 8th field is the app executed.  and the 9th field is the
application data (in this case the string of channels to try)

"","9999991526","s","incoming","""CELLULAR CALL""
<9999991526>","Zap/24-1","Zap/7-1","Dial","Zap/2&Zap/3&Zap/5&Zap/7|20|t","2003-02-24
23:30:59","2003-02-24 23:31:00","2003-02-24
23:43:33",754,753,"ANSWERED","DOCUMENTATION"

It would be trivial to add app_dial to set a channel variable that
contains the channel that answered the extension, and that might be easier
to do for your application rather than digging through the CDRs.

James

On Tue, 25 Feb 2003, Tom De Wispelaere wrote:

> 
> Hello Martin,
> 
> Im affraid not,
> 
> there's something logged along the lines of :
> 
> ID, calldate, clid, src, dst, dcontext, channel, lastapp, lastdata,
> duration, billsec, disposition, amaflags, accountcode
> 
> with lastdata Zap/g2/'phonenb1'&Zap/g2/'phonenb2'&Zap/g2/'phonenb3'
> 
> I dont see anything i can use to determine which one of these phonenb's
> actually picked up the phone however :/.
> 
> 
> Regards,
> 
> Tom
> 
> 
> 
> 
> On Mon, 24 Feb 2003, Martin Pycko wrote:
> 
> > Isn't that in CDR's ?
> >
> > regards
> > Martin
> >
> > On Mon, 24 Feb 2003, Tom De Wispelaere wrote:
> >
> > >
> > > Hello all,
> > >
> > > just had a little discussion on the irc channel with Bicster and peracles
> > >
> > > I have some sort of setup like :
> > >
> > >
> > > exten => s,1,AGI,prepare_dialstring_from_a_db.agi
> > > exten => s,2,Dial,${dialstring}|20
> > >
> > >
> > > The dialstring consists of multiple phonenb's.
> > >
> > > The first one of these to pick up the phone gets the line of course.
> > >
> > > Is there an easy way to figure out which of these phonenb's actually
> > > picked up the phone and got the call ?
> > > As this is an outgoing line from my pbx, I'd like to know who i have to
> > > charge for this call :).
> > >
> > > Thnx for any comments on this.
> > >
> > > Ciao
> > >
> > > Tom
> > >
> > >
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at lists.digium.com
> > > 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
> >
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list