Hi, <br>
&nbsp;See my answers inline.<br><br><div><span class="gmail_quote">On 4/27/06, <b class="gmail_sendername">Ronald Ramos</b> &lt;<a href="mailto:nhadie@tbgi.net.ph">nhadie@tbgi.net.ph</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I'm sorry didn't understand swhat eeds to be done please see inline for<br>some more of my questions<br><br>Kumar, Ashutosh wrote:<br><br>&gt; Hi,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You can do like this:<br>&gt;&nbsp;&nbsp;1. When a customer signs up for his Wi-Fi service, after an insert
<br>&gt; into hsi 'subsriber' table, the same record should be passed to you<br>&gt; for inserting into your 'subscriber' table so that his users are<br>&gt; autheinticated succesfully against your AAA requests.<br><br>when you say his subscriber table, do you mean wi-fi subscriber table?
<br>or he should have a voip subscriber table of his own?</blockquote><div><br>
<span style="font-weight: bold;">By &quot;his subscriber table'&nbsp; i
mean&nbsp; the WIFI subscriber table. In addition, you will have voip
table for your own use. So it is like,<br>
- WIFI provider has wifi subscriber table<br>
-VOIP provider has voip subscriber table.<br>
</span></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;&nbsp;&nbsp;&nbsp;&nbsp; For implementing this, you give him your db credentials+schema ,<br>
&gt; so that he can run the query one after another in hsi registration script.<br><br>what type of query will he run?</blockquote><div style="font-weight: bold;"><br>
&nbsp;The query will be a simple SQL insert statement, which will
insert the record&nbsp; into the VOIP subsriber table. It may be noted
that there are two ways to do the insert.<br>
&nbsp; 1. The WIFI sends/redirects the insertion page after hsi wifi registration to the VOIP web'site inserion script.<br>
&nbsp; 2. The VOIP provider gives database access to WIFI provider to
to the insertion. Here the VOIP insertion will be almost same as WIFI
insertion, differing only in DB info.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; 2. Create/Use a flag set to 'ON' for all such customers which have<br>&gt; been created in such a 
manner.This will differentiate your users and<br>&gt; users from the Wi-Fi provider.<br><br>I'm also not familiar with flags, i'll try to read more on that, but<br>basically what does that flag do?</blockquote><div><br>
<span style="font-weight: bold;">FLAG here denotes a database BOOL
field (it may be char, int whaterver, serving the same purpose), which
will have two values,; one for your users, and another for the users in
the table who are created&nbsp; 'from' the WIFI provider side. </span><br style="font-weight: bold;">
<span style="font-weight: bold;">&nbsp; For eg, Here you might set the
default flag value as 0 (ZERO or OFF), and when you add a WIFI user
record, set the flag in that case=1 (ON).</span><br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; 3. Finally, At the time of settlement, do query something like &quot;select<br>
&gt; CDR where flag='ON' &quot; and present the records to him for settlement.</blockquote><div><span style="font-weight: bold;">For Billing, create a cron script, which genertate a report of successful based on the following query
</span><br style="font-weight: bold;">
<span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT * FROM CDR WHERE flag=1 AND DISCONNECT_CAUSE='SUCESS'</span><br style="font-weight: bold;">
<span style="font-weight: bold;">(Of course, the above might differ from your chema) .<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The generated report can be presented for billing to your WIFI provider.<br>
</span><br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">when his user login to their wi-fi system the billing already starts,<br>meaning the credit already starts to go down, then on that duration he
<br>decided he wants to make a phone call:<br><br>1. how can i make it in such a way that the username and password on his<br>card, will be the one configured on the phone (example an XPRO) that<br>will authenticate to mine (or maybe his subcriber table if that's what
<br>you mean on number 1).</blockquote><div><span style="font-weight: bold;">&nbsp;&nbsp;
If the subscriber table you created is integrated with a radius server
(freeqrduius?), and you are using an appropriate call flow route in
ser.cfg, then the authentication will be automatic, no need to do
anything extra.</span><br>
&nbsp;<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2. next will be how can i send him the update of how much he has already<br>consume fo VoIP alone to deduct it to hisWi-Fi credit simultaneously
<br>with his Wi-Fi usage?</blockquote><div><span style="font-weight: bold;">See
Answer 3. Here, automaitically, the charge you will present to him will
be automatcally only for the charges incurred by your switch,
irrespective of the fact that the subscirber was latched up to WIFI,
dialup or whatever.</span><br style="font-weight: bold;">
<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;<br>&gt; Regard,<br>&gt; Ashutosh<br>&gt;<br>&gt; On 4/26/06, *Nhadie* &lt;<a href="mailto:nhadie@tbgi.net.ph">
nhadie@tbgi.net.ph</a> &lt;mailto:<a href="mailto:nhadie@tbgi.net.ph">nhadie@tbgi.net.ph</a>&gt;&gt;<br>&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi All,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I have built an ser server and offering postpaid voip right now.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; It's just a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; basic ser setup, authenticate then make calls then i bill them.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; But one client that offers Wi-Fi pepaid card would like to offer VoIP<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; service using their card and he's going to use my system. My main
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; problem is<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; how to integrate it to their billing system.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; how can i do it in such a way that his customer can use my voip<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; service and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; deduct the amount of usage on their Wi-Fi credit? And then I'll
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; just bill my<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; client for the usage of all his customers.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; hope my question was clear, thank you in advance.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Regards<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Nhadie<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ________________________________________________
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Message sent using UebiMiau 2.7<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Serusers mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a> &lt;mailto:
<a href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="http://lists.iptel.org/mailman/listinfo/serusers">
http://lists.iptel.org/mailman/listinfo/serusers</a>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; -----BEGIN PGP SIGNATURE-----<br>&gt; Version: GnuPG v1.2.7 (GNU/Linux)<br>&gt; iD8DBQBEPo9P/OykOp7fM/wRAjw8AKCOlSsiHl7cyfCiitFJyEIEMhinHgCfb6YX
<br>&gt; lrreitIO+tLZKrpjm81hsbY= =MEGA<br>&gt; -----END PGP SIGNATURE----- &quot;<br>&gt;<br>&gt; There are 10 kinds of people in this world, those who understand<br>&gt; Binary and those who dont&quot;.<br>&gt;<br>&gt;------------------------------------------------------------------------
<br>&gt;<br>&gt;_______________________________________________<br>&gt;Serusers mailing list<br>&gt;<a href="mailto:serusers@lists.iptel.org">Serusers@iptel.org</a><br>&gt;<a href="http://lists.iptel.org/mailman/listinfo/serusers">
http://lists.iptel.org/mailman/listinfo/serusers</a><br>&gt;<br>&gt;<br><br></blockquote></div><br><br clear="all"><br>-- <br style="font-weight: bold;"><span style="font-weight: bold;">-----BEGIN PGP SIGNATURE-----</span>
<br style="font-weight: bold;"><span style="font-weight: bold;">
Version: GnuPG v1.2.7 (GNU/Linux)
iD8DBQBEPo9P/OykOp7fM/wRAjw8AKCOlSsiHl7cyfCiitFJyEIEMhinHgCfb6YX
lrreitIO+tLZKrpjm81hsbY= =MEGA</span><br style="font-weight: bold;"><span style="font-weight: bold;"> -----END PGP SIGNATURE----- &quot;</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">
There are 10 kinds of people in this world, those who understand Binary and those who dont&quot;.
</span>