Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 5:32 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Manager.conf not working
PostPosted: Wed May 31, 2006 8:38 am 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
Hi there, hi friends,
I've got problem setting up my asterisk2billing platform and i strongly need help and advice:

1)- When i create SIP or IAX friend and i hit the GENERATE_ADDITIONAL_A2BILLING_SIP.CONF, I am having the reply: Could not open buddy file '/etc/asterisk/additional_a2billing_sip.conf'.
Same thing happen with AIX.

I even had to create the files additional_a2billing_sip.conf and additional_a2billing_iax.conf manually but the problem stands

2)- It is impossible to run the debug by typing asterisk -r
having the reply: are you sure /var/run/asterisk.ctl exist or something similar


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 8:51 am 
Offline

Joined: Tue May 30, 2006 11:51 pm
Posts: 15
Looks like your Asterisk is not running in the first place and/or you are having permission issues. Make sure the files have Write Access.

Cheers!


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 8:55 am 
how to i set up the write access, i mean on what files? Please help...


Top
  
 
 Post subject:
PostPosted: Wed May 31, 2006 10:16 am 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
Please help:

I am having this issue again and again:
[root@localhost ~]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
[root@localhost ~]# asterisk -rx "sip reload"
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)


this is what my /var/log/asterisk/messages says:

May 31 00:04:09 WARNING[1794] config.c: parse error: No category context for line 1 of manager.conf
May 31 00:04:09 NOTICE[1794] manager.c: Unable to open management configuration manager.conf. Call management disabled.
May 31 00:04:09 NOTICE[1794] cdr.c: CDR simple logging enabled.
May 31 00:04:10 WARNING[1794] res_musiconhold.c: Unable to open pseudo channel for timing... Sound may be choppy.
May 31 00:04:11 WARNING[1794] chan_iax2.c: Unable to open IAX timing interface: Permission denied
May 31 00:04:12 NOTICE[1794] chan_h323.c: Unable to load config h323.conf, H.323 disabled
May 31 00:04:36 NOTICE[1799] res_musiconhold.c: Request to schedule in the past?!?!
May 31 00:23:45 NOTICE[1799] res_musiconhold.c: Request to schedule in the past?!?!
May 31 06:45:09 NOTICE[1789] cdr.c: CDR simple logging enabled.
May 31 06:45:09 WARNING[1789] res_musiconhold.c: Unable to open pseudo channel for timing... Sound may be choppy.
May 31 06:45:10 WARNING[1789] chan_iax2.c: Unable to open IAX timing interface: Permission denied
May 31 06:45:13 NOTICE[1789] chan_h323.c: Unable to load config h323.conf, H.323 disabled
May 31 06:45:36 NOTICE[1795] res_musiconhold.c: Request to schedule in the past?!?!


Top
 Profile  
 
 Post subject: How to run Asterisk, after installed/setup properly
PostPosted: Wed May 31, 2006 11:56 am 
Offline

Joined: Tue Mar 28, 2006 10:33 pm
Posts: 47
Hello,

Please have a look from below link - this might help you. I have just posted [Post subject: How to run Asterisk, after installed/setup properly].

http://forum.asterisk2billing.org/viewt ... =1368#1368


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 2:00 pm 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
asterisk -vvvvvc

Having this warning in the output:
May 31 14:49:44 WARNING[4652]: manager.c:1742 init_manager: Unable to bind socket: Address already in use

As a result i can not open an asterisk console...

Any idea on how to fix this?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 8:37 pm 
Offline

Joined: Tue Mar 28, 2006 10:33 pm
Posts: 47
unisport wrote:
asterisk -vvvvvc

Having this warning in the output:
May 31 14:49:44 WARNING[4652]: manager.c:1742 init_manager: Unable to bind socket: Address already in use

As a result i can not open an asterisk console...

Any idea on how to fix this?

Thanks


Hello,
As you can see from message - that you are trying to run different application/conf file on the same port, what you can not do.

First:- Check that all conf file under Asterisk having different port number. If all conf file under asterisk having different port number then,

Second:- Is there any other application that running on the machine with Port number that is assigned also on Asterisk conf file. Either change the port number on that application OR in * conf file.

