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