Re: [Asterisk-Users] Asterisk PBX in Debian

2005-10-08 Thread Tzafrir Cohen
Hi

Please use proper quoting...

See below

On Sat, Oct 08, 2005 at 12:23:21AM -0400, [EMAIL PROTECTED] wrote:
>  -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Tzafrir
> Cohen
> Sent: Friday, October 07, 2005 8:17 AM
> To: asterisk-users@lists.digium.com
> Subject: Re: [Asterisk-Users] Asterisk PBX in Debian
> 
> > On Fri, Oct 07, 2005 at 07:37:26AM -0400, [EMAIL PROTECTED] wrote:
> 
> > > 
> > > Besides I found that using packages with asterisk on debian can do odd
> > 
> > > things to your custom sound files if you do a remove.
> > 
> > Regarding the sounds files: I don't think that the way Asterisk
> > installer handles them is very optimal either.
> > 
> > Your message got me thinking, though. I believe that Debian is right
> > installing all sounds to /usr/share/asterisk/sounds . But
> > /var/lib/asterisk/sounds (/usr/local/asterisk/sounds? ) should still be
> > kept for custom sounds that are never touched by the package. 
> > 
> > I figure that file.c:build_filename could be changed to do the
> > following:
> > 
> >   if exists /var/lib/asterisk/sounds/
> > return /var/lib/asterisk/sounds/
> >   else if exists /usr/share/sounds/asterisk/
> > return /usr/share/sounds/asterisk/
> > 
> > What do you think? I figure I'll try to push this into Debian first.
> > (If this is indeed a good idea)
> 
> Using /var works, but setting it in asterisk could be a pain when it
> comes to voicemail prompts.  Plus, extensions.conf would need to grow
> and become a little cluttered.  Unless of course, one could do something
> to specify a new root voicemail path, and if the file is not found it
> plays from the default.

You missed the point: you still keep the same configuration. 
should first be looked for in the custom directory and only afterwards
in /usr/share/sounds/asterisk/sounds .

voicemail/ is currently (in Debian) a symlink from the sounds directory 
to /var/lib/asterisk/voicemail

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


RE: [Asterisk-Users] Asterisk PBX in Debian

2005-10-07 Thread gw
 -Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tzafrir
Cohen
Sent: Friday, October 07, 2005 8:17 AM
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] Asterisk PBX in Debian

On Fri, Oct 07, 2005 at 07:37:26AM -0400, [EMAIL PROTECTED] wrote:
> Why bother with packages anyhow?  I just installed debian base and did

> a cvs get for head, and all good to go.

And if you have several systems?
>>>
I would make a custom package in that case, for easy updating.  Depends
of course if you are using head or not.

> 
> Besides I found that using packages with asterisk on debian can do odd

> things to your custom sound files if you do a remove.

Regarding the sounds files: I don't think that the way Asterisk
installer handles them is very optimal either.

Your message got me thinking, though. I believe that Debian is right
installing all sounds to /usr/share/asterisk/sounds . But
/var/lib/asterisk/sounds (/usr/local/asterisk/sounds? ) should still be
kept for custom sounds that are never touched by the package. 

I figure that file.c:build_filename could be changed to do the
following:

  if exists /var/lib/asterisk/sounds/
return /var/lib/asterisk/sounds/
  else if exists /usr/share/sounds/asterisk/
return /usr/share/sounds/asterisk/

What do you think? I figure I'll try to push this into Debian first.
(If this is indeed a good idea)
>>>
Using /var works, but setting it in asterisk could be a pain when it
comes to voicemail prompts.  Plus, extensions.conf would need to grow
and become a little cluttered.  Unless of course, one could do something
to specify a new root voicemail path, and if the file is not found it
plays from the default.

Greg
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] Asterisk PBX in Debian

2005-10-07 Thread Paul

Michael Coburn wrote:


Or why not create all sound files under /usr/share/asterisk/sounds and
then subdirs from there for your own touched files i.e.
/usr/share/asterisk/sounds/custom ?
--
Michael Coburn
 


Short answer is because we live by rules.

Any good linux distro follows standards regarding the proper location of 
files. /usr/local /opt and /var/lib would be more appropriate for 
locally added sounds.


This is good reading for people new to linux. Maybe you always wondered 
why there is a /bin, /usr/bin and /usr/local/bin? This will enlighten you:


http://www.debian.org/doc/packaging-manuals/fhs/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tzafrir
Cohen
Sent: Friday, October 07, 2005 8:17 AM
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] Asterisk PBX in Debian

On Fri, Oct 07, 2005 at 07:37:26AM -0400, [EMAIL PROTECTED] wrote:
 


Why bother with packages anyhow?  I just installed debian base and did
   


a
 


cvs get for head, and all good to go.
   



And if you have several systems?

 


Besides I found that using packages with asterisk on debian can do odd
things to your custom sound files if you do a remove.
   



Regarding the sounds files: I don't think that the way Asterisk
installer handles them is very optimal either.

Your message got me thinking, though. I believe that Debian is right
installing all sounds to /usr/share/asterisk/sounds . But
/var/lib/asterisk/sounds (/usr/local/asterisk/sounds? ) should still be 
kept for custom sounds that are never touched by the package. 


