Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 6:49 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: help with callback
PostPosted: Thu Sep 11, 2008 10:48 pm 
Offline

Joined: Thu Sep 11, 2008 10:35 pm
Posts: 6
I am using a2billing 1.3 on trixbox 2.6 but cant get callback to work

callback daemon is installed and running

i have also put following lines in extensions_a2billing.conf

[a2billing]

exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

[custom-a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

[a2billing-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|callback)
exten => _X.,n,Hangup

[a2billing-cid-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|cid-callback)
exten => _X.,n,Hangup

[a2billing-all-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|all-callback)
exten => _X.,n,Hangup

now i try to get web callback to work but failed

i tried two different manager parameter settings in a2billing.conf

with

; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = admin
manager_secret = amp111

which matched in manager.conf ,i got

== Parsing '/etc/asterisk/sip_notify.conf':Found
== Parsing '/etc/asterisk/manager.conf':Found
== Parsing '/etc/asterisk/manager_additional.conf':Found
== Parsing '/etc/asterisk/manager_custom.conf':Found
== Connect attempt from '127.0.0.1' unable to authenticate

in asterisk CLI

i also tried to create a new manager in manager_additional.conf with

[myasterisk]
secret=mycode
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system, call,log,verbose,command,agent,user
write = system, call,log,verbose,command,agent,user

and

; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = myasterisk
manager_secret = mycode

in a2billing.conf

what i get in asterisk CLI is

== Parsing '/etc/asterisk/sip_notify.conf':Found
== Parsing '/etc/asterisk/manager.conf':Found
== Parsing '/etc/asterisk/manager_additional.conf':Found
== Parsing '/etc/asterisk/manager_custom.conf':Found
== Manager 'myasterisk' logged on from 127.0.0.1
== Manager 'myasterisk' logged off from 127.0.0.1

looks like manager can log in, but still nothing happen

what i did is wrong or i missing something?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 10:52 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Have you set the AMI credentials in Admin UI -> Callback -> Show server too?
Does Show Callbacks list your queued callbacks, and if so what do the status, mr and ar field say?
What does the callback daemon's log file say?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 11:02 pm 
Offline

Joined: Thu Sep 11, 2008 10:35 pm
Posts: 6
stavros wrote:
Have you set the AMI credentials in Admin UI -> Callback -> Show server too?
Does Show Callbacks list your queued callbacks, and if so what do the status, mr and ar field say?
What does the callback daemon's log file say?


i checked show callbacks just now, with status error and Mr filed is error-permission-denied

i have no idea what permission has been denied


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 11:06 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
stavros wrote:
Have you set the AMI credentials in Admin UI -> Callback -> Show server too?
:sleep:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 11:11 pm 
Offline

Joined: Thu Sep 11, 2008 10:35 pm
Posts: 6
i found solution by google MR error permission denied in another post

http://forum.asterisk2billing.org/viewtopic.php?p=9879

and u fixed the same problem for another guy
was those spaces made my problem


thanks a lot stavros!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 11:16 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Ah, the spaces strike again. :roll:
I'm glad you searched; I was running out of things to suggest.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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