[asterisk-users] asterisk.conf and it's impact on CLI

2007-10-20 Thread Dominic Son
I was previous using Asterisk 1.2.9.1  and decided to get some real servers
outside of my house. It was time for Asterisk 1.4.4.
I figured since all the conf files were in /etc/asterisk form the old box,
i'd just copy tha directory over to the new server. My SIP DID AGI stuff
worked, except running 'asterisk -r' doesn't. It tells me

' Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl
exist?)'

Basically, the difference between 'asterisk.conf' file is as follows:

v 1.2.9 (installed through trixbox)
astrundir = /var/run/asterisk

v 1.4.4
astrundir = /var/run

So in my new servers, if i keep it as '/var/run/asterisk, my DID phone will
work with stanaphone (in which i'm crapping in my pants if they'll exist
cause they never return emails). Though CLI won't work.

if i do '/var/run', my DID won't work, but CLI will...

I've tried just coping over the extensions_additional.conf and
sip_additional.conf files from my old setup to my new one, and that didn't
work. Maybe I should just install my previous version. Are there QoS
differences though? I'd rather not regress if that were the case.


-- 
Anything else, let me know.

- Dominic


It is not the force of a stroke that makes fine art
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk.conf and it's impact on CLI

2007-10-20 Thread Al lists
this message is basically tells you asterisk is not running.
can you check and see if asterisk is running and present in memory?
something like
ps -ef | grep asterisk


On 10/20/07, Dominic Son [EMAIL PROTECTED] wrote:

 I was previous using Asterisk 1.2.9.1  and decided to get some real
 servers outside of my house. It was time for Asterisk 1.4.4.
 I figured since all the conf files were in /etc/asterisk form the old box,
 i'd just copy tha directory over to the new server. My SIP DID AGI stuff
 worked, except running 'asterisk -r' doesn't. It tells me

 ' Unable to connect to remote asterisk (does
 /var/run/asterisk/asterisk.ctl exist?)'

 Basically, the difference between 'asterisk.conf' file is as follows:

 v 1.2.9 (installed through trixbox)
 astrundir = /var/run/asterisk

 v 1.4.4
 astrundir = /var/run

 So in my new servers, if i keep it as '/var/run/asterisk, my DID phone
 will work with stanaphone (in which i'm crapping in my pants if they'll
 exist cause they never return emails). Though CLI won't work.

 if i do '/var/run', my DID won't work, but CLI will...

 I've tried just coping over the extensions_additional.conf and
 sip_additional.conf files from my old setup to my new one, and that didn't
 work. Maybe I should just install my previous version. Are there QoS
 differences though? I'd rather not regress if that were the case.


 --
 Anything else, let me know.

 - Dominic


 It is not the force of a stroke that makes fine art
 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk.conf and it's impact on CLI

2007-10-20 Thread Jaswinder Singh
astrundir = /var/run
 Change this to astrundir = /var/run/asterisk  on 1.4 server and chmod
/var/run/asterisk to 777 . make sure u create that directory as well .

On 20/10/2007, Al lists [EMAIL PROTECTED] wrote:

 this message is basically tells you asterisk is not running.
 can you check and see if asterisk is running and present in memory?
 something like
 ps -ef | grep asterisk


 On 10/20/07, Dominic Son [EMAIL PROTECTED] wrote:

  I was previous using Asterisk 1.2.9.1  and decided to get some real
  servers outside of my house. It was time for Asterisk 1.4.4.
  I figured since all the conf files were in /etc/asterisk form the old
  box, i'd just copy tha directory over to the new server. My SIP DID AGI
  stuff worked, except running 'asterisk -r' doesn't. It tells me
 
  ' Unable to connect to remote asterisk (does
  /var/run/asterisk/asterisk.ctl exist?)'
 
  Basically, the difference between 'asterisk.conf' file is as follows:
 
  v 1.2.9 (installed through trixbox)
  astrundir = /var/run/asterisk
 
  v 1.4.4
  astrundir = /var/run
 
  So in my new servers, if i keep it as '/var/run/asterisk, my DID phone
  will work with stanaphone (in which i'm crapping in my pants if they'll
  exist cause they never return emails). Though CLI won't work.
 
  if i do '/var/run', my DID won't work, but CLI will...
 
  I've tried just coping over the extensions_additional.conf and
  sip_additional.conf files from my old setup to my new one, and that didn't
  work. Maybe I should just install my previous version. Are there QoS
  differences though? I'd rather not regress if that were the case.
 
 
  --
  Anything else, let me know.
 
  - Dominic
 
 
  It is not the force of a stroke that makes fine art
  ___
  --Bandwidth and Colocation Provided by http://www.api-digital.com--
 
  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 


 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk.conf and it's impact on CLI

2007-10-20 Thread Tzafrir Cohen
On Sat, Oct 20, 2007 at 11:57:05PM +0530, Jaswinder Singh wrote:
 astrundir = /var/run
  Change this to astrundir = /var/run/asterisk  on 1.4 server and chmod
 /var/run/asterisk to 777 . make sure u create that directory as well .

chmod 777 (or even 666) to the control socket (asterisk.ctl) allows
everybody on the system to write to it, and hence have full control of
Asterisk. In short: bad. You fix things with chown, not with chmod
666/777 .

And anyway, for it to have a lasting effect you need to set up the
permissions in asterisk.conf anyway.

-- 
   Tzafrir Cohen   
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk.conf and it's impact on CLI

2007-10-20 Thread Dominic Son
awesome. it worked. thanks guys.

On 10/20/07, Tzafrir Cohen [EMAIL PROTECTED] wrote:

 On Sat, Oct 20, 2007 at 11:57:05PM +0530, Jaswinder Singh wrote:
  astrundir = /var/run
   Change this to astrundir = /var/run/asterisk  on 1.4 server and chmod
  /var/run/asterisk to 777 . make sure u create that directory as well .

 chmod 777 (or even 666) to the control socket (asterisk.ctl) allows
 everybody on the system to write to it, and hence have full control of
 Asterisk. In short: bad. You fix things with chown, not with chmod
 666/777 .

 And anyway, for it to have a lasting effect you need to set up the
 permissions in asterisk.conf anyway.

 --
Tzafrir Cohen
 icq#16849755  jabber:[EMAIL PROTECTED]
 +972-50-7952406   mailto:[EMAIL PROTECTED]
 http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users