Hi, I am using mod lcr with mod nibble, my example LCR invocation returns the following in lcr_auto_route: [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 I was wondering if there is a quick method of accessing the nibble_rate field, so I can give callers an estimate of how long they before bridging their call? I was hoping for some session variable to be populated by lcr to give easy access to this field. Any help will be appreciated Cheers Raf
I guess my first question would be *which* rate field? Notice they are all different. If you mean after the bridge completes, then the var is set on the b-leg which you can use to announce the rate or whatever. On Thu, Dec 30, 2010 at 10:22 AM, Rafqat . <rafonline@hotmail.com> wrote:
Hi,
I am using mod lcr with mod nibble, my example LCR invocation returns the following in lcr_auto_route:
[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
I was wondering if there is a quick method of accessing the nibble_rate field, so I can give callers an estimate of how long they before bridging their call? I was hoping for some session variable to be populated by lcr to give easy access to this field.
Any help will be appreciated
Cheers
Raf
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -Rupa
Hi Rupa I am after the 'nibble_rate' field which is returned from my custom sql: [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 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. Is there away of getting this field into session scope? Cheers Raf ________________________________
Date: Thu, 30 Dec 2010 10:51:39 -0600 From: rupa@rupa.com To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod lcr
I guess my first question would be *which* rate field? Notice they are all different. If you mean after the bridge completes, then the var is set on the b-leg which you can use to announce the rate or whatever.
On Thu, Dec 30, 2010 at 10:22 AM, Rafqat .
wrote:
Hi,
I am using mod lcr with mod nibble, my example LCR invocation returns the following in lcr_auto_route:
[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
I was wondering if there is a quick method of accessing the nibble_rate field, so I can give callers an estimate of how long they before bridging their call? I was hoping for some session variable to be populated by lcr to give easy access to this field.
Any help will be appreciated
Cheers
Raf
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -Rupa
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Again, which rate do you want to use to calculate your 5min duration? Depending on your carrier the rate will be significantly different. 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? On Thu, Dec 30, 2010 at 11:05 AM, Rafqat . <rafonline@hotmail.com> wrote:
Hi Rupa
I am after the 'nibble_rate' field which is returned from my custom sql:
[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
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.
Is there away of getting this field into session scope?
Cheers
Raf
________________________________
Date: Thu, 30 Dec 2010 10:51:39 -0600 From: rupa@rupa.com To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod lcr
I guess my first question would be *which* rate field? Notice they are all different. If you mean after the bridge completes, then the var is set on the b-leg which you can use to announce the rate or whatever.
On Thu, Dec 30, 2010 at 10:22 AM, Rafqat .
wrote:
Hi,
I am using mod lcr with mod nibble, my example LCR invocation returns the following in lcr_auto_route:
[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
I was wondering if there is a quick method of accessing the nibble_rate field, so I can give callers an estimate of how long they before bridging their call? I was hoping for some session variable to be populated by lcr to give easy access to this field.
Any help will be appreciated
Cheers
Raf
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -Rupa
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -Rupa
participants (2)
-
Rafqat .
-
Rupa Schomaker