[Asterisk-Users] AreskiCC Calling Problem

Junaid Uppal junaidsuppal at gmail.com
Sat Jun 11 13:33:00 MST 2005


Hello There,

I *think* i've setuped the AreskiCC2 Calling Card system right , but
i've yet to make any calls out of it  , i added a rate card , trunk
and defined some rates , generated some users , added 10 dollars in
them , okay , now i call any number , it asks me to enter my pin , i
do , it tells me i have ten $ , right after that it says sorry you
dont have enough funds for this call and hangs up. i see this in cli

help me out please guys , thanks a lot!!

regards

~junjun

------------------------------------------
CLI LOG START
------------------------------------------
 areskicc2.php: 'agi_callerid' => '1001'
  areskicc2.php: 'agi_calleridname' => 'Junaid Uppal'
  areskicc2.php: 'agi_callingpres' => '0'
  areskicc2.php: 'agi_callingani2' => '0'
  areskicc2.php: 'agi_callington' => '0'
  areskicc2.php: 'agi_callingtns' => '0'
  areskicc2.php: 'agi_dnid' => '011905'
  areskicc2.php: 'agi_rdnis' => 'unknown'
  areskicc2.php: 'agi_context' => 'default'
  areskicc2.php: 'agi_extension' => '011905'
  areskicc2.php: 'agi_priority' => '3'
  areskicc2.php: 'agi_enhanced' => '0.0'
  areskicc2.php: 'agi_accountcode' => ''
  areskicc2.php:
  areskicc2.php: >> ANSWER
  areskicc2.php: string(48) "1001 ; SIP/1001-d6fb ; 1118521907.13 ;  ; 011905"n
  areskicc2.php: string(26) "Requesting DTMF ::> Len-10"n
  areskicc2.php: >> GET DATA prepaid-enter-pin-number 10000 10
    -- Playing 'prepaid-enter-pin-number' (language 'en')
  areskicc2.php: string(21) "RES DTMF : 5882431851"n
  areskicc2.php: string(25) "CARDNUMBER ::> 5882431851"n
  areskicc2.php: string(94) "SELECT credit, tariff, activated, inuse,
simultaccess FROM cc_card WHERE username='5882431851'"n
  areskicc2.php: array(1) {n  [0]=>n  array(5) {n    [0]=>n   
string(2) "10"n    [1]=>n    string(1) "1"n    [2]=>n    string(1)
"t"n    [3]=>n    string(1) "0"n    [4]=>n    string(1) "0"n  }n}n
  areskicc2.php: >> STREAM FILE prepaid-you-have #
  areskicc2.php: >> SAY NUMBER 10 X
    -- Playing 'digits/10' (language 'en')
  areskicc2.php: >> STREAM FILE prepaid-dollars #
  areskicc2.php: string(60) "UPDATE cc_card SET inuse=inuse+1 WHERE
username='5882431851'"n
  areskicc2.php: >> CHANNEL STATUS SIP/1001-d6fb
  areskicc2.php: result is 6
  areskicc2.php: string(20) "[CHANNEL STATUS : 6]"n
  areskicc2.php: >> STREAM FILE prepaid-no-enough-credit-stop #
  areskicc2.php: string(60) "UPDATE cc_card SET inuse=inuse-1 WHERE
username='5882431851'"n
  areskicc2.php: >> STREAM FILE prepaid-final #
    -- AGI Script areskicc2.php completed, returning 0
    -- Executing Wait("SIP/1001-d6fb", "2") in new stack
    -- Executing Hangup("SIP/1001-d6fb", "") in new stack
  == Spawn extension (default, 011905, 5) exited non-zero on 'SIP/1001-d6fb'

-------------------------
CLI LOG ENDS
------------------------

here's the /tmp/areskicc-errors.log

[11/06/2005 16:08:51]:[CallerID:1001]:[CN:5882431851]:[TRY :
callingcard_ivr_authenticate]
[11/06/2005 16:08:51]:[CallerID:1001]:[CN:5882431851]:[callingcard_acct_start_inuse]
[11/06/2005 16:08:51]:[CallerID:1001]:[CN:5882431851]:[Start: UPDATE
cc_card SET inuse=inuse+1 WHERE username='5882431851']
[11/06/2005 16:08:51]:[CallerID:1001]:[CN:5882431851]:[CHANNEL STATUS : 6]
[11/06/2005 16:08:53]:[CallerID:1001]:[CN:5882431851]:[Start: UPDATE
cc_card SET inuse=inuse-1 WHERE username='5882431851']
[11/06/2005 16:08:53]:[CallerID:1001]:[CN:5882431851]:[exit]



More information about the asterisk-users mailing list