Displaying 20 results from an estimated 240 matches for "billsec".
2006 Feb 10
2
Obtaining billsecs in the dialplan after a call?
Hi,
I'm stuck on a silly thing. I need to get the "billsec" CDR value after a
call. But I'm finding its always 0.
Here's my test code:
exten => *244*,1,Dial(Local/test@custom-tests/n,,g)
exten => *244*,n,Noop(after dial duration is ${CDR(duration)} billsec is
${CDR(billsec)})
exten => *244*,n,Hangup
[custom-tests]
exten => t...
2007 Aug 28
1
deadagi and billsec or answeredtime
Hello,
I want to create php rate script and I'm using Deadagi. But I allways get
billsec 0 , or nothing. Can you help me to solve this problem...
My extension.conf:
exten => _123,1,DeadAgi(rate.php)
exten => _123,2,hangup
And my simple test php script rate.php
#!/usr/local/bin/php -q
<?php
include_once (dirname(__FILE__)."/phpagi.php");
$AGI = new AGI();
$AGI->a...
2010 Feb 03
1
CDR / billsec / originate / local chan
...o a context that has IVR,
TTS/ VXML etc. Running with 1.4.20.1, we have not had any issues and
have been able to access all of the CDR fields in the h exten (using
endbeforehexten=yes in cdr.conf) however after upgrading all our post
answer related cdr information is reporting 0. Fields such as billsec,
answer etc all return either 0 or null which is causing a lot of issues
for us as we use some AGI post call via the h exten to perform
processing based on billable duration etc.
I have found a number of threads / articles etc discussing various
billsec related issues but it is hard to get a p...
2007 Aug 15
1
CDR billsec greater than duration
Hi all,
I have a strange situation on a Asterisk 1.2.17 with FreePBX 2.2.1
Doing a select in the CDR table I noticed there are some calls with
billsec greater than duration, duration is always 0 in those calls.
How can this happens ? Am I missing something ?
Tnx in advance
Regards
Edoardo Serra
WeBRainstorm S.r.l.
2007 Nov 07
2
Determination of billsec
How is the billsec field calculated in CDRs?
I have a situation where billsec is being reported as 0 despite the call
being answered and a conversation occurring. An example record follows:
'2007-11-06 21:36:50', '6495566778', '6495566778', '0116495566778',
'1100012_1',...
2006 Mar 20
3
Grabbing the billsec and duration after a hangup.
...conditions
it calls out on a number grabbed from a database.
Something like this :
exten => s,n,Do something
exten => s,n,Do something else
exten => s,n,Dial(ZAP/g1/${OUTBOUND},${timeout})
I need to log the time the person was connected to $(OUTBOUND) , these are
duration and billsec in the CDR's
So at hangup I do something like this.
exten => h,1,DeadAGI(cdr-
outlogger.php|${CDR(start)}|${OUTBOUND}|${CDR(channel)}|${CDR(duration)}|$
{CDR(billsec)}|${CDR(disposition)}|${CDR(accountcode)})
Trouble is duration and billsec are *ALWAYS* 0 (zero), as if they have n...
2009 Oct 28
1
CDR(billsec)
Hi people, when I try to get the billsec in the dialplan, it is 0... but if after that I check the database, it is right (not 0).
I'm trying to get it in the h extension, like:
exten => h,1,Noop(End)
exten => h,n,Noop(Time is ${CDR(billsec)})
....
Is it updated after the extension h is executed? In that case, how can I get the...
2010 Oct 31
1
billsec=0 when using Local channel
Hi,
I've got a dialplan that transfers all outgoing calls to a Local channel before dialling out via SIP.
I did this because sometimes i'm dialling two numbers at the same time and need to know which call is answered for billing purposes.
However, I've just noticed that billsec is always equal to 0 even though i know the calls were answered. I now have to take the cdrs from my provider and recalculate the billsec manually.
Any ideas why Local/ causes billsec to always be zero? Ive seen quite a few bug reports but no resolution.
I'm using 1.4.35.
Thanks
Dan
-------...
2008 Oct 09
2
Asterisk 1.6.0 CDR billsec and duration not working from h extension
Can someone tell me what I am doing wrong? Why doesn't CDR(duration)
or CDR(billsec) return the correct values?
cdr.conf
endbeforehexten=yes
extensions.conf
[macro-Dial]
; ${ARG1} - Dial String
exten => s,1,Dial(${ARG1},,M(post-dial))
exten => h,1,NoOp(Call was hung up - ${CDR(duration)} seconds long,
billed for ${CDR(billsec)} seconds)
The log shows:
-- Exe...
2007 May 03
3
0 duration but non-zero billsec in mysql cdr
I was just going through my call records ( stored in mysql database
by cdr_MYSQL module ) and saw a record having duration = 0 and billsec
of more than 50 seconds . I did a query on cdr where duration <
billsec and saw that there were infact some 250 records with duration
less than billsecond ( table had around 4,00,000 records) . Did anyone
came across this ?
I also checked csv files and they had same record with duration 0 and
hi...
2010 Jan 31
2
sip to dahdi and billsec
Hi,
My costumers are logged in on my Asterisk PBX through XLite Softphone (SIP).
My server is
connected to PSTN. Problem is when SIP phone calls ordinary phone via dahdi
I get
DAHDI/1-1 ANSWERED SIP/number-number and billsec field from cdr is start
counting.
Is it normal behavior ? Can I change that ?
So channel gets in ANSWERED state and billsec starts as soon as line starts
to ring even if no one really pick up ordinary phone and costumer did not
talk to anyone.
That leads to problem that costumers will be billed e...
2014 May 02
1
CDR billsec issue with calls forwarded through the Local channel
...a Local
channel (and using /n ) e.g.
Dial(Local/<my-number>@outbound-context/n,60)
The number is dialled and the call is all fine.
In the CDR we have 2 entries, one for the inbound leg and one for the
outbound leg as is expected by the use of the /n
However, the outbound leg CDR entry has a billsec of 0. The CDR for the
inbound leg has the correct duration of the call in the billsec column (I'm
writing CDRs to MySQL)
This is causing issues in my billing module for obvious reasons. I'm having
to find the inbound call by matching the channel in one leg with the
dstchannel in the other...
2010 Aug 11
1
billsec exceeds duration on some calls
Hi
I'm having a problem with Asterisk 1.6.2.9 with the MySQL cdr addon.
With some calls, the value in the `billsec` field in the CDR is exceeding the
value in the `duration` field.
I didn't think this was supposed to happen? Our old installation (some
ancient version, sorry not available) always had `billsec` <= `duration`.
The problem does not seem to be evenly distributed among extensions.
If y...
2004 Jul 02
3
CDR shows billsec=12 for all bridged calles.
Can someone help me, im using latest CVS, asterisk and cdr_mysql, when I
make a bridge call (using .call files in outgoing/) I always get
'billsec=12' in the cdr, both mysql and Master file even if the call lasted
longer, watching the Master file while making a call I see it updated at 12
seconds even while im still 'in' the DIAL app and the call continues on just
fine.
Iv looked through all my scripts and cant see anything to cau...
2006 Nov 13
3
Mysql 6 second rounding
This is more of mysql question then asterisk :D . Most voip providers use 6
second rounding for costing . My asterisk server stores call cdr's in mysql
properly with billsec field containing number of billed seconds . I want to
know some function to round this to 6 seconds ( or any custom valud like 30
seconds ) ..Suppose if billsec field is 3 seconds then it should round to 6
seconds , if its 13 second then it should round up to 18 seconds ( for 6sec
pulse counting )...
2010 Feb 08
1
billsec is set to duration if call is not answered
The behaviour of my Asterisk appears to have changed suddenly without
any apparent cause.
The version is use is 1.4.27.1
When a call is not answered billsec is set to duration, and calls are
charged. I can't see any change I could have
made to cause this problem. Is it something already known in Asterisk?
/voipfc
2006 May 03
1
dialing FXO gives wrong billsec
...emicell. When I dial the premicell,
after about two seconds is says 'ZAP/1 answered', then it takes a few more
seconds for the call to hit the cellular network, before the cellphone
starts to ring. However, asterisk sees the 'ZAP/1 answered' as the cell
phone being answered, so my billsecs in the cdr's are off by ten seconds
or so, and all the cdr's are 'ANSWERED', even though the cell phone was
not answered.
my dial string looks like so: (all calls come in to inbound)
[inbound]
exten => _X.,1,Dial(ZAP/1)
I have a standard zaptel and zapata, Asterisk 1.2.6
th...
2007 Mar 20
3
wrong values in duration and billsec in CDR
...ind the solution.
This is the scenario:
GSM Phone ----- GSM Network ---- TDM2406E --- ASterisk 1.4.0 (*) --------
VoIP Provider ------- Sip Phone or H323 Phone
The problem is that I am generating calls from SIP and also h323 (using
ooh323), and always I saw differences between duration time and billsecs
just for 4 or 3 seconds. Altought the difference is much more, I mean I just
call from SIP and H323 clients and always I saw the same behaviour.
When I generate the call I wait to pickup the cell phone almost 10 secs, the
right time should be something like 30 secs, but I saw duration = 50, and
b...
2003 Jun 19
2
Billsec on CDR
I have an X100P and when I place calls to the PSTN which are not answered, the Billsec field of the CDR still logs the seconds that the phone rang.
Can someone please confirm that this has to do with the ringcadance of the indications.conf file? Is there anything else I need to check ?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL:...
2009 Nov 16
2
Odd Local Channel and 0 billsec issue
Hi
I've been noticing an odd issue with our servers (1.4.17) where a large
number of one particular customer's (we operate a hosted VoIP platform)
calls go through a Local channel rather than the SIP channel and
whenever this happens our asterisk CDR is recording a billsec value of 0.
Our outgoing calls to POTS are sent through a separate carrier and we
get a daily CDR off them in which these same calls have a non 0 duration
so we are obviously making a loss on these calls.
All out customers outgoing calls go through the same macro which is as
follows
[macro-ext...