Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 3:32 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Problems connecting a2billing to asterisk
PostPosted: Fri Apr 25, 2008 11:24 am 
Offline

Joined: Fri Apr 25, 2008 11:18 am
Posts: 12
Hi!!

I'm totally new in this world interesting world :D maybe you could help me. I have my web applications working perfectly but I make calls and nothing apears in call CDR report of a2billing. I make my extensions.conf in this way:

[internal]
include => parkedcalls
exten => 103,1,Playback(/var/lib/asterisk/sounds/bye)
exten => 103,2,DeadAGI,a2billing.php
exten => 103,3,Hangup

And when I call to 103 extension, a2billing.php is called, but I check the a2billing.log and I don't understand anything :(

[24/04/2008 18:11:40]:[file:a2billing.php - line:76]:[CallerID:]:[CN:]:[IDCONFIG : 1]
[24/04/2008 18:11:40]:[file:a2billing.php - line:77]:[CallerID:]:[CN:]:[MODE : standard]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:616]:[CallerID:104]:[CN:]:[ get_agi_request_parameter = 104 ; SIP/104-0078d6f0 ; asterisk-3300-1209053497.0 ; ; 103]
[24/04/2008 18:11:40]:[file:a2billing.php - line:139]:[CallerID:104]:[CN:]:[[ANSWER CALL]]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1625]:[CallerID:104]:[CN:]:[ - Account code - ]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1769]:[CallerID:104]:[CN:]:[Requesting DTMF, CARDNUMBER_LENGTH_MAX 15]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1771]:[CallerID:104]:[CN:]:[RES DTMF : -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1775]:[CallerID:104]:[CN:-1]:[CARDNUMBER ::> -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1785]:[CallerID:104]:[CN:-1]:[PREPAID-INVALID-DIGITS]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1761]:[CallerID:104]:[CN:-1]:[PREPAID-INVALID-DIGITS]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1769]:[CallerID:104]:[CN:-1]:[Requesting DTMF, CARDNUMBER_LENGTH_MAX 15]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1771]:[CallerID:104]:[CN:-1]:[RES DTMF : -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1775]:[CallerID:104]:[CN:-1]:[CARDNUMBER ::> -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1785]:[CallerID:104]:[CN:-1]:[PREPAID-INVALID-DIGITS]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1761]:[CallerID:104]:[CN:-1]:[PREPAID-INVALID-DIGITS]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1769]:[CallerID:104]:[CN:-1]:[Requesting DTMF, CARDNUMBER_LENGTH_MAX 15]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1771]:[CallerID:104]:[CN:-1]:[RES DTMF : -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1775]:[CallerID:104]:[CN:-1]:[CARDNUMBER ::> -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1785]:[CallerID:104]:[CN:-1]:[PREPAID-INVALID-DIGITS]
[24/04/2008 18:11:40]:[file:a2billing.php - line:156]:[CallerID:104]:[CN:-1]:[[TRY : callingcard_ivr_authenticate]]
[24/04/2008 18:11:40]:[file:a2billing.php - line:317]:[CallerID:104]:[CN:-1]:[[AUTHENTICATION FAILED (cia_res:-1)]]
[24/04/2008 18:11:40]:[CallerID:104]:[CN:-1]:[[exit]]

Could you help me?


Thaaaaaaaaaaaaaank you very much,

Cristina


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 12:54 pm 
Offline

Joined: Thu Oct 19, 2006 9:56 am
Posts: 300
Location: Athens, Greece
:spam:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 1:06 pm 
Offline

Joined: Fri Apr 25, 2008 11:18 am
Posts: 12
Why do you tell that I'm SPAM?? I don't understand? sorry If the question is not good, or I don't have a good english, but I am not spam, my question is honest, like me, please, if you think that my question is not good for the forum (it is about a2billing, no?), tell me why....

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 3:06 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Hello Cristina,

Depending on your system, I think that you should put your a2billing extensions in extensions.conf or extensions_a2billing.conf or extensions_custom.conf

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 3:56 pm 
Offline

Joined: Fri Apr 25, 2008 11:18 am
Posts: 12
Hi asiby!

Thanks for your reply, but my english is not good and I want to go slowly to be sure that I understood well:

