<div>I have found the problem. </div>
<div>Before calls leave our network, thee user must supply a pin. this is a for of call accounting that we implemented. To do this, we had used AMP's Authenticate () function. This function actually and always answers the channel first before accepting pin entries. This was why there is always an answered flag on the channel. and since the channel is answered as soon as the call is made, there is no difference between the duration and the billsec. Now my problem is how do i implement an authentication AGI that uses DTMF ? i would be posting this question in another thread
</div>
<div> </div>
<div>Thanks for your help<br><br> </div>
<div><span class="gmail_quote">On 10/17/06, <b class="gmail_sendername">Dumpolid Exeplish</b> <<a href="mailto:dumpexec@gmail.com">dumpexec@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>this Cdr Record if from the Primary PBX</div>
<div> </div>
<div><br>'2006-10-17 07:11:37', 'Admin', 'XXXXXXX, 'aaaaaaaaaa', 'from-internal', <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:'IAX2/TRUNK1@TRUNK3-16384'" target="_blank">'IAX2/TRUNK1@TRUNK3-16384'
</a>, 'Zap/1-1', 'ResetCDR', 'w', 10, 0, 'BUSY', 3, '', '', ''</div>
<div> </div>
<div> </div>
<div> </div>
<div>this is the CDR record from the secondsry for the same call</div>
<div> </div>
<div> </div>
<div>'2006-10-17 13:31:57', '"Admin" <XXXXX>', 'XXXXX', 'aaaaaaaaaa', 'from-internal', 'SIP/401-8f0c', 'IAX2/TRUNK1-2', 'Dial', 'IAX2/TRUNK1/aaaaaaaaaaa|120', 15, 15, 'ANSWERED', 3, '4147', '', ''</div>
<div> </div>
<div>in this setup, the caller dropped the call after allowing it to ring for 15 seconds</div>
<div><span class="e" id="q_10e564b34e83ccf7_1">
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br> </div>
<div><span class="gmail_quote">On 10/17/06, <b class="gmail_sendername">Dumpolid Exeplish</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dumpexec@gmail.com" target="_blank">dumpexec@gmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Well I am using APM on the two boxes i have modified the srripts extensievely and i am sure that there is no Awnser befor a dial when Dialing through the PBX trunks</div>
<div><span>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 10/17/06, <b class="gmail_sendername">Steve Davies</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:davies147@gmail.com" target="_blank">davies147@gmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 10/17/06, Dumpolid Exeplish <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dumpexec@gmail.com" target="_blank">
dumpexec@gmail.com</a>> wrote:<br>> Hello,<br>> i have call time irregularites in my asterisk CDR. I a currently using a<br>> mysqly backent to save CDR records and use this to generate bills at the end<br>> of each month. However, my users are complaining that they gety charged for
<br>> even uncompleted calls ( i.e. calls they make whaich have already be setup<br>> but canclled). i have noticed that only 'AWNSERED' and 'Busy' show up in my<br>> call disposition colume. I have also noticed that both the call duration and
<br>> the billsec are always equal. here is my setup below<br>><br>> <PSTN va E1> <========> (<Primary Asterisk>) <=====<Sip and IAX trunks><br>> <============> (<Secondary PBX>)
<br>><br>> Clients are connected to the Secondary PBX. this pbx handles registration of<br>> all clents. The billing irregularities happen on the Secondary PBX. When a<br>> call is maked from the Secondary and it is routed across the trunks, call
<br>> disposition always registeres 'AWNSERED', unless the Primary PBX sends back<br>> a busy signal. the duration and billsecs are always equla. this means that<br>> the user gets billed for ring time, and calls disconnected from the
<br>> Secondary PBX<br>><br><br>Could you provide a snippet of the dialplan used on each of the<br>primary and secondary boxes to complete a call?<br><br>For example, is the primary executing an Answer() before it does the
<br>onward Dial() on behalf of the secondary?<br><br>Cheers,<br>Steve<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://easynews.com/" target="_blank">
Easynews.com</a> --<br><br>asterisk-users mailing list <br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></span></div></blockquote></div><br></span></div></blockquote></div><br>