Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 20, 2024 3:28 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: callback daemon
PostPosted: Wed May 30, 2007 8:24 am 
Offline

Joined: Mon Aug 21, 2006 11:03 pm
Posts: 34
Location: Livorno - Italy
I launch the a2billing-callback-daemon, i place a webcallback, but i receive this from the log:

## ERROR Cannot connect to the asterisk manager!

Please check the manager configuration...

It's strange...manager.conf and a2billing.conf is set correctly also because i commented out this:

#### TEST MANAGER PARAMETER my $astman = new Asterisk::Manager;

$astman->user($manager_username); $astman->secret($manager_secret); $astman->host($manager_host); $status = $astman->connect; my @res_manager = $astman->sendcommand( Action => 'Command', Command => 'show channels'); print @res_manager; exit(0);

and all work correctly.

I use asterisk 1.4.4

Where can be the problem? this is manager.conf:

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

and this the a2billing-callback-daemon:

####### ASTERISK MANAGER ######
my $manager_host = "localhost";
my $manager_username = "myasterisk";
my $manager_secret = "mycode";

Regards, Alessandro Marzini
DIGILAB/YOUPHONE
Add/Change #10 (callbackdaemon error)


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 5:04 pm 
Offline

Joined: Sun Jan 14, 2007 10:31 pm
Posts: 12
cool , ur offering support but u dont know how to handle a simple problem :)


Ur the Man :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 5:19 pm 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
http://forum.asterisk2billing.org/viewt ... =6917#6917


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 8:45 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
bug on callback daemon due to config:inifiles

patch below,

Index: a2billing.conf
===================================================================
--- a2billing.conf (revision 3)
+++ a2billing.conf (working copy)
@@ -640,7 +640,7 @@
; 30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer.
; H: Allow the caller to hang up by dialing *
; r: Generate a ringing tone for the calling party
-: R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
+; R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
; m: Provide Music on Hold to the calling party until the called channel answers.
; L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms)
; %timeout% tag is replaced by the calculated timeout according the credit & destination rate!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 1:38 am 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
THANKS!!! :)


Top
 Profile  
 
 Post subject: i got the same error
PostPosted: Tue Jun 19, 2007 7:54 pm 
Offline

Joined: Mon Apr 09, 2007 7:11 pm
Posts: 11
[quote="areski"]bug on callback daemon due to config:inifiles

patch below,

Index: a2billing.conf
===================================================================
--- a2billing.conf (revision 3)
+++ a2billing.conf (working copy)
@@ -640,7 +640,7 @@
; 30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer.
; H: Allow the caller to hang up by dialing *
; r: Generate a ringing tone for the calling party
-: R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
+; R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
; m: Provide Music on Hold to the calling party until the called channel answers.
; L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms)
; %timeout% tag is replaced by the calculated timeout according the credit & destination rate![/quote]

i tried to use
svn co --username guest http://svn.a2billing.net/svn/asterisk2billing/
get the latest file.

both trunk/a2billing.cfg and branches/1.3/a2billing.cfg does not work.
I keep getting error in my a2billing-daemon-callback.log

## ERROR Cannot connect to the asterisk manager!
Please check the manager configuration...

how to patch the a2billing.conf? I donot understand what's the meaning above. what i did wrong?

Thanks for your help again,

Polo


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 19, 2007 9:22 pm 
Offline

Joined: Fri Jun 01, 2007 5:12 am
Posts: 41
Quote:
## ERROR Cannot connect to the asterisk manager!

can you read it?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 19, 2007 9:45 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
In the serveur config in A2billing, if you see "Default" as server_ip, then replace it with localhost and give it another try.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 1:14 am 
Offline

Joined: Mon Apr 09, 2007 7:11 pm
Posts: 11
Thank you Asiby, i checked the a2billing.conf and a2billing-callback-daemon , both of them use localhost as the host_name. I am using Asterisk 1.4.4 too, has the patch for the bug reported been checked in yet?
i still get Manager connection error somehow. What else could be wrong?
Thanks for your time.

Polo


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 3:48 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Hi Polo,

I was talking about the option "Show Server" under "Callback" in the admin interface of A2Billing.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 8:05 am 
Offline

Joined: Mon Apr 09, 2007 7:11 pm
Posts: 11
Hi asiby,

Thank you so much! It is working now after applied the change :D

Polo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 1:40 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I am glad it helped. :lol: :D

This should be changed in A2Billing Admin's Interface cause the default value of "default" used as IP address will always prevent the connection to be made.

I will submit a ticket in the trac.


Top
 Profile  
 
 Post subject: this no works in centos5
PostPosted: Sat Mar 29, 2008 1:30 am 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
this no work in my centos 5
I get
chan_sip.c:15075 handle_request_register: Registration from '<sip:[email protected]>' failed for '90.202.148.32' - Wrong password

but if I make reload chan_sip.so is solve the problem by now
I believe there any bugs in installation with Centos 5 and php5

regards
arturo


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


All times are UTC


Who is online

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