Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 8:12 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: a2billing.php: authentication failed; agi-test.agi
PostPosted: Mon Nov 20, 2006 1:40 pm 
Offline

Joined: Sun Nov 12, 2006 4:42 pm
Posts: 11
Hello all,
I installed asterisk 1.2 and a2billing with php5 and psql.... I try make calls over it. In web interface I can managed everything an I thing this is without problems. When I leave in var/lib/asterisk/agi-bin/a2billing.php a line #!usr/bin/php I hear nothing. If I rewrite the line to #!usr/bin/php5 I hear only AUTHENTICATION FAILED and I have gotten messages from

a2billing.php:
Code:
[20/11/2006 14:04:40]:[CallerID: 101]:[CN:martin]:[TRY : callingcard_ivr_authenticate]
[20/11/2006 14:04:40]:[CallerID: 101]:[CN:martin]:[AUTHENTICATION FAILED (cia_res:-2)]
[20/11/2006 14:04:40]:[CallerID: 101]:[CN:martin]:exit


This is my
additional_sip.conf:
Code:
[martin]
type=friend
username=martin
accountcode=martin
callerid=101
amaflags=billing
secret=martin
nat=no
dtmfmode=auto
qualify=yes
canreinvite=yes
disallow=all
allow=g729
allow=ulaw
allow=gsm
host=dynamic
context=a2billing
regseconds=0
cancallforward=yes


extensions.conf:
Code:
[a2billing]
; CallingCard application
exten=>_XXX,1,Answer()
exten=>_XXX,n,Wait,2
exten=>_XXX,n,DeadAGI(a2billing.php|agi-conf1)
exten=>_XXX,n,Wait,2
exten=>_XXX,n,Hangup()


Could you help me with this please?

I have other problem with AGI. In my directory agi-bin I have a few files. Every files are executable. But if i try them I got nothing:
asterisk:/var/lib/asterisk/agi-bin # ./agi-test.agi

this is still running and it never finish.
Could you help me with this also please?

Thank you
Martin


Top
 Profile  
 
 Post subject: same issue
PostPosted: Mon Feb 25, 2008 11:17 pm 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
hi ,

I have the same issue. My phones get registered but cant make SIP-SIP calls.

a2billing.php line.xxx AUTHENTICATION FAILED (cia-res : -1)


Top
 Profile  
 
 Post subject: Re: same issue
PostPosted: Fri Feb 29, 2008 2:08 pm 
Offline

Joined: Fri Feb 29, 2008 2:00 pm
Posts: 9
Hi All,
I have a same error!

miteshasterisk wrote:
a2billing.php line.xxx AUTHENTICATION FAILED (cia-res : -1)


My error occurs in inbound calls:

Code:
AGI Debugging Disabled
    -- Executing [vono@recebe_vono:1] Goto("SIP/murielmartin-081ed748", "a2billing|s|1") in new stack
    -- Goto (a2billing,s,1)
    -- Executing [s@a2billing:1] Wait("SIP/murielmartin-081ed748", "1") in new stack
    -- Executing [s@a2billing:2] Answer("SIP/murielmartin-081ed748", "") in new stack
    -- Executing [s@a2billing:3] DeadAGI("SIP/murielmartin-081ed748", "a2billing.php|2") in new stack
