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']
What i doing wrong?