<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Olivier<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, November 12, 2010
8:12 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
Asterisk 1.6.20 / CDR issue with app-dial / bug or feature?</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2010/11/12 Thorsten Göllner &lt;<a href="mailto:tg@ovm-group.com">tg@ovm-group.com</a>&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi,<br>
<br>
it's me again with a cdr-issue. I have the following example<br>
extensions.conf:<br>
<br>
# dial in<br>
exten =&gt; 100,1,Playback(hello)<br>
exten =&gt; 100,n,Dial(local/200,20,rtg)<br>
exten =&gt; 100,n,Playback(pleasewait)<br>
exten =&gt; 100,n,wait(10)<br>
exten =&gt; 100,n,Playback(goodbye)<br>
exten =&gt; 100,n,Hangup<br>
<br>
# for local dial<br>
exten =&gt; 200,1,Playback(hello)<br>
exten =&gt; 200,n,wait(10)<br>
exten =&gt; 100,n,Playback(goodbye)<br>
exten =&gt; 200,n,Hangup<br>
<br>
When dial into 100 I receive 2 CDRs immediatly after finishing the local<br>
Dial-Command:<br>
<br>
&quot;&quot;,&quot;my_phone_number&quot;,&quot;200&quot;,&quot;default&quot;,&quot;my_phone_number&quot;,&quot;Local/200@default-6697;2&quot;,&quot;&quot;,&quot;Hangup&quot;,&quot;&quot;,&quot;2010-11-11<br>
13:16:38&quot;,&quot;2010-11-11 13:16:38&quot;,&quot;2010-11-11<br>
13:16:50&quot;,12,12,&quot;ANSWERED&quot;,&quot;DOCUMENTATION&quot;,&quot;1289481398.20231&quot;,&quot;&quot;<br>
<br>
&quot;&quot;,&quot;my_phone_number&quot;,&quot;100&quot;,&quot;pbx-in&quot;,&quot;my_phone_number&quot;,&quot;DAHDI/27-1&quot;,&quot;Local/200@default-6697;1&quot;,&quot;Dial&quot;,&quot;local/200,20,rtg&quot;,&quot;2010-11-11<br>
13:16:38&quot;,&quot;2010-11-11 13:16:38&quot;,&quot;2010-11-11<br>
13:16:50&quot;,12,12,&quot;ANSWERED&quot;,&quot;DOCUMENTATION&quot;,&quot;1289481398.20229&quot;,&quot;&quot;<br>
<br>
So the second CDR is my call but the duration ignores that after the<br>
Dial-Command the call still continues (wait(10) and Playback).<br>
<br>
Ist that a bug or feature?<br>
<br>
-Thorsten-<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I&#8217;m going to vote for &#8220;feature&#8221;. 
By definition, you processed two calls.  Call 1 (CDR 2) is the &#8220;incoming&#8221;
call you made to 100.  Call 2 (CDR 1) is the &#8220;local call&#8221; made to
200 from the 100 context.  What I find curious is that the two calls are &#8220;exactly
synchronous&#8221;.  I would have thought that it would take at least 1 second
to &#8220;play hello&#8221; and start the new call.<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>