I figure that file.c:build_filename could be changed to do the
following:

 if exists /var/lib/asterisk/sounds/
   return /var/lib/asterisk/sounds/
 else if exists /usr/share/sounds/asterisk/
   return /usr/share/sounds/asterisk/

What do you think? I figure I'll try to push this into Debian first.
(If this is indeed a good idea)

 



___
--Bandwidth and Colocation sponsored by Easynews.com --

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


RE: [Asterisk-Users] Asterisk PBX in Debian

2005-10-07 Thread Michael Coburn
Or why not create all sound files under /usr/share/asterisk/sounds and
then subdirs from there for your own touched files i.e.
/usr/share/asterisk/sounds/custom ?
--
Michael Coburn

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tzafrir
Cohen
Sent: Friday, October 07, 2005 8:17 AM
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] Asterisk PBX in Debian

On Fri, Oct 07, 2005 at 07:37:26AM -0400, [EMAIL PROTECTED] wrote:
> Why bother with packages anyhow?  I just installed debian base and did
a
> cvs get for head, and all good to go.

And if you have several systems?

> 
> Besides I found that using packages with asterisk on debian can do odd
> things to your custom sound files if you do a remove.

Regarding the sounds files: I don't think that the way Asterisk
installer handles them is very optimal either.

Your message got me thinking, though. I believe that Debian is right
installing all sounds to /usr/share/asterisk/sounds . But
/var/lib/asterisk/sounds (/usr/local/asterisk/sounds? ) should still be 
kept for custom sounds that are never touched by the package. 

I figure that file.c:build_filename could be changed to do the
following:

  if exists /var/lib/asterisk/sounds/
return /var/lib/asterisk/sounds/
  else if exists /usr/share/sounds/asterisk/
return /usr/share/sounds/asterisk/

What do you think? I figure I'll try to push this into Debian first.
(If this is indeed a good idea)

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] Asterisk PBX in Debian

2005-10-07 Thread Tzafrir Cohen
On Fri, Oct 07, 2005 at 07:37:26AM -0400, [EMAIL PROTECTED] wrote:
> Why bother with packages anyhow?  I just installed debian base and did a
> cvs get for head, and all good to go.

And if you have several systems?

> 
> Besides I found that using packages with asterisk on debian can do odd
> things to your custom sound files if you do a remove.

Regarding the sounds files: I don't think that the way Asterisk
installer handles them is very optimal either.

Your message got me thinking, though. I believe that Debian is right
installing all sounds to /usr/share/asterisk/sounds . But
/var/lib/asterisk/sounds (/usr/local/asterisk/sounds? ) should still be 
kept for custom sounds that are never touched by the package. 

I figure that file.c:build_filename could be changed to do the
following:

  if exists /var/lib/asterisk/sounds/
return /var/lib/asterisk/sounds/
  else if exists /usr/share/sounds/asterisk/
return /usr/share/sounds/asterisk/

What do you think? I figure I'll try to push this into Debian first.
(If this is indeed a good idea)

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


RE: [Asterisk-Users] Asterisk PBX in Debian

2005-10-07 Thread gw
Why bother with packages anyhow?  I just installed debian base and did a
cvs get for head, and all good to go.

Besides I found that using packages with asterisk on debian can do odd
things to your custom sound files if you do a remove.

Regards,
Greg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tzafrir
Cohen
Sent: Friday, October 07, 2005 7:17 AM
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] Asterisk PBX in Debian

On Fri, Oct 07, 2005 at 12:51:25AM -0500, Carlos Prieto wrote:
> Hi everyone.
> 
> I've installed Asterisk PBX using apt packages, but i don't have 
> actually any Digium card, so i want to use ztdummy.
> 
> I've tried to modify the Makefiles in the debian source package, i 
> don't get any error, but still the ztdummy module doesn't get
compiled.

What file exactly did you edit? What command did you run? I suspect the
file you have edited got overrun.

> 
> Does anybody has idea how to get the ztdummy module using the debian 
> package system?

I'm not sure you need. Packages from 

  deb http://rapid.dotsrc.org/rapid sarge main

already have ztdummy and ztdummy is on by default in the zaptel-source
package.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] Asterisk PBX in Debian

2005-10-07 Thread Tzafrir Cohen
On Fri, Oct 07, 2005 at 12:51:25AM -0500, Carlos Prieto wrote:
> Hi everyone.
> 
> I've installed Asterisk PBX using apt packages, but i don't have actually
> any Digium card, so i want to use ztdummy.
> 
> I've tried to modify the Makefiles in the debian source package, i don't get
> any error, but still the ztdummy module doesn't get compiled.

What file exactly did you edit? What command did you run? I suspect the
file you have edited got overrun.

> 
> Does anybody has idea how to get the ztdummy module using the debian package
> system?

I'm not sure you need. Packages from 

  deb http://rapid.dotsrc.org/rapid sarge main

already have ztdummy and ztdummy is on by default in the zaptel-source
package.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--Bandwidth and Colocation sponsored by Easynews.com --

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