[Freeswitch-users] Error Mod Nibblebill.
Antony Aguirre Morales
ing.antonyam at gmail.com
Thu Mar 26 02:50:45 MSK 2015
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:
mod_nibblebill:
<param name = "nobal_amt" value = "0" />
<param name = "nobal_action" value = "hangup XML default" />
I have created in the dialplan extencion the following:
<extension name = "hangup">
<condition field = "destination_number" expression = "^ (hangup) $">
<action application = "playback" data = "voicemail / vm-continue.wav"
/>
<action application = "hangup" />
</ condition>
</ extension>
but does not work in my error log I find the following:
Dialplan: sofia/internal/8117 at 1.1.1.1 Regex (PASS) [mierda]
destination_number(mierda) =~ /^(mierda)$/ break=on-false
Dialplan: sofia/internal/8117 at 1.1.1.1 Action
playback(voicemail/vm-continue.wav)
Dialplan: sofia/internal/8117 at 1.1.1.1 Action hangup()
2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:167
(sofia/internal/8117 at 1.1.1.1) State Change CS_ROUTING -> CS_EXECUTE
2015-03-25 12:16:38.365165 [DEBUG] switch_core_session.c:1351 Send signal
sofia/internal/8117 at 1.1.1.1 [BREAK]
2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:474
(sofia/internal/8117 at 1.1.1.1) State ROUTING going to sleep
2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:418
(sofia/internal/8117 at 1.1.1.1) Running State Change CS_EXECUTE
2015-03-25 12:16:38.365165 [DEBUG] switch_channel.c:2169 (sofia/internal/
8117 at 1.1.1.1) Callstate Change RINGING -> EARLY
2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:481
(sofia/internal/8117 at 1.1.1.1) State EXECUTE
2015-03-25 12:16:38.365165 [DEBUG] mod_sofia.c:243 sofia/internal/
8117 at 1.1.1.1 SOFIA EXECUTE
2015-03-25 12:16:38.365165 [INFO] switch_core_session.c:1511 sofia/internal/
8117 at 1.1.1.1 setting session heartbeat to 60 second(s).
2015-03-25 12:16:38.365165 [DEBUG] switch_core_state_machine.c:209
sofia/internal/8117 at 1.1.1.1 Standard EXECUTE
EXECUTE sofia/internal/8117 at 1.1.1.1 set(open=true)
2015-03-25 12:16:38.365165 [DEBUG] mod_dptools.c:1402 sofia/internal/
8117 at 1.1.1.1 SET [open]=[true]
EXECUTE sofia/internal/8117 at 1.1.1.1 playback(voicemail/vm-continue.wav)
2015-03-25 12:16:38.365165 [DEBUG] switch_ivr_play_say.c:1305 Codec
Activated L16 at 8000hz 1 channels 20ms
2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:643 Received request
via SESSION_HEARTBEAT!
2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:486 Attempting to bill
at $1 per minute to account 1
2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:498 Not billing 1 -
call is not in answered state
2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:418 Doing lookup query
[SELECT cash AS nibble_balance FROM accounts WHERE id='1']
2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:426 Retrieved current
balance for account 1 (balance = 0.000000)
2015-03-25 12:16:38.365165 [DEBUG] mod_nibblebill.c:502 Comparing 0.000000
to hangup balance of 0.000000
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)
2015-03-25 12:16:38.365165 [DEBUG] switch_ivr.c:1834 (sofia/internal/
8117 at 1.1.1.1) State Change CS_EXECUTE -> CS_ROUTING
2015-03-25 12:16:38.365165 [DEBUG] switch_core_session.c:1351 Send signal
sofia/internal/8117 at 1.1.1.1 [BREAK]
2015-03-25 12:16:38.365165 [DEBUG] switch_core_session.c:871 Send signal
sofia/internal/8117 at 1.1.1.1 [BREAK]
2015-03-25 12:16:38.365165 [NOTICE] switch_ivr.c:1841 Transfer
sofia/internal/8117 at 1.1.1.1 to XML[mierda at default]
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
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:481
(sofia/internal/8117 at 1.1.1.1) State EXECUTE going to sleep
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:418
(sofia/internal/8117 at 1.1.1.1) Running State Change CS_ROUTING
2015-03-25 12:16:38.385162 [DEBUG] switch_channel.c:2165 (sofia/internal/
8117 at 1.1.1.1) Callstate Change EARLY -> RINGING
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:474
(sofia/internal/8117 at 1.1.1.1) State ROUTING
2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:150 sofia/internal/
8117 at 1.1.1.1 SOFIA ROUTING
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:486 Attempting to bill
at $1 per minute to account 1
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:498 Not billing 1 -
call is not in answered state
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query
[SELECT cash AS nibble_balance FROM accounts WHERE id='1']
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current
balance for account 1 (balance = 0.000000)
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:502 Comparing 0.000000
to hangup balance of 0.000000
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)
2015-03-25 12:16:38.385162 [NOTICE] switch_ivr.c:1736 Hangup sofia/internal/
8117 at 1.1.1.1 [CS_ROUTING] [EXCHANGE_ROUTING_ERROR]
2015-03-25 12:16:38.385162 [DEBUG] switch_channel.c:3189 Send signal
sofia/internal/8117 at 1.1.1.1 [KILL]
2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1351 Send signal
sofia/internal/8117 at 1.1.1.1 [BREAK]
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query
[SELECT cash AS nibble_balance FROM accounts WHERE id='1']
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current
balance for account 1 (balance = 0.000000)
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:474
(sofia/internal/8117 at 1.1.1.1) State ROUTING going to sleep
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:418
(sofia/internal/8117 at 1.1.1.1) Running State Change CS_HANGUP
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:681
(sofia/internal/8117 at 1.1.1.1) Callstate Change RINGING -> HANGUP
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:683
(sofia/internal/8117 at 1.1.1.1) State HANGUP
2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:506 Channel sofia/internal/
8117 at 1.1.1.1 hanging up, cause: EXCHANGE_ROUTING_ERROR
2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:640 Responding to INVITE
with: 483
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:486 Attempting to bill
at $1 per minute to account 1
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:498 Not billing 1 -
call is not in answered state
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query
[SELECT cash AS nibble_balance FROM accounts WHERE id='1']
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current
balance for account 1 (balance = 0.000000)
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:502 Comparing 0.000000
to hangup balance of 0.000000
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)
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:418 Doing lookup query
[SELECT cash AS nibble_balance FROM accounts WHERE id='1']
2015-03-25 12:16:38.385162 [DEBUG] mod_nibblebill.c:426 Retrieved current
balance for account 1 (balance = 0.000000)
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:48
sofia/internal/8117 at 1.1.1.1 Standard HANGUP, cause: EXCHANGE_ROUTING_ERROR
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:683
(sofia/internal/8117 at 1.1.1.1) State HANGUP going to sleep
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:450
(sofia/internal/8117 at 1.1.1.1) State Change CS_HANGUP -> CS_REPORTING
2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1351 Send signal
sofia/internal/8117 at 1.1.1.1 [BREAK]
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:418
(sofia/internal/8117 at 1.1.1.1) Running State Change CS_REPORTING
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:767
(sofia/internal/8117 at 1.1.1.1) State REPORTING
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:92
sofia/internal/8117 at 1.1.1.1 Standard REPORTING, cause:
EXCHANGE_ROUTING_ERROR
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:767
(sofia/internal/8117 at 1.1.1.1) State REPORTING going to sleep
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:444
(sofia/internal/8117 at 1.1.1.1) State Change CS_REPORTING -> CS_DESTROY
2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1351 Send signal
sofia/internal/8117 at 1.1.1.1 [BREAK]
2015-03-25 12:16:38.385162 [DEBUG] switch_core_session.c:1559 Session 201
(sofia/internal/8117 at 1.1.1.1) Locked, Waiting on external entities
2015-03-25 12:16:38.385162 [NOTICE] switch_core_session.c:1577 Session 201
(sofia/internal/8117 at 1.1.1.1) Ended
2015-03-25 12:16:38.385162 [NOTICE] switch_core_session.c:1581 Close
Channel sofia/internal/8117 at 1.1.1.1 [CS_DESTROY]
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:572
(sofia/internal/8117 at 1.1.1.1) Running State Change CS_DESTROY
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:582
(sofia/internal/8117 at 1.1.1.1) State DESTROY
2015-03-25 12:16:38.385162 [DEBUG] mod_sofia.c:399 sofia/internal/
8117 at 1.1.1.1 SOFIA DESTROY
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:99
sofia/internal/8117 at 1.1.1.1 Standard DESTROY
2015-03-25 12:16:38.385162 [DEBUG] switch_core_state_machine.c:582
(sofia/internal/8117 at 1.1.1.1) State DESTROY going to sleep
any ideas?
The design is based on a cost for all of the following linkhttps://
freeswitch.org/confluence/display/FREESWITCH/mod_nibblebill#mod_nibblebill-Installationandconfiguration
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150325/9974510c/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list