[asterisk-users] Asterisk 1.6.20 / CDR issue with app-dial / bug or feature?

Danny Nicholas danny at debsinc.com
Fri Nov 12 10:02:17 CST 2010


Sorry for top-post, but takes longer to un-work when both ends are outlook.

Did sox on goodbye and hello to get lengths.

sox goodbye.gsm goodbye.wav stat

Samples read:              7360

Length (seconds):      0.920000

Scaled by:         2147483647.0

Maximum amplitude:     0.332275

Minimum amplitude:    -0.306641

Midline amplitude:     0.012817

Mean    norm:          0.026449

Mean    amplitude:     0.000079

RMS     amplitude:     0.045716

Maximum delta:         0.141113

Minimum delta:         0.000000

Mean    delta:         0.009639

RMS     delta:         0.018010

Rough   frequency:          501

Volume adjustment:        3.010

sox hello.gsm hello.wav stat

Samples read:              7200

Length (seconds):      0.900000

Scaled by:         2147483647.0

Maximum amplitude:     0.426270

Minimum amplitude:    -0.238037

Midline amplitude:     0.094116

Mean    norm:          0.035592

Mean    amplitude:    -0.000220

RMS     amplitude:     0.065434

Maximum delta:         0.314697

Minimum delta:         0.000000

Mean    delta:         0.018985

RMS     delta:         0.037286

Rough   frequency:          725

Volume adjustment:        2.346

 

My system doesn’t have a pleasewait sound.

Assuming that part 2 of your dialplan should have read

# for local dial
exten => 200,1,Playback(hello)
exten => 200,n,wait(10)
exten => 200,n,Playback(goodbye)
exten => 200,n,Hangup



Both segments would take approximately 11.92 seconds.  Just for grins,
change segment 2 to 

# for local dial
exten => 200,1,Playback(hello)
exten => 200,n,wait(15)
exten => 200,n,Playback(goodbye)
exten => 200,n,Hangup

 

And see if the 2 durations remain at 12 seconds or become 12 and 17 seconds.



 

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Thorsten
Göllner
Sent: Friday, November 12, 2010 9:46 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.6.20 / CDR issue with app-dial /
bug or feature?

 

Exactly! The call duration is not correct in this case. That is "my"
problem.

Am 12.11.2010 15:23, schrieb Danny Nicholas: 

  _____  

size=2 width="100%" align=center tabindex=-1> 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
Sent: Friday, November 12, 2010 8:12 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.6.20 / CDR issue with app-dial /
bug or feature?

 

 

2010/11/12 Thorsten Göllner <tg at ovm-group.com>

Hi,

it's me again with a cdr-issue. I have the following example
extensions.conf:

# dial in
exten => 100,1,Playback(hello)
exten => 100,n,Dial(local/200,20,rtg)
exten => 100,n,Playback(pleasewait)
exten => 100,n,wait(10)
exten => 100,n,Playback(goodbye)
exten => 100,n,Hangup

# for local dial
exten => 200,1,Playback(hello)
exten => 200,n,wait(10)
exten => 100,n,Playback(goodbye)
exten => 200,n,Hangup

When dial into 100 I receive 2 CDRs immediatly after finishing the local
Dial-Command:

"","my_phone_number","200","default","my_phone_number","Local/200 at default-66
97;2","","Hangup","","2010-11-11
13:16:38","2010-11-11 13:16:38","2010-11-11
13:16:50",12,12,"ANSWERED","DOCUMENTATION","1289481398.20231",""

"","my_phone_number","100","pbx-in","my_phone_number","DAHDI/27-1","Local/20
0 at default-6697;1","Dial","local/200,20,rtg","2010-11-11
13:16:38","2010-11-11 13:16:38","2010-11-11
13:16:50",12,12,"ANSWERED","DOCUMENTATION","1289481398.20229",""

So the second CDR is my call but the duration ignores that after the
Dial-Command the call still continues (wait(10) and Playback).

Ist that a bug or feature?

-Thorsten-




I’m going to vote for “feature”.  By definition, you processed two calls.
Call 1 (CDR 2) is the “incoming” call you made to 100.  Call 2 (CDR 1) is
the “local call” made to 200 from the 100 context.  What I find curious is
that the two calls are “exactly synchronous”.  I would have thought that it
would take at least 1 second to “play hello” and start the new call.





-- 
Thorsten Göllner
 
OVM Office Voice Media GmbH
Herderstrasse 68
40237 Düsseldorf
 
Tel.: +49(0)211 / 618 57 53
Fax: +49(0)211 / 618 57 54
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101112/189d1c4a/attachment.htm 


More information about the asterisk-users mailing list