[Freeswitch-users] freeswitch crash while executing odbc_query

Evgeniy Movlyan evgeniy at bestnet.kharkov.ua
Mon Oct 8 11:52:21 MSD 2012


Hello to all,
I'm using mod_odbc_query in my dialplan to get nibble_rate, my dialplan is:

<condition field="${AUTH_RESULT_RADIUS}" expression="^OK$">
  <action application="set" 
data="effective_caller_id_number=${outbound_caller_id_number}"/>
  <action application="set" 
data="effective_caller_id_name=${outbound_caller_id_name}"/>
  <action application="odbc_query" inline="true" data="get_rate"/>
  <action application="sleep" data="1000"/>
  <action application="bridge" 
data="{ignore_early_media=ring_ready,enable_heartbeat_events=60,nibble_rate=${rate},nibble_account=${caller_id_number}}sofia/gateway/${default_gateway}/${dialed_number}"/>
</condition>

get_rate query:
<query name="get_rate" value="SELECT 
radgetprice('${dialed_number}',localtimestamp,60) AS rate"/>

My problem is that freeswitch crashes when number of active calls 
reaches 5-7.
Last messages in freeswitch.log are:
Dialplan: sofia/internal/ABCDE at 1.2.3.4 Action odbc_query(get_rate) INLINE
EXECUTE sofia/internal/ABCDE at 1.2.3.4 odbc_query(get_rate)

Can anybody help?
-- 
Evgeniy Movlyan,
BestNet Ltd.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list