Hi,
When I try to dial system says “Please enter your pin number” then "please enter the phone num.. #" and hangup
——————————- With USE_DNID set to NO ——————————- [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: [restriction] => 0 [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: [29] => 1 [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: [countryprefix] => 1 [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: ) [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: ) [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2873 – uniqueid:1295312384.22 – [SET CHANNEL(language) es] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:747 – uniqueid:1295312384.22 – [CARD STATUS UPDATE] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:756 – uniqueid:1295312384.22 – [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='9500975365'] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:a2billing.php – line:178 – uniqueid:1295312384.22 – [TRY : callingcard_ivr_authenticate] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2264 – uniqueid:1295312384.22 – [AUTO SetCallerID] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2270 – uniqueid:1295312384.22 – [REQUESTED SetCallerID : 500] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2282 – uniqueid:1295312384.22 – [EXEC SetCallerID : 500] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:a2billing.php – line:193 – uniqueid:1295312384.22 – [CHANNEL STATUS : 6 = Line is up] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: [CREDIT : 50][CREDIT MIN_CREDIT_2CALL : 0] [Jan 17 21:00:08] VERBOSE[20592] res_agi.c: a2billing.php,1: file:a2billing.php – line:396 – uniqueid:1295312384.22 – TARIFF ID -> 1 [Jan 17 21:00:08] VERBOSE[20592] file.c: — Playing ‘prepaid-enter-dest.gsm’ (language ‘es’) [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:a2billing.php – line:537 – uniqueid:1295312384.22 – RES sip_iax_pstndirect_call DTMF : 17873155050 [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:a2billing.php – line:555 – uniqueid:1295312384.22 – TRUNK – dnid : 17873155050 (1) [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:a2billing.php – line:566 – uniqueid:1295312384.22 – CALL SIP_IAX_BUDDY [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:3421 – uniqueid:1295312384.22 – [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '17873155050' WHERE username='9500975365']:[result: 1] [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:1083 – uniqueid:1295312384.22 – SIP o IAX DESTINATION : 17873155050 [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:1089 – uniqueid:1295312384.22 - [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:1100 – uniqueid:1295312384.22 – RESULT : [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:747 – uniqueid:1295312384.22 – [CARD STATUS UPDATE] [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:756 – uniqueid:1295312384.22 – [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='9500975365'] [Jan 17 21:00:18] VERBOSE[20592] res_agi.c: — AGI Script a2billing.php completed, returning -1 [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [h@macro-dialout-trunk:1] Macro(“SIP/500-0000000a”, “hangupcall,”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:1] GotoIf(“SIP/500-0000000a”, “1?skiprg”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Goto (macro-hangupcall,s,4) [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:4] GotoIf(“SIP/500-0000000a”, “1?skipblkvm”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Goto (macro-hangupcall,s,7) [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:7] GotoIf(“SIP/500-0000000a”, “1?theend”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Goto (macro-hangupcall,s,9) [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:9] Hangup(“SIP/500-0000000a”, “”) in new stack [Jan 17 21:00:18] VERBOSE[20591] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/500-0000000a’ in macro ‘hangupcall’ [Jan 17 21:00:18] VERBOSE[20591] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/500-0000000a’ [Jan 17 21:00:18] VERBOSE[20591] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on ‘SIP/500-0000000a’ in macro ‘dialout-trunk’ [Jan 17 21:00:18] VERBOSE[20591] pbx.c: == Spawn extension (from-internal, 17873155050, 6) exited non-zero on ‘SIP/500-0000000a’ [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [h@from-internal:1] Macro(“SIP/500-0000000a”, “hangupcall”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:1] GotoIf(“SIP/500-0000000a”, “1?skiprg”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Goto (macro-hangupcall,s,4) [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:4] GotoIf(“SIP/500-0000000a”, “1?skipblkvm”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Goto (macro-hangupcall,s,7) [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:7] GotoIf(“SIP/500-0000000a”, “1?theend”) in new stack [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Goto (macro-hangupcall,s,9) [Jan 17 21:00:18] VERBOSE[20591] pbx.c: — Executing [s@macro-hangupcall:9] Hangup(“SIP/500-0000000a”, “”) in new stack [Jan 17 21:00:18] VERBOSE[20591] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/500-0000000a’ in macro ‘hangupcall’ [Jan 17 21:00:18] VERBOSE[20591] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/500-0000000a’
——————————- USE_DNID set to YES ——————————- [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [voicemail_activated] => 0 [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [28] => 0 [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [restriction] => 0 [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [29] => 1 [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [countryprefix] => 1 [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: ) [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: ) [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2873 – uniqueid:1295312840.25 – [SET CHANNEL(language) es] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:747 – uniqueid:1295312840.25 – [CARD STATUS UPDATE] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:756 – uniqueid:1295312840.25 – [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='9500975365'] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:a2billing.php – line:178 – uniqueid:1295312840.25 – [TRY : callingcard_ivr_authenticate] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2264 – uniqueid:1295312840.25 – [AUTO SetCallerID] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2270 – uniqueid:1295312840.25 – [REQUESTED SetCallerID : 500] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:2282 – uniqueid:1295312840.25 – [EXEC SetCallerID : 500] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:a2billing.php – line:193 – uniqueid:1295312840.25 – [CHANNEL STATUS : 6 = Line is up] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: [CREDIT : 50][CREDIT MIN_CREDIT_2CALL : 0] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:a2billing.php – line:396 – uniqueid:1295312840.25 – TARIFF ID -> 1 [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:a2billing.php – line:555 – uniqueid:1295312840.25 – TRUNK – dnid : unknown (1) [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:a2billing.php – line:566 – uniqueid:1295312840.25 – CALL SIP_IAX_BUDDY [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:3421 – uniqueid:1295312840.25 – [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = 'unknown' WHERE username='9500975365']:[result: 1] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:1083 – uniqueid:1295312840.25 – SIP o IAX DESTINATION : unknown [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:1089 – uniqueid:1295312840.25 - [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:1100 – uniqueid:1295312840.25 – RESULT : [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:747 – uniqueid:1295312840.25 – [CARD STATUS UPDATE] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: a2billing.php,1: file:Class.A2Billing.php – line:756 – uniqueid:1295312840.25 – [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='9500975365'] [Jan 17 21:07:41] VERBOSE[20729] res_agi.c: — AGI Script a2billing.php completed, returning -1 [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [h@macro-dialout-trunk:1] Macro(“SIP/500-0000000b”, “hangupcall,”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:1] GotoIf(“SIP/500-0000000b”, “1?skiprg”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Goto (macro-hangupcall,s,4) [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:4] GotoIf(“SIP/500-0000000b”, “1?skipblkvm”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Goto (macro-hangupcall,s,7) [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:7] GotoIf(“SIP/500-0000000b”, “1?theend”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Goto (macro-hangupcall,s,9) [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:9] Hangup(“SIP/500-0000000b”, “”) in new stack [Jan 17 21:07:41] VERBOSE[20728] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/500-0000000b’ in macro ‘hangupcall’ [Jan 17 21:07:41] VERBOSE[20728] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/500-0000000b’ [Jan 17 21:07:41] VERBOSE[20728] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on ‘SIP/500-0000000b’ in macro ‘dialout-trunk’ [Jan 17 21:07:41] VERBOSE[20728] pbx.c: == Spawn extension (from-internal, 17873155050, 6) exited non-zero on ‘SIP/500-0000000b’ [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [h@from-internal:1] Macro(“SIP/500-0000000b”, “hangupcall”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:1] GotoIf(“SIP/500-0000000b”, “1?skiprg”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Goto (macro-hangupcall,s,4) [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:4] GotoIf(“SIP/500-0000000b”, “1?skipblkvm”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Goto (macro-hangupcall,s,7) [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:7] GotoIf(“SIP/500-0000000b”, “1?theend”) in new stack [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Goto (macro-hangupcall,s,9) [Jan 17 21:07:41] VERBOSE[20728] pbx.c: — Executing [s@macro-hangupcall:9] Hangup(“SIP/500-0000000b”, “”) in new stack [Jan 17 21:07:41] VERBOSE[20728] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/500-0000000b’ in macro ‘hangupcall’ [Jan 17 21:07:41] VERBOSE[20728] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/500-0000000b’
Custom Dial String —————— Local/$OUTNUM$@a2billing/n —————————-
“a2billing” context you have setup in the file extensions_a2billing.conf ————————————————————————- [a2billing] exten => _X.,1,Answer exten => _X.,2,Wait(1) exten => _X.,3,AGI(a2billing.php,1) exten => _X.,4,Wait(1) exten => _X.,5,Hangup
[a2billing-callback] exten => _X.,1,AGI(a2billing.php,1,callback) exten => _X.,2,Hangup
[a2billing-cid-callback] exten => _X.,1,Wait(1) exten => _X.,2,AGI(a2billing.php,1,cid-callback) exten => _X.,3,Hangup
[a2billing-all-callback] exten => _X.,1,AGI(a2billing.php,1,all-callback,1) ;last parameter is the callback area code exten => _X.,2,Hangup
[a2billing-predictivedialer] exten => _X.,1,AGI(a2billing.php,1,predictivedialer) exten => _X.,2,Hangup
[a2billing-did] exten => _X.,1,AGI(a2billing.php,1,did) exten => _X.,2,Hangup
[a2billing-voucher] exten => _X.,1,AGI(a2billing.php,1,voucher) ;exten => _X.,1,AGI(a2billing.php,1,voucher,1) ; will add 44 in front of the callerID for the CID authentication exten => _X.,2,Hangup
[a2billing-sip] exten => _X.,1,AGI(a2billing.php,2) exten => _X.,2,Hangup —————————————- I’m using: Centos 5.5 Asterisk 1.8.1.1 FreePBX FreePBX 2.8.0.4 A2billing 1.8.1 —————————————- Thanks in advance, S. Santana
|