[Asterisk-Users] Billing inbound calls per minute

bbench at mail.bg bbench at mail.bg
Mon Feb 6 01:59:02 MST 2006


> >>Does anyone have a neat idea as how to
> >>bill inbound calls per minute(second) real time?
> >>
> >>I've been pplaying with astcc, but while
> >>'billseconds' stays empty, 'billcost' has
> >>strange behavior - either stays ampty
> >>or takes ONCE the "Connect fee"(if I put one)
> >>and keeps it that way no matter how long
> >>the call is ...( if no "Connect fee" -stays empty).
> >>i.e.
> >>[inbound]
> >>exten => 1122334455,1,Set(CALLERID(number)=${EXTEN})
> >>exten => 1122334455,2,DeadAGI(astcc.agi,${CALLERIDNUM},${EXTEN},4)
> >>exten => 1122334455,3,Hangup
> >
> >DeadAGI is for hungup channels, not for active channels.
> >That might be a problem.
> >
> >Try this:
> >exten => h,1,DeadAGI(astcc.agi,${CALLERIDNUM},${EXTEN},4)
>
Thanks, tried that several ways but no help since ${EXTEN}=h.
Probably will try with CHANISAVAIL or ${CHANNEL} or something...
> ASTCC works fine here. The duration and billseconds fields in my cdrs as
> well as ASTCC's cdr are filled.
> I don't use the connect fee field though and all are set to 0.
Sure ASTCC works, but I am talking about inbound calls
where 1122334455 is a DID as well as a card number being
charged for the incoming calls.  Thus ${EXTEN}=DID=card i.e.
exten => 1122334455,1,Set(CALLERID(number)=${EXTEN})

Mayby I should not assosiate DID from card(user) and create a separate
peer for the DID on a different port.

Any other ideas? Thanks.
benchev




More information about the asterisk-users mailing list