<span class="lHQn1d">Hi Sherwood </span>,<br><br>well , i think you did not understand my question , i want real time billing<br>like as i mentioned that if i want to dial 5 number with different call rate how can i access same <br>
balance into those 5 people, if all are connected how can i periodically update billing , as you suggested it will assign total balance to those 5 people but actually we can not do like this as total balance of user $100 , as per your suggestion it will give $100 for those 5 people which is practically wrong i think. <br>
<br>give your thougts.<br><br>regards<br>dhaval<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 11:44 AM, Sherwood McGowan <span dir="ltr">&lt;<a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a>&gt;</span> 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 class="gmail_quote"><div><div></div><div class="h5">On Thu, Oct 21, 2010 at 12:24 AM, DHAVAL INDRODIYA <span dir="ltr">&lt;<a href="mailto:dhaval.it01034@gmail.com" target="_blank">dhaval.it01034@gmail.com</a>&gt;</span> wrote:<br>
</div></div><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="h5">

Hello All,<br><br>after so long time i posted a new question regarding billing, hope  anyone have some solution.<br><br>I have situation in that i want to do billing of more than 1 call in real time below are scenario and explanation. <br>



<br><br>Scenario:<br> A customer called my DID number and after that from here i dial few number let say 5 number. once number are placed into DIAL<br>i will put this customer into conference [MEETME] , once a Members are picked up call they will also patched into conference and <br>



talking is started, every thing working fine with DIAL-PLAN and DB look up. <br><br>Now, i want to do billing on customer dialed my DID, and from that actually it DIALED 5 numbers, how can i DO real time billing <br>into this situation, like numbers can be different It can be ISD,STD,Local and also free .<br>



<br>if customer having initial balance of $100 then how can i check balance every <a href="http://time.in" target="_blank">time.in</a> a situation once balance is nil then i want to disconnect <br>calls . is any one facing this type of situation.<br>



<br>give me some  idea ,<br><br>regards<br><font color="#888888">Dhaval<br><br>
</font><br></div></div><div class="im">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></blockquote></div><br><br>Dhaval,<br>This sounds very much like a system I&#39;m working on for a client right 
now. I&#39;m not permitted to disclose much about it due to the NDA i 
signed, but I&#39;ll risk giving you a point in the right direction. <br>
<br>First, you should create a table in your database that has a column called callid, and other columns that you will have to decide upon. This table will be called something like &#39;<i>call_references</i>&#39;. Oh, and you&#39;ll want to define callid as the primary key for records in that table, but DO NOT make it an autoincrement, you&#39;re going to populate it with a value that is described in the next step.<br>


<br>Second, at the beginning of the original call you mentioned, define a variable that will be unique to that call. I personally have done this by stripping all non-digits from the caller&#39;s callerid (using Set(newcid=${FILTER(0123456789,${CALLERID(number)})} ), and then adding the to ${EPOCH}. I did it this way: ${MATH(${newcid}+${EPOCH})}. <br>


<br>Next (this is where I have to start being a bit vague), you&#39;re going to perform an INSERT query, creating a new call_references record (using that variable I just showed you how to construct as callid&#39;s value). <br>


<br>Now, when you defined that variable, you should have preceded the variable name with two underscores ( __ ), which will tell Asterisk that channels spawned by the current channel will inherit that variable and it&#39;s value. <br>


<br>Voila, you now have a method for storing realtime data such as billing information between MULTIPLE calls. <br><br>I wish I could tell you more, but I can&#39;t violate my client&#39;s Non-Disclosure Agreement.<br><br>


Hope this helps you out!<br><font color="#888888"><br>Sherwood McGowan<br><br>
</font><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></blockquote></div><br>