On 00:30, Mon 06 Feb 06, bbench@mail.bg wrote:> Hi,
> 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)
--
Michiel van Baak
http://michiel.vanbaak.info
michiel@vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D
"Why is it drug addicts and computer afficionados are both called
users?"