Again, which rate do you want to use to calculate your 5min duration?  Depending on your carrier the rate will be significantly different.<div><br></div><div>Anyway, look at lcr_rate_N where N is the route entry number.  This is set as a channel var.  After calling lcr, maybe call the info app to see which lcr variables are available for use?<br>
<br><div class="gmail_quote">On Thu, Dec 30, 2010 at 11:05 AM, Rafqat . <span dir="ltr">&lt;<a href="mailto:rafonline@hotmail.com">rafonline@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
Hi Rupa<br>
<br>
I am after the &#39;nibble_rate&#39; field which is returned from my custom sql:<br>
<div class="im"><br>
[lcr_carrier=carrier2,lcr_rate=0.12000,nibble_account=12345,nibble_rate=0.24000,lowbal_amt=0.1,nobal_amt=0]sofia/external/01@proxy.carrier2.net:5060|[lcr_carrier=carrier1,lcr_rate=0.15000,nibble_account=12345,nibble_rate=0.30000,lowbal_amt=0.1,nobal_amt=0]sofia/gateway/carrier1/$1<br>

<br>
</div>I would like to calculate the time the user has for the call before doing any bridging as they might have positive funds, but not enough for a minimum call duration of 5 minutes.<br>
<br>
Is there away of getting this field into session scope?<br>
<br>
Cheers<br>
<br>
Raf<br>
<br>
<br>
________________________________<br>
&gt; Date: Thu, 30 Dec 2010 10:51:39 -0600<br>
&gt; From: <a href="mailto:rupa@rupa.com">rupa@rupa.com</a><br>
&gt; To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
&gt; Subject: Re: [Freeswitch-users] mod lcr<br>
<div class="im">&gt;<br>
&gt; I guess my first question would be *which* rate field? Notice they are<br>
&gt; all different. If you mean after the bridge completes, then the var is<br>
&gt; set on the b-leg which you can use to announce the rate or whatever.<br>
&gt;<br>
&gt; On Thu, Dec 30, 2010 at 10:22 AM, Rafqat .<br>
</div><div class="im">&gt; &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am using mod lcr with mod nibble, my example LCR invocation returns<br>
&gt; the following in lcr_auto_route:<br>
&gt;<br>
&gt; [lcr_carrier=carrier2,lcr_rate=0.12000,nibble_account=12345,nibble_rate=0.24000,lowbal_amt=0.1,nobal_amt=0]sofia/external/01@proxy.carrier2.net:5060|[lcr_carrier=carrier1,lcr_rate=0.15000,nibble_account=12345,nibble_rate=0.30000,lowbal_amt=0.1,nobal_amt=0]sofia/gateway/carrier1/$1<br>

&gt;<br>
&gt; I was wondering if there is a quick method of accessing the nibble_rate<br>
&gt; field, so I can give callers an estimate of how long they before<br>
&gt; bridging their call? I was hoping for some session variable to be<br>
&gt; populated by lcr to give easy access to this field.<br>
&gt;<br>
&gt; Any help will be appreciated<br>
&gt;<br>
&gt; Cheers<br>
&gt;<br>
&gt;<br>
&gt; Raf<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&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; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -Rupa<br>
&gt;<br>
</div>&gt; _______________________________________________ FreeSWITCH-users<br>
<div><div></div><div class="h5">&gt; mailing list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&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; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><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>