<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    I have configured asterisk with Sangoma analog card. Outbound and
    Inbound calls are working fine. I have issue with CDR for outbound
    call.<br>
    <br>
    When I call to 0XXXXXXXXX number using sip/test, CDR is created
    between sip and dahdi channel.<br>
    <br>
    Here is CDR and CEL&nbsp; :-<br>
    <br>
+---------------------+--------------------+-----+-------------+-------------+---------------------+------------+---------+-------------------------+----------+---------+-------------+----------+-------------+---------------+-----------+<br>
    | calldate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | clid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | src | dst&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
    dcontext&nbsp;&nbsp;&nbsp; | channel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | dstchannel | lastapp |
    lastdata&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | duration | billsec | disposition |
    amaflags | accountcode | uniqueid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | userfield |<br>
+---------------------+--------------------+-----+-------------+-------------+---------------------+------------+---------+-------------------------+----------+---------+-------------+----------+-------------+---------------+-----------+<br>
    | 2012-09-05 02:11:25 | "sip/test" &lt;101&gt; | 101 &nbsp;&nbsp;&nbsp; &nbsp;|
    0XXXXXXXXXX | test&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | SIP/test-00000024 | DAHDI/3-1&nbsp; | Dial&nbsp;&nbsp;&nbsp; |
    dahdi/g0/0XXXXXXXXXX,20&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 48 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 33 | ANSWERED&nbsp;&nbsp;&nbsp;
    |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 1346825485.69 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