Why do you mean with "put your a2billing extensions in extensions.conf? I did this: in my extensions.conf, I did one extensions, that when you call, play a sound, and then, go to the a2billing system, only to check if the systems is working. I put you here my extensions.conf:

[general]
static=yes
writeprotect=no
priorityjumping=no
autofallthrough=yes
clearglobalvars=no

[globals]
REGISTRO=1
DIALSTART=10
EPOCH=30

; Grabar una conversacion
[internal]
include => parkedcalls
exten => 103,1,Playback(/var/lib/asterisk/sounds/bye)
exten => 103,2,DeadAGI,a2billing.php
exten => 103,3,Hangup

[a2billing]
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

I create a2billing context because it was in this way in the a2billing tutorial, but I really don't call there, I call to 103 extension.

Thank you very much for your atention and sorry for my english,

Cristina


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 5:15 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Well, you are not doing it the right way. Before mixing a2billing with other software, make sure that it works first.

You are calling a2billing from the following context

Code:
[internal]
include => parkedcalls
exten => 103,1,Playback(/var/lib/asterisk/sounds/bye)
exten => 103,2,DeadAGI,a2billing.php
exten => 103,3,Hangup


And you are trying to say Bye to the caller at the beginning of the call. Something is obviously wrong here. And you are not using the Playback function the right way.

Here is my suggestion. No matter what your final goals are, for the moment, follow the a2billing installation instructions by the book. If it work, only then, you may try more fancy stuff.

Put the following in extensions.conf and send the call to one of these extensions (depending on what you would like to test first)

Code:
[a2billing]
exten => _X.,1,Answer
exten => _X.,n,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

;Used by web-callback and all callback only
[a2billing-callback]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|callback|1) ;last parameter is the callback area code
exten => _X.,n,Hangup

[a2billing-cid-callback]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|cid-callback|1) ;last parameter is the callback area code
exten => _X.,n,Hangup

[a2billing-all-callback]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|all-callback|1) ;last parameter is the callback area code
exten => _X.,n,Hangup

[a2billing-predictivedialer]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|predictivedialer)
exten => _X.,n,Hangup

[a2billing-did]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|did)
exten => _X.,n,Hangup

[a2billing-voucher]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|voucher)
exten => _X.,n,Hangup


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 5:26 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
invoxTelecom wrote:
Why do you tell that I'm SPAM??
I think the problem was for some reason we had two identical threads from you. I've deleted the other thread now, as it hadn't received any responses.
Quote:
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1769]:[CallerID:104]:[CN:]:[Requesting DTMF, CARDNUMBER_LENGTH_MAX 15]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1771]:[CallerID:104]:[CN:]:[RES DTMF : -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1775]:[CallerID:104]:[CN:-1]:[CARDNUMBER ::> -1]
[24/04/2008 18:11:40]:[file:Class.A2Billing.php - line:1785]:[CallerID:104]:[CN:-1]:[PREPAID-INVALID-DIGITS]
This shows that A2B is asking you to enter a card number, but is receiving no DTMF digits in response. I'm guessing you didn't install the Asterisk prompts that come with A2B. If you search this forum for 'PREPAID-INVALID-DIGITS' I'm sure you'll turn up other threads where your problem was solved.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 28, 2008 10:43 am 
Offline

Joined: Fri Apr 25, 2008 11:18 am
Posts: 12
Hi,

I installed the sounds....but maybe not in the correct directory. Could you help me? I put them in some places....because I saw in differents forums differents places, where is the correct place?

/usr/src/addons/sounds/en/prepaid-invalid-digits.gsm

/etc/addons/sounds/en/prepaid-invalid-digits.gsm

/var/lib/asterisk/mohmp3/acc_7/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_1/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_10/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_6/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_8/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_9/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_5/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_3/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_2/prepaid-invalid-digits.gsm
/var/lib/asterisk/mohmp3/acc_4/prepaid-invalid-digits.gsm

/var/lib/asterisk/sounds/prepaid-invalid-digits.gsm
/var/lib/asterisk/sounds/en/prepaid-invalid-digits.gsm

/var/www/html/addons/sounds/en/prepaid-invalid-digits.gsm

Thank you very much,

Cristina

Added after 2 hours 45 minutes:

Hi!!

I write to tell you that I found the solution, I have search where could be the sounds, and I found it....now....the next step!!

Thank you!!

Cristina


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 26 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group