You can see an (older) version of my work-in-progress along with some discussion of how it works at:<div><br></div><div><a href="http://jira.freeswitch.org/browse/MODAPP-340">http://jira.freeswitch.org/browse/MODAPP-340</a></div>
<div><br></div><div><a href="http://jira.freeswitch.org/browse/MODAPP-340"></a>I haven&#39;t updated the patch since the version in my tree also depends on my limit work.  But the discussion should give you a better idea of how this will work.<br>
<br><div class="gmail_quote">On Fri, Mar 26, 2010 at 7:13 PM, Sergey Okhapkin <span dir="ltr">&lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Could you give more info about &quot;since you can query/set arbitrary channel vars<br>
via custom sql&quot;? How can I set a channel variable using mod_lcr with custom<br>
sql query?<br>
<div><div></div><div class="h5"><br>
On Friday 26 March 2010, Rupa Schomaker wrote:<br>
&gt; sell_rate you can get as a user_rate from mod_lcr or do your<br>
&gt; own separate query if you don&#39;t want lcr info too.<br>
&gt;<br>
&gt; billing increment, I&#39;ve seen a patch that implements this.  I was gonna<br>
&gt;  port that forward to current rev.  If Darren or someone else doesn&#39;t get<br>
&gt;  it first I&#39;ll get to it eventually.<br>
&gt;<br>
&gt; init_block - would implement at same time as billing_increment.<br>
&gt;<br>
&gt; connection_fee - again, like init_block.<br>
&gt;<br>
&gt; In fact, you *could* get all the values you need via the version of mod_lcr<br>
&gt; that is sitting locally since you can query/set arbitrary channel vars via<br>
&gt; custom sql.  You can decide how these fields relate to your lcr tables<br>
&gt;  (they may not, it is up to you based on the sql you craft).<br>
&gt;<br>
&gt; You also mentioned you don&#39;t want to bill in real-time but only at end of<br>
&gt; call.  This you can do today by turning off the heartbeat.   I think this<br>
&gt;  is already discussed on the wiki.<br>
&gt;<br>
&gt; As always, a bounty goes a long way.   One of the devs might jump on it<br>
&gt; sooner if there is money in it.  I&#39;m swamped for the next week at least<br>
&gt; so...  won&#39;t  have a chance to even look at this until then.  Not to<br>
&gt;  mention I want to finish cleaning up my limit stuff.<br>
&gt;<br>
&gt; On Fri, Mar 26, 2010 at 6:12 PM, Jean-Yves F. Barbier<br>
&lt;<a href="mailto:12ukwn@gmail.com">12ukwn@gmail.com</a>&gt;wrote:<br>
&gt; &gt; Le Fri, 26 Mar 2010 17:29:57 -0500,<br>
&gt; &gt; Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; a écrit :<br>
&gt; &gt;<br>
&gt; &gt; Ok, thanks, I read the mod_nibblebill page and What I&#39;d like to ask is to<br>
&gt; &gt; have some more features:<br>
&gt; &gt;<br>
&gt; &gt; * Connection fee<br>
&gt; &gt;<br>
&gt; &gt; * Time-credit (from french term &quot;crédit-temps&quot;, means when you make a<br>
&gt; &gt;  call you&#39;re first invoiced a minimum of X seconds - sometimes along a<br>
&gt; &gt;  connection fee:(<br>
&gt; &gt;<br>
&gt; &gt; * A per second invoicing instead of per minute, but without a DB call<br>
&gt; &gt; every second, just one call at hangup.<br>
&gt; &gt;<br>
&gt; &gt; &gt; you can post ideas here for discussion.<br>
&gt; &gt; &gt; if you want something specific you can open a jira incident at<br>
&gt; &gt; &gt; <a href="http://jira.freeswitch.org" target="_blank">http://jira.freeswitch.org</a> under &quot;improvement&quot; category.<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Conscious is when you are aware of something and conscience is when you<br>
&gt; &gt; wish you weren&#39;t.<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>
</div>