[Freeswitch-users] Many CS_REPORTING state Zombie session
Dome Charoenyost
dome at tel.co.th
Sat Oct 31 10:05:27 PDT 2009
2009/10/31 Brian West <brian at freeswitch.org>:
> You should never do billing inline with the session thread is all I'm
> saying.
Sorry I don't understand. This is my example dialplan
<action application="set"
data="dialoption=nibble_account=${caller_id_number},nibble_rate=0.001,ignore_early_media=false,originate_timeout=20/>
<action application="odbc_query" data="select carrier_name As
provider_id,balance::text As lcr_balance,(balance/rate)::int as
lcr_timeout,(balance/rate*60)::int as lcr_timeout_sec from
lcr('${caller_id_number}','$1','external');"/>
<action application="log" data="ALERT Balance ${lcr_balance}"/>
<action application="log" data="ALERT timeout ${lcr_timeout}"/>
<action application="execute_extension"
data="ck_zerobalance_${lcr_balance} XML public"/>
<action application="execute_extension"
data="tz_say_min_${lcr_timeout} XML public"/>
<action application="sched_hangup" data="+${lcr_timeout_sec}
alloted_timeout"/>
<action application="log" data="ALERT timeout_sec ${lcr_timeout_sec}"/>
<action application="odbc_query" data="select
'route_'||route_id::text As name,gw_prefix||prefix||gw_suffix As value
from lcr('${caller_id_number}','$1','external') ;"/>
<action application="bridge" data="{${dialoption}},${route_1}"/>
<action application="bridge" data="{${dialoption}},${route_2}"/>
<action application="bridge" data="{${dialoption}},${route_3}"/>
Dome C.
>
> /b
>
> On Oct 31, 2009, at 11:32 AM, Dome Charoenyost wrote:
>
>> I use odbc_query for retrive balance and get LCR from my billing DB.
>> and use nibble_bill
>>
>> Dome C.
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
More information about the FreeSWITCH-users
mailing list