code before declaration (FSBUILD-172)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13755 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2ff2a18b61
commit
9ea470710d
|
@ -386,6 +386,7 @@ static switch_status_t do_billing(switch_core_session_t *session)
|
||||||
switch_time_exp_t tm;
|
switch_time_exp_t tm;
|
||||||
const char *billrate;
|
const char *billrate;
|
||||||
const char *billaccount;
|
const char *billaccount;
|
||||||
|
float balance;
|
||||||
|
|
||||||
if (!session) {
|
if (!session) {
|
||||||
/* Why are we here? */
|
/* Why are we here? */
|
||||||
|
@ -421,8 +422,6 @@ static switch_status_t do_billing(switch_core_session_t *session)
|
||||||
if (profile->times->answered < 1) {
|
if (profile->times->answered < 1) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Not billing %s - call is not in answered state\n", billaccount);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Not billing %s - call is not in answered state\n", billaccount);
|
||||||
|
|
||||||
float balance;
|
|
||||||
|
|
||||||
/* See if this person has enough money left to continue the call */
|
/* See if this person has enough money left to continue the call */
|
||||||
balance = get_balance(billaccount);
|
balance = get_balance(billaccount);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Comparing %f to hangup balance of %f\n", balance, globals.nobal_amt);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Comparing %f to hangup balance of %f\n", balance, globals.nobal_amt);
|
||||||
|
@ -500,8 +499,6 @@ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Comparing %f to hangup
|
||||||
if (channel && switch_channel_get_state(channel) != CS_HANGUP) {
|
if (channel && switch_channel_get_state(channel) != CS_HANGUP) {
|
||||||
switch_channel_set_private(channel, "_nibble_data_", nibble_data);
|
switch_channel_set_private(channel, "_nibble_data_", nibble_data);
|
||||||
|
|
||||||
float balance;
|
|
||||||
|
|
||||||
/* See if this person has enough money left to continue the call */
|
/* See if this person has enough money left to continue the call */
|
||||||
balance = get_balance(billaccount);
|
balance = get_balance(billaccount);
|
||||||
if (balance <= globals.nobal_amt) {
|
if (balance <= globals.nobal_amt) {
|
||||||
|
|
Loading…
Reference in New Issue