[Freeswitch-users] NibbleBill not Hangup

Madovsky infos at madovsky.org
Wed Sep 26 09:51:50 UTC 2018


Do you have any extension named "hangup" in your default dialplan?

On 9/25/2018 9:28 AM, Social Boh wrote:
> Hello,
>
> I have a problem with NibbleBill module.
>
> If a user have 0 or less credit, FS not hangup the call:
>
> [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 
> 1000 (balance = -0.003100)
> [DEBUG] mod_nibblebill.c:523 Comparing -0.003100 to hangup balance of 
> 0.000000, taking into account minimum charge of 0.000000
> [DEBUG] mod_nibblebill.c:526 Balance of -0.003100 fell below allowed 
> amount of 0.000000! (Account 1000)
>
> this is only appear at the end of the call.
>
> In the configuration module I'm using:
>
> <param name="global_heartbeat" value="60"/>
>
> <param name="nobal_amt" value="0"/>
>     <param name="nobal_action" value="hangup XML default"/>
>
> hangup extensión:
>
> <include>
> <extension name="hangup">
>   <condition field="destination_number" expression="^(hangup)$">
>     <action application="playback" data="beep.wav"/>
>     <action application="hangup"/>
>   </condition>
> </extension>
> </include>
>
> dialplan:
>
> <action application="set" data="nibble_rate=0.02"/>
>       <action application="set" data="nibble_account=${accountcode}"/>
>
> Thank you
>
> Regards
>
>




More information about the FreeSWITCH-users mailing list