Doug Harris
2004-Sep-07 18:44 UTC
[Asterisk-Users] astcc dont write to the table cdrs or cards
Hi, I have set-up astcc with outgoing sip channel. Call processing works fine but after the call tables, CDR and Cards does not get updated. At the beginning it goes to the database and fetch card details and correctly provides the card balance etc. Also it indeed write the inuse field (so writing and reading from database works fine). I've inserted a break point as such in the code; $dialstatus = $AGI->get_variable("DIALSTATUS"); print STDERR "dial status $dialstatus\n"; It seems like dialstatus is not returned (which prints nothing). So obviously later part of the agi does not go through database updating portion (which only happens if dialstatus = Answerd). I am using deadagi to call the astcc.agi script as explained. Can someone explain why this happens ????? Cheers dh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040907/a0d49461/attachment.htm
Variables DIALSTATUS: added to CVS head in june/july 2004! What is your CVS version? Areski On Wed, 2004-09-08 at 03:44, Doug Harris wrote:> Hi, > > I have set-up astcc with outgoing sip channel. Call processing works > fine but after the call tables, CDR and Cards does not get updated. At > the beginning it goes to the database and fetch card details and > correctly provides the card balance etc. Also it indeed write the > inuse field (so writing and reading from database works fine). > > I've inserted a break point as such in the code; > > $dialstatus = $AGI->get_variable("DIALSTATUS"); > print STDERR "dial status $dialstatus\n"; > > It seems like dialstatus is not returned (which prints nothing). > > So obviously later part of the agi does not go through database > updating portion (which only happens if dialstatus = Answerd). > > I am using deadagi to call the astcc.agi script as explained. > > Can someone explain why this happens ????? > > Cheers > > dh > > > ______________________________________________________________________ > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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