+---------------------+--------------------+-----+-------------+-------------+---------------------+------------+---------+-------------------------+----------+---------+-------------+----------+-------------+---------------+-----------+<br>
    <br>
    Here disposition is always answered whether I attend or reject the
    call.<br>
    <br>
    <meta http-equiv="CONTENT-TYPE" content="text/html;
      charset=ISO-8859-1">
    <table frame="VOID" rules="NONE" cellspacing="0" cols="20"
      border="0">
      <colgroup><col width="115"><col width="143"><col width="125"><col
          width="123"><col width="111"><col width="130"><col width="127"><col
          width="114"><col width="129"><col width="144"><col width="139"><col
          width="186"><col width="132"><col width="160"><col width="103"><col
          width="103"><col width="76"><col width="134"><col width="86"><col
          width="226"></colgroup> <tbody>
        <tr>
          <td height="50" width="115" align="LEFT"><font
              face="Liberation Serif">eventtype</font></td>
          <td width="143" align="LEFT"><font face="Liberation Serif">eventtime</font></td>
          <td width="125" align="LEFT"><font face="Liberation Serif">CALLERID(name)</font></td>
          <td width="123" align="LEFT"><font face="Liberation Serif">CALLERID(num)</font></td>
          <td width="111" align="LEFT"><font face="Liberation Serif">CALLERID(ANI)</font></td>
          <td width="130" align="LEFT"><font face="Liberation Serif">CALLERID(RDNIS)</font></td>
          <td width="127" align="LEFT"><font face="Liberation Serif">CALLERID(DNID)</font></td>
          <td width="114" align="LEFT"><font face="Liberation Serif">CHANNEL(exten)</font></td>
          <td width="129" align="LEFT"><font face="Liberation Serif">CHANNEL(context)</font></td>
          <td width="144" align="LEFT"><font face="Liberation Serif">CHANNEL(channame)</font></td>
          <td width="139" align="LEFT"><font face="Liberation Serif">CHANNEL(appname)</font></td>
          <td width="186" align="LEFT"><font face="Liberation Serif">CHANNEL(appdata)</font></td>
          <td width="132" align="LEFT"><font face="Liberation Serif">CHANNEL(amaflags)</font></td>
          <td width="160" align="LEFT">CHANNEL(accountcode)</td>
          <td width="103" align="LEFT"><font face="Liberation Serif">CHANNEL(uniqueid)</font></td>
          <td width="103" align="LEFT"><font face="Liberation Serif">CHANNEL(linkedid)</font></td>
          <td width="76" align="LEFT">BRIDGEPEER</td>
          <td width="134" align="LEFT">CHANNEL(userfield)</td>
          <td width="86" align="LEFT">userdeftype</td>
          <td width="226" align="LEFT">eventextra</td>
        </tr>
        <tr>
          <td height="17" align="LEFT">CHAN_START</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:11:25</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">s</td>
          <td align="LEFT">test</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">ANSWER</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:11:37</td>
          <td align="LEFT">sip/test</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">test</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">CHAN_START</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:11:37</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">s</td>
          <td align="LEFT">from-zaptel</td>
          <td align="LEFT">DAHDI/3-1</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825497.7" sdnum="1033;" align="RIGHT">1346825497.7</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">ANSWER</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:11:40</td>
          <td align="LEFT">sip/test</td>
          <td align="LEFT">XXXXXXXXXX</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="9717330017" sdnum="1033;" align="RIGHT">9717330017</td>
          <td align="LEFT">from-zaptel</td>
          <td align="LEFT">DAHDI/3-1</td>
          <td align="LEFT">AppDial</td>
          <td align="LEFT">(Outgoing Line)</td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825497.7" sdnum="1033;" align="RIGHT">1346825497.7</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">BRIDGE_START</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:11:40</td>
          <td align="LEFT">sip/test</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">s</td>
          <td align="LEFT">macro-std</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT">Dial</td>
          <td align="LEFT">dahdi/g0/0XXXXXXXXXX,20</td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT">DAHDI/3-1</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">BRIDGE_END</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:12:13</td>
          <td align="LEFT">sip/test</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">s</td>
          <td align="LEFT">macro-std</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT">Dial</td>
          <td align="LEFT">dahdi/g0/0XXXXXXXXXX,20</td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT">DAHDI/3-1</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">HANGUP</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:12:13</td>
          <td align="LEFT">sip/test</td>
          <td align="LEFT">XXXXXXXXXX</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">macro-std</td>
          <td align="LEFT">DAHDI/3-1</td>
          <td align="LEFT">AppDial</td>
          <td align="LEFT">(Outgoing Line)</td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825497.7" sdnum="1033;" align="RIGHT">1346825497.7</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">16,SIP/test-00000024,</td>
        </tr>
        <tr>
          <td height="17" align="LEFT">CHAN_END</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:12:13</td>
          <td align="LEFT">sip/test</td>
          <td align="LEFT">XXXXXXXXXX</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">macro-std</td>
          <td align="LEFT">DAHDI/3-1</td>
          <td align="LEFT">AppDial</td>
          <td align="LEFT">(Outgoing Line)</td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825497.7" sdnum="1033;" align="RIGHT">1346825497.7</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">HANGUP</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:12:13</td>
          <td align="LEFT">sip/test</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="9717330017" sdnum="1033;" align="RIGHT">9717330017</td>
          <td align="LEFT">test</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT">16,SIP/test-00000024,ANSWER</td>
        </tr>
        <tr>
          <td height="17" align="LEFT">CHAN_END</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:12:13</td>
          <td align="LEFT">sip/test</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="9717330017" sdnum="1033;" align="RIGHT">9717330017</td>
          <td align="LEFT">test</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT">LINKEDID_END</td>
          <td sdnum="1033;0;@" align="LEFT">2012-09-05 02:12:13</td>
          <td align="LEFT">sip/test</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td sdval="101" sdnum="1033;" align="RIGHT">101</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="9717330017" sdnum="1033;" align="RIGHT">9717330017</td>
          <td align="LEFT">test</td>
          <td align="LEFT">SIP/test-00000024</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td sdval="3" sdnum="1033;" align="RIGHT">3</td>
          <td align="LEFT"><br>
          </td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td sdval="1346825485.69" sdnum="1033;" align="RIGHT">1346825485.69</td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
        <tr>
          <td height="17" align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
          <td align="LEFT"><br>
          </td>
        </tr>
      </tbody>
    </table>
    <title></title>
    <meta name="GENERATOR" content="LibreOffice 3.4 (Linux)">
    <style>
                <!-- 
                BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Liberation Sans"; font-size:x-small }
                 -->
        </style><br>
    <br>
    and here is my dial plan:<br>
    <br>
    [test]<br>
    exten =&gt; _XXXXXXXXXXX,1,Dial(dahdi/g0/${EXTEN:})<br>
    <br>
    Could anyone please tell me where I am doing mistake.<br>
    <br>
    <br>
    Any help will be appreciable.<br>
    <br>
    <br>
    Thanks <br>
    <br>
    Parveen <br>
    <br>
  </body>
</html>