Re: [asterisk-users] Question regarding keywords in sip.conf/users.conf

2008-11-03 Thread Rob Hillis
Unfortunately RealTime isn't going to be an option - it's another level 
of configuration I want to avoid, but more importantly since I'm 
planning on being able to run these scripts on an Astlinux install, 
there won't always be a MySQL database available.  If worst comes to 
worst, and the extra configuration included in sip.conf becomes a 
problem, I'll move it to another text-based config file - not my 
preferred option (since I'd like to keep everything close-to-hand) but 
not a major problem since I'm likely to need a separate config file for 
global configuration options anyway.

Paul Hales wrote:
 It should ignore the keywords, but you will get lots of errors in the CLI.

 My guess is that if you put it all in a DB (and use realtime) you can
 probably do whatever you want.

 PaulH


 Rob Hillis wrote:
   
 Hi guys,

 I'm about to embark on a small (undoubtedly to get much larger) project 
 to write a set of scripts to handle provisioning of phones - Snom to 
 begin with, possibly with others (most likely Polycom and Linksys) to 
 follow later.  Since I want this script to handle *all* aspects of phone 
 provisioning (such as BLF buttons and so on) I need a place to store 
 data.  My preference is to keep all phone related configuration in the 
 one place - such as sip.conf or users.conf.  How would having additional 
 keywords (most likely with a prefix of some type to reduce the 
 likelihood of conflicts with real keywords) in Asterisk's .conf files 
 affect Asterisk?  I would expect that Asterisk should ignore unknown 
 keywords, but I'd rather check on this with those in the know first.

 Any insights?

 ___
 -- 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] Question regarding keywords in sip.conf/users.conf

2008-11-03 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rob Hillis wrote:
 Unfortunately RealTime isn't going to be an option - it's another level 
 of configuration I want to avoid, but more importantly since I'm 
 planning on being able to run these scripts on an Astlinux install, 
 there won't always be a MySQL database available.  If worst comes to 
 worst, and the extra configuration included in sip.conf becomes a 
 problem, I'll move it to another text-based config file - not my 
 preferred option (since I'd like to keep everything close-to-hand) but 
 not a major problem since I'm likely to need a separate config file for 
 global configuration options anyway.

You could still store them in sip.conf, just make each line a comment.

e.g.:
;[myentry]keyword=value
;[myentry]keyword=value

You could then search for ;[myentry] for your keywords and strip them
off when you write out the real entries.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFJD4ToCFu3bIiwtTARAiD2AJ4/5xKHZ3dSt1/J7GdrP0Bfqi5y6gCfQIBE
RScZG7kDyLQOpHGTLeCHsIQ=
=OVRk
-END PGP SIGNATURE-

___
-- 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] Question regarding keywords in sip.conf/users.conf

2008-11-03 Thread Rob Hillis
Barry L. Kline wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rob Hillis wrote:
   
 Unfortunately RealTime isn't going to be an option - it's another level 
 of configuration I want to avoid, but more importantly since I'm 
 planning on being able to run these scripts on an Astlinux install, 
 there won't always be a MySQL database available.  If worst comes to 
 worst, and the extra configuration included in sip.conf becomes a 
 problem, I'll move it to another text-based config file - not my 
 preferred option (since I'd like to keep everything close-to-hand) but 
 not a major problem since I'm likely to need a separate config file for 
 global configuration options anyway.
 

 You could still store them in sip.conf, just make each line a comment.

 e.g.:
 ;[myentry]keyword=value
 ;[myentry]keyword=value

 You could then search for ;[myentry] for your keywords and strip them
 off when you write out the real entries.
   

I did think of that, but the idea of using something that's actually a 
comment as configuration seems fraught with danger - not to mention it 
being an awful hack.

___
-- 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] Question regarding keywords in sip.conf/users.conf

2008-11-03 Thread Eric ManxPower Wieling
Historically Asterisk's config file parser ignored unknown keywords. 
This is useful for exactly the things you are trying to do.  I hope 1.6 
did not remove this feature.

Rob Hillis wrote:
 Barry L. Kline wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rob Hillis wrote:
   
 Unfortunately RealTime isn't going to be an option - it's another level 
 of configuration I want to avoid, but more importantly since I'm 
 planning on being able to run these scripts on an Astlinux install, 
 there won't always be a MySQL database available.  If worst comes to 
 worst, and the extra configuration included in sip.conf becomes a 
 problem, I'll move it to another text-based config file - not my 
 preferred option (since I'd like to keep everything close-to-hand) but 
 not a major problem since I'm likely to need a separate config file for 
 global configuration options anyway.
 
 You could still store them in sip.conf, just make each line a comment.

 e.g.:
 ;[myentry]keyword=value
 ;[myentry]keyword=value

 You could then search for ;[myentry] for your keywords and strip them
 off when you write out the real entries.
   
 
 I did think of that, but the idea of using something that's actually a 
 comment as configuration seems fraught with danger - not to mention it 
 being an awful hack.


-- 
Consulting and design services for LAN, WAN, voice and data.  Based near 
Birmingham, AL.  Now accepting clients worldwide. Contact me for Tellabs 
echo canceling systems.  Also see http://www.fnords.org/skillslist.html

___
-- 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


[asterisk-users] Question regarding keywords in sip.conf/users.conf

2008-11-02 Thread Rob Hillis
Hi guys,

I'm about to embark on a small (undoubtedly to get much larger) project 
to write a set of scripts to handle provisioning of phones - Snom to 
begin with, possibly with others (most likely Polycom and Linksys) to 
follow later.  Since I want this script to handle *all* aspects of phone 
provisioning (such as BLF buttons and so on) I need a place to store 
data.  My preference is to keep all phone related configuration in the 
one place - such as sip.conf or users.conf.  How would having additional 
keywords (most likely with a prefix of some type to reduce the 
likelihood of conflicts with real keywords) in Asterisk's .conf files 
affect Asterisk?  I would expect that Asterisk should ignore unknown 
keywords, but I'd rather check on this with those in the know first.

Any insights?

___
-- 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] Question regarding keywords in sip.conf/users.conf

2008-11-02 Thread Paul Hales

It should ignore the keywords, but you will get lots of errors in the CLI.

My guess is that if you put it all in a DB (and use realtime) you can
probably do whatever you want.

PaulH


Rob Hillis wrote:
 Hi guys,

 I'm about to embark on a small (undoubtedly to get much larger) project 
 to write a set of scripts to handle provisioning of phones - Snom to 
 begin with, possibly with others (most likely Polycom and Linksys) to 
 follow later.  Since I want this script to handle *all* aspects of phone 
 provisioning (such as BLF buttons and so on) I need a place to store 
 data.  My preference is to keep all phone related configuration in the 
 one place - such as sip.conf or users.conf.  How would having additional 
 keywords (most likely with a prefix of some type to reduce the 
 likelihood of conflicts with real keywords) in Asterisk's .conf files 
 affect Asterisk?  I would expect that Asterisk should ignore unknown 
 keywords, but I'd rather check on this with those in the know first.

 Any insights?

 ___
 -- 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