[Freeswitch-users] Nibblebill deduc balance anyway

FERNANDO VILLARROEL fvillarroel at yahoo.com
Sat Sep 13 23:16:58 MSD 2014


Dear All.

When i do a call to a external number like my cellphone and If nibble_account have a balance equal to 0 the calls is tranfered to hangup context, it's works fine.

But my mobile number ring and if I answer and then hangup nibblebill reduces the balance anyway

I tried with ignore_early_media=true but not works

 <extension name="Todo_Chile">
      <condition field="destination_number" expression="^([2-9]\d{8})$">
      <action application="set" data="hangup_after_bridge=true"/>

     <action application="set" data="continue_on_fail=true"/>
     <action application="lcr" data="$1 pg_prefix2"/>

     <action application="set" data="nibble_account=${accountcode}"/>
     <action application="set" data="nibble_rate=${lcr_rate_1}"/>
      <action application="set" data="nobal_amt=0"/>
      <action application="set" data="lowbal_amt=0"/>
      <action application="bridge" data=" {ignore_early_media=true,nibble_account=2,nibble_rate=35,nobal_amt=0,lowbal_amt=0}sofia/gateway/${lcr_carrier_1}/0$1"/>
 <extension name="hangup">
          <condition field="destination_number" expression="^(hangup)$">
            <action application="log" data="Limit de Credit Exceded !!!!!!!!"/>
            <!--<action application="playback" data="no_more_funds.wav"/>-->
            <action application="hangup"/>
          </condition>
        </extension>

I tried with lcr_auto_route but does not work too


<action application="bridge" data="${lcr_auto_route}"/>


As you can see :

2014-09-13 10:17:49.246372 [DEBUG] mod_nibblebill.c:563 Billing $2.193306 to 2 (Call: 381bd4f6-5ccf-4f67-a801-cfac03319639 / 0.000000 so far)
2014-09-13 10:17:49.246372 [DEBUG] mod_nibblebill.c:393 Doing update query
[UPDATE auth_user SET saldo=saldo-2.193306 WHERE id='2']

my complete log  http://pastebin.freeswitch.org/23282

What i doing wrong? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140913/6711cb61/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list