<div dir="ltr"><div style="font-size:12.8000001907349px">I have a problem with my configuration of nibblebill module, is configured so that when the cash = 0 send the call to hangup, but brand sip Error 483 - Too many hops. My configuration is:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">mod_nibblebill:</div><div style="font-size:12.8000001907349px"><param name = "nobal_amt" value = "0" /></div><div style="font-size:12.8000001907349px"><param name = "nobal_action" value = "hangup XML default" /></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I have created in the dialplan extencion the following:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><extension name = "hangup"></div><div style="font-size:12.8000001907349px"> <condition field = "destination_number" expression = "^ (hangup) $"></div><div style="font-size:12.8000001907349px"> <action application = "playback" data = "voicemail / vm-continue.wav" /></div><div style="font-size:12.8000001907349px"> <action application = "hangup" /></div><div style="font-size:12.8000001907349px"> </ condition></div><div style="font-size:12.8000001907349px"></ extension></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">but does not work in my error log I find the following:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Dialplan: sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Regex (PASS) [mierda] destination_number(mierda) =~ /^(mierda)$/ break=on-false</div><div style="font-size:12.8000001907349px">Dialplan: sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Action playback(voicemail/vm-continue.wav) </div><div style="font-size:12.8000001907349px">Dialplan: sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Action hangup() </div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State Change CS_ROUTING -> CS_EXECUTE</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[BREAK]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:474 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State ROUTING going to sleep</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Running State Change CS_EXECUTE</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_channel.c:2169 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Callstate Change RINGING -> EARLY</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State EXECUTE</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_sofia.c:243 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> SOFIA EXECUTE</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [INFO] switch_core_session.c:1511 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> setting session heartbeat to 60 second(s).</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:209 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Standard EXECUTE</div><div style="font-size:12.8000001907349px">EXECUTE sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> set(open=true)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_dptools.c:1402 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> SET [open]=[true]</div><div style="font-size:12.8000001907349px">EXECUTE sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> playback(voicemail/vm-continue.wav)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_ivr_play_say.c:1305 Codec Activated L16@8000hz 1 channels 20ms</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:643 Received request via SESSION_HEARTBEAT!</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:486 Attempting to bill at $1 per minute to account 1</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:498 Not billing 1 - call is not in answered state</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:418 Doing lookup query</div><div style="font-size:12.8000001907349px">[SELECT cash AS nibble_balance FROM accounts WHERE id='1']</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:426 Retrieved current balance for account 1 (balance = 0.000000)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:502 Comparing 0.000000 to hangup balance of 0.000000</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:505 Balance of 0.000000 fell below allowed amount of 0.000000! (Account 1)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_ivr.c:1834 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State Change CS_EXECUTE -> CS_ROUTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[BREAK]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [DEBUG] switch_core_session.c:871 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[BREAK]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.365165 [NOTICE] switch_ivr.c:1841 Transfer sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> to XML[mierda@default]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_ivr_play_say.c:1708 done playing file /usr/local/freeswitch/sounds/en/us/callie/voicemail/vm-continue.wav</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:481 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State EXECUTE going to sleep</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Running State Change CS_ROUTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_channel.c:2165 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Callstate Change EARLY -> RINGING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:474 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State ROUTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:150 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> SOFIA ROUTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:486 Attempting to bill at $1 per minute to account 1</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:498 Not billing 1 - call is not in answered state</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query</div><div style="font-size:12.8000001907349px">[SELECT cash AS nibble_balance FROM accounts WHERE id='1']</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current balance for account 1 (balance = 0.000000)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:502 Comparing 0.000000 to hangup balance of 0.000000</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:505 Balance of 0.000000 fell below allowed amount of 0.000000! (Account 1)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [NOTICE] switch_ivr.c:1736 Hangup sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> [CS_ROUTING] [EXCHANGE_ROUTING_ERROR]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_channel.c:3189 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> [KILL]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[BREAK]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query</div><div style="font-size:12.8000001907349px">[SELECT cash AS nibble_balance FROM accounts WHERE id='1']</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current balance for account 1 (balance = 0.000000)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:474 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State ROUTING going to sleep</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Running State Change CS_HANGUP</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:681 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Callstate Change RINGING -> HANGUP</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:683 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State HANGUP</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:506 Channel sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> hanging up, cause: EXCHANGE_ROUTING_ERROR</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:640 Responding to INVITE with: 483</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:486 Attempting to bill at $1 per minute to account 1</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:498 Not billing 1 - call is not in answered state</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query</div><div style="font-size:12.8000001907349px">[SELECT cash AS nibble_balance FROM accounts WHERE id='1']</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current balance for account 1 (balance = 0.000000)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:502 Comparing 0.000000 to hangup balance of 0.000000</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:505 Balance of 0.000000 fell below allowed amount of 0.000000! (Account 1)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query</div><div style="font-size:12.8000001907349px">[SELECT cash AS nibble_balance FROM accounts WHERE id='1']</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current balance for account 1 (balance = 0.000000)</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:48 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Standard HANGUP, cause: EXCHANGE_ROUTING_ERROR</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:683 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State HANGUP going to sleep</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:450 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State Change CS_HANGUP -> CS_REPORTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[BREAK]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:418 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Running State Change CS_REPORTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:767 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State REPORTING</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:92 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Standard REPORTING, cause: EXCHANGE_ROUTING_ERROR</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:767 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State REPORTING going to sleep</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:444 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State Change CS_REPORTING -> CS_DESTROY</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[BREAK]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1559 Session 201 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Locked, Waiting on external entities</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [NOTICE] switch_core_session.c:1577 Session 201 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Ended</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [NOTICE] switch_core_session.c:1581 Close Channel sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>[CS_DESTROY]</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:572 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) Running State Change CS_DESTROY</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:582 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State DESTROY</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:399 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> SOFIA DESTROY</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:99 sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a> Standard DESTROY</div><div style="font-size:12.8000001907349px">2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:582 (sofia/internal/<a href="mailto:8117@1.1.1.1" target="_blank">8117@1.1.1.1</a>) State DESTROY going to sleep</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">any ideas?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The design is based on a cost for all of the following linkhttps://<a href="http://freeswitch.org/confluence/display/FREESWITCH/mod_nibblebill#mod_nibblebill-Installationandconfiguration" target="_blank">freeswitch.org/confluence/display/FREESWITCH/mod_nibblebill#mod_nibblebill-Installationandconfiguration</a></div>
</div>