Hi Steve and Mojo,<br><br>Thank you very much for your input, I will try this approach and I&#39;ll let you know for the results...<br><br>Thanks again...<br><br>-- <br>Nacho<br>Linux Counter #156439
<br><br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 8:07 PM, Steve Totaro &lt;<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thu, Apr 17, 2008 at 5:14 PM, Mojo with Horan &amp; Company, LLC<br>
&lt;<a href="mailto:mojo@horanappraisals.com">mojo@horanappraisals.com</a>&gt; wrote:<br>
&gt; Raúl Gómez C. wrote:<br>
&gt; &nbsp;&gt; Hi list,<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&lt;snip&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;&gt; I think this is a very common scenario so, how are you doing to handle this<br>
&gt; &nbsp;&gt; situation???<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;What if you were to set an account code to the extension that is<br>
&gt; &nbsp;requesting the long-distance call?<br>
&gt;<br>
&gt; &nbsp;So person at extension 111 requests a long distance call to<br>
&gt; &nbsp;808-555-1212. &nbsp;Lets say the receptionist dials, then, *111*8085551212...<br>
&gt;<br>
&gt; &nbsp;The PBX does something like:<br>
&gt;<br>
&gt; &nbsp;exten =&gt; _*XXX*NXXNXXXXXX,1,SetAccountCode(${EXTEN:1:3})<br>
&gt; &nbsp;exten =&gt; _*XXX*NXXNXXXXXX,n,Dial(Zap/G1/${EXTEN:5})<br>
&gt;<br>
&gt; &nbsp;then, the receptionist transfers the call to extension 111, which again<br>
&gt; &nbsp;sets the account code to111.<br>
&gt;<br>
&gt; &nbsp;Seems the account code would help the CDRs to make more sense? &nbsp;Maybe I<br>
&gt; &nbsp;overlooked something :)<br>
&gt;<br>
&gt; &nbsp;When anybody in the office dials 111, however, the accountcode will<br>
&gt; &nbsp;still be set in my scenario. &nbsp;This might lead to the user at 111 being<br>
&gt; &nbsp;charged for inter-office calls! &nbsp;So:<br>
&gt;<br>
&gt; &nbsp;exten =&gt; _XXX,1,Dial(SIP/${EXTEN})<br>
&gt;<br>
&gt; &nbsp;exten =&gt; _#XXX,1,SetAccountCode(${EXTEN:1})<br>
&gt; &nbsp;exten =&gt; _#XXX,2,Goto(${EXTEN:1},1)<br>
&gt;<br>
&gt; &nbsp;And the receptionist transfers long distance calls to #111<br>
&gt;<br>
&gt; &nbsp;Moj<br>
&gt;<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? &nbsp;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>
 &nbsp; <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>