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"><<a href="mailto:rafonline@hotmail.com">rafonline@hotmail.com</a>></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 'nibble_rate' 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>
> Date: Thu, 30 Dec 2010 10:51:39 -0600<br>
> From: <a href="mailto:rupa@rupa.com">rupa@rupa.com</a><br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: Re: [Freeswitch-users] mod lcr<br>
<div class="im">><br>
> I guess my first question would be *which* rate field? Notice they are<br>
> all different. If you mean after the bridge completes, then the var is<br>
> set on the b-leg which you can use to announce the rate or whatever.<br>
><br>
> On Thu, Dec 30, 2010 at 10:22 AM, Rafqat .<br>
</div><div class="im">> > wrote:<br>
><br>
><br>
> Hi,<br>
><br>
> I am using mod lcr with mod nibble, my example LCR invocation returns<br>
> the following in lcr_auto_route:<br>
><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>
> I was wondering if there is a quick method of accessing the nibble_rate<br>
> field, so I can give callers an estimate of how long they before<br>
> bridging their call? I was hoping for some session variable to be<br>
> populated by lcr to give easy access to this field.<br>
><br>
> Any help will be appreciated<br>
><br>
> Cheers<br>
><br>
><br>
> Raf<br>
><br>
><br>
><br>
><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>
><br>
><br>
><br>
> --<br>
> -Rupa<br>
><br>
</div>> _______________________________________________ FreeSWITCH-users<br>
<div><div></div><div class="h5">> mailing list <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>
<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>