<br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 8:07 PM, Steve Totaro <<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">On Thu, Apr 17, 2008 at 5:14 PM, Mojo with Horan & Company, LLC<br>
<<a href="mailto:mojo@horanappraisals.com">mojo@horanappraisals.com</a>> wrote:<br>
> Raúl Gómez C. wrote:<br>
> > Hi list,<br>
> ><br>
> <snip><br>
><br>
><br>
> > I think this is a very common scenario so, how are you doing to handle this<br>
> > situation???<br>
> ><br>
> What if you were to set an account code to the extension that is<br>
> requesting the long-distance call?<br>
><br>
> So person at extension 111 requests a long distance call to<br>
> 808-555-1212. Lets say the receptionist dials, then, *111*8085551212...<br>
><br>
> The PBX does something like:<br>
><br>
> exten => _*XXX*NXXNXXXXXX,1,SetAccountCode(${EXTEN:1:3})<br>
> exten => _*XXX*NXXNXXXXXX,n,Dial(Zap/G1/${EXTEN:5})<br>
><br>
> then, the receptionist transfers the call to extension 111, which again<br>
> sets the account code to111.<br>
><br>
> Seems the account code would help the CDRs to make more sense? Maybe I<br>
> overlooked something :)<br>
><br>
> When anybody in the office dials 111, however, the accountcode will<br>
> still be set in my scenario. This might lead to the user at 111 being<br>
> charged for inter-office calls! So:<br>
><br>
> exten => _XXX,1,Dial(SIP/${EXTEN})<br>
><br>
> exten => _#XXX,1,SetAccountCode(${EXTEN:1})<br>
> exten => _#XXX,2,Goto(${EXTEN:1},1)<br>
><br>
> And the receptionist transfers long distance calls to #111<br>
><br>
> Moj<br>
><br>
<br>
<br>
</div></div>Without putting too much thought into it, it would seem that<br>
creatively using queues or maybe even a meetme room, you could get<br>
accurate billing.<br>
<br>
Maybe if you use some AGI/AMI mojo along with queue_log you could come<br>
up with something solid? Not sure how using app_bridge shows up in<br>
CDR either...<br>
<br>
Just a thought.<br>
<br>
Thanks,<br>
<font color="#888888">Steve Totaro<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nacho<br>Linux Counter #156439