[Asterisk-Dev] (no subject)
Igor C.Iovchevski
iovchevski at hitoori.com
Sat May 15 02:19:26 MST 2004
--
hi
Could someone help me with the app_prepaid.c module for asterisk?
I installed postgresql, asterisk and prepaid module.
I set up extension
I populated the tables (cards, providers....etc)
I get "prepaid-dest-unreachable" after I enter the destination number.
Please assist me with this, I dont know what I am doing wrong.
Igor Jovchevski
Macedonia
this is extract from asterisk logs:
dial 2222222222
*CLI> May 15 11:16:47 DEBUG[1200825920]: app_prepaid.c:118
prepaid_ivr_authenticate: app_prepaid: SQL Authenticate command as
follows: SELECT * FROM asterisk_authenticate('22222','22222') AS
authenticate(credit integer, tariff text, activated bool)
May 15 11:16:47 DEBUG[1200825920]: app_prepaid.c:133
prepaid_ivr_authenticate: app_prepaid: SQL Authenticate results:
credit='2000', tariff='POL', activated='t'
-- Playing 'prepaid-you-have' (language 'en')
May 15 11:16:47 NOTICE[1200825920]: sched.c:218 sched_settime: Request to
schedule in the past?!?!
-- Playing 'digits/20' (language 'en')
-- Playing 'prepaid-dollars' (language 'en')
May 15 11:16:50 DEBUG[1200825920]: app_prepaid.c:412 prepaid_acct_start:
app_prepaid: Inserting Prepaid Call record.
May 15 11:16:50 DEBUG[1200825920]: app_prepaid.c:416 prepaid_acct_start:
app_prepaid: SQL command as follows: SELECT
asterisk_acct_start('1084612595.0','OSS/dsp','22222','localhost.localdomain','2004-05-15
11:16:50')
-- Playing 'prepaid-enter-dest' (language 'en')
May 15 11:16:50 NOTICE[1200825920]: sched.c:218 sched_settime: Request to
schedule in the past?!?!
May 15 11:17:01 DEBUG[1200825920]: app_prepaid.c:253
prepaid_ivr_authorize: app_prepaid: SQL Authorize command as follows:
SELECT * FROM asterisk_authorize('POL','') AS authorize(rate integer, tech
text, prefix text, ipaddress text)
-- Playing 'prepaid-dest-unreachable' (language 'en')
dial 48172297226
*CLI> May 15 11:17:15 DEBUG[1200825920]: app_prepaid.c:253
prepaid_ivr_authorize: app_prepaid: SQL Authorize command as follows:
SELECT * FROM asterisk_authorize('POL','48172297226') AS authorize(rate
integer, tech text, prefix text, ipaddress text)
May 15 11:17:15 WARNING[1200825920]: file.c:462 ast_openstream: File
prepaid-dest-blocked does not exist in any format
May 15 11:17:15 WARNING[1200825920]: file.c:750 ast_streamfile: Unable to
open prepaid-dest-blocked (format SLINR): No such file or directory
-- Playing 'prepaid-final' (language 'en')
May 15 11:17:15 NOTICE[1200825920]: sched.c:218 sched_settime: Request to
schedule in the past?!?!
May 15 11:17:17 DEBUG[1200825920]: app_prepaid.c:484 prepaid_acct_stop:
app_prepaid: Updating Prepaid Call record.
May 15 11:17:17 DEBUG[1200825920]: app_prepaid.c:489 prepaid_acct_stop:
app_prepaid: SQL command as follows: SELECT
asterisk_acct_stop('1084612595.0','OSS/dsp','22222','48172297226','0','42','ANSWERED','2004-05-15
11:17:17')
== Spawn extension (local, 99, 1) exited non-zero on 'OSS/dsp'
More information about the asterisk-dev
mailing list