<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div class="" style="">Dear all.</div><div class="" style=""><br class="" style=""></div><div style="background-color: transparent;" class="">I am trying to use the both modules, but i have problems:</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">Always the balance decreases and when i cancel the call the destination number ringing anyway.</div><div style="background-color: transparent;" class=""><span style="background-color: transparent; font-size: 12pt;" class="">Also if the customer does not have balance, to try to make a call this goes
smoothly</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><span style="background-color: transparent; font-size: 12pt;" class="">in other words the calls always comes. </span><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">The log <a href="http://pastebin.freeswitch.org/23267" style="font-size: 12pt;" class="">http://pastebin.freeswitch.org/23267</a></div><div
style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">My lcr.conf.xml</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><configuration name="lcr.conf" description="LCR Configuration"></div><div style="background-color: transparent;" class=""> <settings></div><div style="background-color: transparent;" class="">
<!--<param name="odbc-dsn" value="freeswitch-mysql:freeswitch:Fr33Sw1tch"/>--></div><div style="background-color: transparent;" class=""> <param name="odbc-dsn" value="freeswitch:freeswitch:vmo123"/></div><div style="background-color: transparent;" class=""> </settings></div><div style="background-color: transparent;" class=""> <profiles></div><div style="background-color: transparent;" class=""> <profile name="default"></div><div style="background-color: transparent;" class=""> <param name="id" value="0"/></div><div style="background-color: transparent;" class=""> <param name="order_by" value="rate,quality,reliability"/></div><div style="background-color: transparent;" class=""> </profile></div><div style="background-color: transparent;" class=""> <profile name="qual_rel"></div><div
style="background-color: transparent;" class=""> <param name="id" value="1"/></div><div style="background-color: transparent;" class=""> <param name="order_by" value="quality,reliability"/></div><div style="background-color: transparent;" class=""> </profile></div><div style="background-color: transparent;" class=""> <profile name="rel_qual"></div><div style="background-color: transparent;" class=""> <param name="id" value="2"/></div><div style="background-color: transparent;" class=""> <param name="order_by" value="reliability,quality"/></div><div style="background-color: transparent;" class=""> </profile></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div
style="background-color: transparent;" class=""> <profile name="pg_prefix2"></div><div style="background-color: transparent;" class=""><span style="background-color: transparent; font-size: 12pt;" class=""> <param name="order_by" value="rate,quality,reliability"/></span><br class="" style=""></div><div style="background-color: transparent;" class=""> <param name="export_fields" value="nibble_account,nibble_rate,lowbal_amt,nobal_amt"/></div><div style="background-color: transparent;" class=""> <param name="custom_sql" value="</div><div style="background-color: transparent;" class=""> SELECT l.digits AS lcr_digits,</div><div style="background-color: transparent;" class=""> c.id AS lcr_carrierid_field,</div><div style="background-color: transparent;"
class=""> c.carrier_name AS lcr_carrier_name,</div><div style="background-color: transparent;" class=""> l.${lcr_rate_field} as lcr_rate_field,</div><div style="background-color: transparent;" class=""> cg.prefix AS lcr_gw_prefix, cg.suffix AS lcr_gw_suffix,</div><div style="background-color: transparent;" class=""> l.lead_strip AS lcr_lead_strip, l.trail_strip AS lcr_trail_strip,</div><div style="background-color: transparent;" class=""> l.prefix AS lcr_prefix, l.suffix AS lcr_suffix,</div><div style="background-color: transparent;" class=""> a.id AS nibble_account,</div><div style="background-color: transparent;" class="">
l.${lcr_rate_field} AS nibble_rate,</div><div style="background-color: transparent;" class=""> a.warn_limit AS lowbal_amt,</div><div class="" style=""><div class="" style=""> a.nobal_limit AS nobal_amt,</div><div class="" style=""> a.id_tarifa AS tarifa </div><div class="" style=""> FROM lcr l</div><div class="" style=""> JOIN carriers c ON l.carrier_id=c.id</div><div class="" style=""> JOIN carrier_gateway cg ON c.id=cg.carrier_id</div><div class="" style=""> JOIN auth_user a ON a.id = ${accountcode} </div><div class="" style=""> JOIN tarifas t ON t.id =
a.id_tarifa </div><div class="" style=""> WHERE c.enabled = '1' AND cg.enabled = '1' AND l.enabled = '1'</div><div class="" style=""> AND l.digits @> '${lcr_query_digits}'</div><div class="" style=""> AND CURRENT_TIMESTAMP BETWEEN date_start AND date_end</div><div class="" style=""> ORDER BY digits DESC, ${lcr_rate_field}, random();</div><div class="" style=""> "/></div><div class="" style=""> </profile> </div><div class="" style=""> </profiles></div><div class="" style=""></configuration></div><div class="" style=""><br class="" style=""></div><div class="" style=""><span style="font-size: 12pt;" class="">My Dialplan:</span><br class="" style=""></div><div class="" style=""><br class="" style=""></div><div class="" style=""><div
class="" style=""> <extension name="tests"></div><div class="" style=""> <condition field="destination_number" expression="^([23]\d{3})$"></div><div class="" style=""><span style="font-size: 12pt;" class=""> <action application="lcr" data="$1 pg_prefix2"/></span><br class="" style=""></div></div><div class="" style=""><div class="" style=""> <span style="font-size: 12pt;" class=""> <action application="bridge" data="${lcr_auto_route}"/></span></div><div class="" style=""><div class="" style=""> </condition></div><div class="" style=""> </extension></div><div class="" style=""><br class="" style=""></div><div class="" style=""><br class="" style=""></div><div class="" style="">What i doing wrong i am follow <a
href="http://wiki.freeswitch.org/wiki/Mod_lcr#Integrating_with_mod_nibblebill" style="background-color: rgb(255, 255, 255); font-size: 12pt;" class="">http://wiki.freeswitch.org/wiki/Mod_lcr#Integrating_with_mod_nibblebill</a></div><div class="" style=""> </div><div class="" style=""> </div></div><div class="" style="">I appreciate some help.</div><div class="" style=""><br class="" style=""></div><div class="" style="">regards</div></div><div class="" style=""><br class="" style=""></div></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""> </div></div></body></html>