in one of the two defines configs (where you set the database up)
(sorry cant recall which one and im out of the office) there is a min
call value, its set by default around the 10 unit mark. if the cards
credit is below this it stops you going any further. I can only assume
this was to end the call quickly if there is no chance of it
completing and you user is dialing in on a 0800 or 0808 style number
where you as the operator pick up that part of the bill
That aside, if you change this value to 0 it take away that limit.
David
On 11/06/05, Junaid Uppal <junaidsuppal@gmail.com>
wrote:> 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]
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>