Better practice is to load only those that you need in /etc/asterisk/modules.conf [all others noload] - it minimize the errors.

Also check that, you have all correct directory defined in asterisk.conf
[make sure:- astrundir => /var/run/asterisk], this astrundir should point where is [asterisk.ctl & asterisk.pid] files are located.

If you've anything wrong in *; fix it - and reboot the whole machine.

OR

get * fresh installation:
http://www.digium.com/en/docs/asterisk_ ... iling.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 8:24 am 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
Thanks for your help and support...

I've done a fresh installation and it's now working fine. Although, the SIP and AIX friends can't still be created in to /etc/asterisk unless i do them manually all the time. Not able to use a2billing to do it...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 12:13 pm 
Offline

Joined: Tue Mar 28, 2006 10:33 pm
Posts: 47
unisport wrote:
Thanks for your help and support...

I've done a fresh installation and it's now working fine. Although, the SIP and AIX friends can't still be created in to /etc/asterisk unless i do them manually all the time. Not able to use a2billing to do it...


Hello,

Its good news that you got working.

Create first these two files [additional_a2billing_sip.conf & additional_a2billing_iax.conf ] manually under /etc/asterisk directory.

Then follow Areski's note exactly and set right permission. Just follow his installation giude - you will get everything working from his WEB admin control panel.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 12:39 pm 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
unisport wrote:
Thanks for your help and support...

I've done a fresh installation and it's now working fine. Although, the SIP and AIX friends can't still be created in to /etc/asterisk unless i do them manually all the time. Not able to use a2billing to do it...

oh, come on...
touch /etc/asterisk/additional_a2billing_sip.conf
touch additional_a2billing_iax.conf
chmod 666 /etc/asterisk/additional_a2billing_sip.conf
chmod 666 /etc/asterisk/additional_a2billing_sip.conf

That's the easiest way (not if security matters, though).
And if you wish a2billing to create it for you, set proper permissions on /etc/asterisk.
chmod 777 /etc/asterisk
or
chown wwwrun /etc/asterisk


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 1:04 pm 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
I have done it, but i am still getting the bellow error when trying to reload asterisk from a2billing WEBUI

Could not open buddy file '/etc/asterisk/additional_a2billing_sip.conf'

Looks like a2billing does not communicate with asterisk as i cannot fine any of the card, Sip friend created in a2billing in SIP.conf and additional_a2billing_sip.conf.

How can i get them to talk to each other? I mean asterisk and a2billing?

Also getting the error: chown: `wwwrun': invalid user
when chown wwwrun /etc/asterisk


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 1:46 pm 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
unisport wrote:
I have done it, but i am still getting the bellow error when trying to reload asterisk from a2billing WEBUI

Could not open buddy file '/etc/asterisk/additional_a2billing_sip.conf'

Looks like a2billing does not communicate with asterisk as i cannot fine any of the card, Sip friend created in a2billing in SIP.conf and additional_a2billing_sip.conf.

How can i get them to talk to each other? I mean asterisk and a2billing?

Also getting the error: chown: `wwwrun': invalid user
when chown wwwrun /etc/asterisk

Man, before you type any CLI command you must have clear understanding what it's doing. Otherwise you should not use CLI.
Imagine, what will happen to your server if I tell you "type rm -rf / and you'll be fine"? Will you blindly do it too?

wwwrun is a fake account to run your apache webserver. If you got "no such user" error message then your apache is using different account name. Like "www" or "nobody" or whatever else.

Your another error message "Could not open buddy file" means that either apache or asterisk simply can't get access to this file. Most probable reason is, again, wrong permissions settings on this file or on the directory. The easiest way is to screw all security measures and run Asterisk as root. Additionaly, you can set 666 on all your files within /etc/asterisk/ as well as 777 on all directories there. Also on /etc/asterisk itself.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 1:55 pm 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
Well, how do i get a2billing to talk to asterisk then?

I really need help guys


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 2:23 pm 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
Wow. So loud, really.
Well, I can do it for you. How much you're gonna pay me?
it's not a big deal to fix it for you, all I need is root access to your box.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 2:30 pm 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
Just sent you a pm!!!!!!!!!!

Thanks for your help


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Auto Dialer Software


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group