[Feb 29 11:04:40] WARNING[2698]: res_agi.c:2116 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
  a2billing.php|2: A2Billing AGI internal configuration:
  a2billing.php|2: Array
  a2billing.php|2: (
  a2billing.php|2:     [debug] => 1
  a2billing.php|2:     [asterisk_version] => 1_4
  a2billing.php|2:     [answer_call] => 1
  a2billing.php|2:     [play_audio] => 1
  a2billing.php|2:     [say_goodbye] =>
  a2billing.php|2:     [play_menulanguage] => 1
  a2billing.php|2:     [force_language] => BR
  a2billing.php|2:     [intro_prompt] =>
  a2billing.php|2:     [min_credit_2call] => 0
  a2billing.php|2:     [min_duration_2bill] => 0
  a2billing.php|2:     [notenoughcredit_cardnumber] => 1
  a2billing.php|2:     [notenoughcredit_assign_newcardnumber_cid] => 1
  a2billing.php|2:     [use_dnid] => 1
  a2billing.php|2:     [no_auth_dnid] => Array
  a2billing.php|2:         (
  a2billing.php|2:             [0] => 2400
  a2billing.php|2:             [1] => 2300
  a2billing.php|2:         )
  a2billing.php|2:
  a2billing.php|2:     [number_try] => 3
  a2billing.php|2:     [force_callplan_id] =>
  a2billing.php|2:     [say_balance_after_auth] =>
  a2billing.php|2:     [say_balance_after_call] =>
  a2billing.php|2:     [say_rateinitial] =>
  a2billing.php|2:     [say_timetocall] =>
  a2billing.php|2:     [auto_setcallerid] =>
  a2billing.php|2:     [force_callerid] =>
  a2billing.php|2:     [cid_sanitize] =>
  a2billing.php|2:     [cid_enable] =>
  a2billing.php|2:     [cid_askpincode_ifnot_callerid] =>
  a2billing.php|2:     [cid_auto_assign_card_to_cid] =>
  a2billing.php|2:     [cid_auto_create_card] =>
  a2billing.php|2:     [cid_auto_create_card_len] => 10
  a2billing.php|2:     [cid_auto_create_card_typepaid] => POSTPAY
  a2billing.php|2:     [cid_auto_create_card_credit] => 0
  a2billing.php|2:     [cid_auto_create_card_credit_limit] => 1000
  a2billing.php|2:     [cid_auto_create_card_tariffgroup] => 6
  a2billing.php|2:     [callerid_authentication_over_cardnumber] =>
  a2billing.php|2:     [sip_iax_friends] => 1
  a2billing.php|2:     [sip_iax_pstn_direct_call_prefix] =>
  a2billing.php|2:     [sip_iax_pstn_direct_call] =>
  a2billing.php|2:     [ivr_voucher] => 1
  a2billing.php|2:     [ivr_voucher_prefix] => 8
  a2billing.php|2:     [jump_voucher_if_min_credit] =>
  a2billing.php|2:     [extracharge_did] => Array
  a2billing.php|2:         (
  a2billing.php|2:             [0] =>
  a2billing.php|2:         )
  a2billing.php|2:
  a2billing.php|2:     [extracharge_fee] => Array
  a2billing.php|2:         (
  a2billing.php|2:             [0] =>
  a2billing.php|2:         )
  a2billing.php|2:
  a2billing.php|2:     [international_prefixes] => Array
  a2billing.php|2:         (
  a2billing.php|2:             [0] => 011
  a2billing.php|2:             [1] => 00
  a2billing.php|2:             [2] => 09
  a2billing.php|2:         )
  a2billing.php|2:
  a2billing.php|2:     [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
  a2billing.php|2:     [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
  a2billing.php|2:     [switchdialcommand] =>
  a2billing.php|2:     [failover_recursive_limit] => 2
  a2billing.php|2:     [maxtime_tocall_negatif_free_route] => 5400
  a2billing.php|2:     [send_reminder] =>
  a2billing.php|2:     [record_call] =>
  a2billing.php|2:     [monitor_formatfile] => gsm
  a2billing.php|2:     [agi_force_currency] => brl
  a2billing.php|2:     [logger_enable] => 1
  a2billing.php|2:     [log_file] => /tmp/a2billing.log
  a2billing.php|2:     [currency_association] => Array
  a2billing.php|2:         (
  a2billing.php|2:             [0] => all:credit
  a2billing.php|2:         )
  a2billing.php|2:
  a2billing.php|2:     [currency_association_internal] => Array
  a2billing.php|2:         (
  a2billing.php|2:             [all] => credit
  a2billing.php|2:         )
  a2billing.php|2:
  a2billing.php|2:     [file_conf_enter_destination] => prepaid-enter-number-u-calling-1-or-011
  a2billing.php|2:     [file_conf_enter_menulang] => prepaid-menulang
  a2billing.php|2:     [ivr_voucher_prefixe] => 8
  a2billing.php|2: )
  a2billing.php|2:
  a2billing.php|2: file:a2billing.php - line:76 - IDCONFIG : 2
  a2billing.php|2: file:a2billing.php - line:77 - MODE : standard
  a2billing.php|2: file:a2billing.php - line:89 - AGI Request:
  a2billing.php|2: file:a2billing.php - line:90 - Array
  a2billing.php|2: (
  a2billing.php|2:     [agi_request] => a2billing.php
  a2billing.php|2:     [agi_channel] => SIP/murielmartin-081ed748
  a2billing.php|2:     [agi_language] => en
  a2billing.php|2:     [agi_type] => SIP
  a2billing.php|2:     [agi_uniqueid] => 1204293879.23
  a2billing.php|2:     [agi_callerid] => autoservico
  a2billing.php|2:     [agi_calleridname] => autoservico
  a2billing.php|2:     [agi_callingpres] => 0
  a2billing.php|2:     [agi_callingani2] => 0
  a2billing.php|2:     [agi_callington] => 0
  a2billing.php|2:     [agi_callingtns] => 0
  a2billing.php|2:     [agi_dnid] => vono
  a2billing.php|2:     [agi_rdnis] => unknown
  a2billing.php|2:     [agi_context] => a2billing
  a2billing.php|2:     [agi_extension] => s
  a2billing.php|2:     [agi_priority] => 3
  a2billing.php|2:     [agi_enhanced] => 0.0
  a2billing.php|2:     [agi_accountcode] =>
  a2billing.php|2: )
  a2billing.php|2:
  a2billing.php|2: file:Class.A2Billing.php - line:616 -  get_agi_request_parameter = autoservico ; SIP/murielmartin-081ed748 ; 1204293879.23 ;  ; s
  a2billing.php|2: file:a2billing.php - line:139 - [ANSWER CALL]
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
    -- <SIP/murielmartin-081ed748> Playing 'prepaid-menulang' (language 'en')
  a2billing.php|2: file:Class.A2Billing.php - line:555 - RES Menu Language DTMF : -1
  a2billing.php|2: file:Class.A2Billing.php - line:581 - [SET CHANNEL(language) br]
  a2billing.php|2: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 4
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
    -- <SIP/murielmartin-081ed748> Playing 'prepaid-enter-pin-number' (language 'br')
  a2billing.php|2: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
  a2billing.php|2: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
  a2billing.php|2: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
    -- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
  a2billing.php|2: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
  a2billing.php|2: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 4
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
    -- <SIP/murielmartin-081ed748> Playing 'prepaid-enter-pin-number' (language 'br')
  a2billing.php|2: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
  a2billing.php|2: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
  a2billing.php|2: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
    -- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
  a2billing.php|2: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
  a2billing.php|2: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 4
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
    -- <SIP/murielmartin-081ed748> Playing 'prepaid-enter-pin-number' (language 'br')
  a2billing.php|2: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
  a2billing.php|2: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
  a2billing.php|2: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
  a2billing.php|2: file:a2billing.php - line:317 - [AUTHENTICATION FAILED (cia_res:-1)]
    -- AGI Script a2billing.php completed, returning -1


Someone help please!

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 1:16 am 
Offline

Joined: Tue Apr 22, 2008 11:09 pm
Posts: 16
Hey guys may be a bit late of a post - but i had similar error and my problem was the card was restricted to INDIVIDUAL access, i changed it to SIMULTANEOUS and it seems to have resolved it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2009 1:54 am 
Offline

Joined: Thu Oct 23, 2008 8:49 am
Posts: 19
i have same problem :(

file:a2billing.php - line:319 - [AUTHENTICATION FAILED (cia_res:-1)]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2009 8:21 pm 
Offline

Joined: Mon Sep 01, 2008 3:22 pm
Posts: 21
Location: Dominican Republic
As the error of Mattozao:


Quote:
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
a2billing.php|2: file:Class.A2Billing.php - line:1761 - PREPAID-INVALID-DIGITS
a2billing.php|2: file:Class.A2Billing.php - line:1769 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 4
[Feb 29 11:04:40] WARNING[2698]: file.c:644 ast_readaudio_callback: Failed to write frame
-- <SIP/murielmartin-081ed748> Playing 'prepaid-enter-pin-number' (language 'br')
a2billing.php|2: file:Class.A2Billing.php - line:1771 - RES DTMF : -1
a2billing.php|2: file:Class.A2Billing.php - line:1775 - CARDNUMBER ::> -1
a2billing.php|2: file:Class.A2Billing.php - line:1785 - PREPAID-INVALID-DIGITS
a2billing.php|2: file:a2billing.php - line:317 - [AUTHENTICATION FAILED (cia_res:-1)]


The problem is that the system is waiting for card number, and this number is not specified by the user.


Top
 Profile  
 
 Post subject: Re: a2billing.php: authentication failed; agi-test.agi
PostPosted: Mon Apr 11, 2011 12:15 pm 
Offline

Joined: Sun Nov 07, 2010 10:00 pm
Posts: 253
Same issue here in asterisk 1.8.3& a2b 1.9.
I turn the SIMULTANEOUS ACCESS to individual// simultaneous, no way, the same...
I turn off cid_askpincode_ifnot_callerid, the same...
I create PIN for customer, when pin is introduced, I get wrong pin, and re-introduce pin... in CLI I see the following:
Quote:
[Apr 11 12:07:52] -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Apr 11 12:07:52] a2billing.php: file:a2billing.php - line:106 - uniqueid: - IDCONFIG : 1
[Apr 11 12:07:52] a2billing.php: file:a2billing.php - line:107 - uniqueid: - MODE : standard
[Apr 11 12:07:52] a2billing.php: file:Class.A2Billing.php - line:718 - uniqueid:a2billing-1302523669.9 - get_agi_request_parameter = 7912677424 ; SIP/xxxxxxxxxxx-00000009 ; a2billing-1302523669.9 ; 7912677424 ; 34693775992
[Apr 11 12:07:52] a2billing.php: file:a2billing.php - line:162 - uniqueid:a2billing-1302523669.9 - [ANSWER CALL]
[Apr 11 12:07:52] -- <SIP/xxxxxxxx-00000009> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
[Apr 11 12:08:02] -- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Apr 11 12:08:03] -- <SIP/xxxxxxxxx-00000009> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
[Apr 11 12:08:14] -- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Apr 11 12:08:15] -- <SIP/xxxxxxxx-00000009> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
[Apr 11 12:08:16] a2billing.php: file:a2billing.php - line:620 - uniqueid:a2billing-1302523669.9 - [AUTHENTICATION FAILED (cia_res:-1)]
[Apr 11 12:08:16] -- Playing 'prepaid-final' (escape_digits=#) (sample_offset 0)
[Apr 11 12:08:16] WARNING[524]: file.c:747 ast_readaudio_callback: Failed to write frame
[Apr 11 12:08:16] -- <SIP/xxxxxxx-00000009>AGI Script a2billing.php completed, returning -1


Any idea more please??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group