shawn bright
2006-Jul-28 13:02 UTC
[asterisk-users] need a pointer regarding scripting asterisk
Hello there, i am a newbie here, but i have managed to get asterisk up and running with one zap channel, and various tutorials with dial plans. Cool. What i need to do is a little more complex though. We monitor field equipment for farmers, right now we store their info in a mysql database, and present it to them via pager, or the web. We are looking to implement an ivr system that would call them and play a message when their equipment changes status, and allow them to call in to check on status of certain equipment. They will all have the same phone number to call in, and they will login with a 5 digit pin number, they then need to enter a two digit number to access info about a particular piece of equipment that we monitor. Ok, so this is a little complex for a dial plan. So i want to use python to handle it. There are two modules out there, but i can't seem to find much in the way of documentation for them. One is called Py-Asterisk, the other is called pyst. There is also a ruby module called RAGI, but i cant seem to find any docs for it. I found one tutorial, but it required Rails to be installed. So what i am asking for i suppose.... if anyone out there knows of some good docs for a python or ruby solution, preferably with some examples, please pass the links on to me. i have the ATOF book, and its really helped me get started, but i suppose i need examples more closely related to what i am doing. if you have read this far, thanks for your time. -sk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060728/cf164baf/attachment.htm
Derek Whitten
2006-Jul-28 13:12 UTC
[asterisk-users] need a pointer regarding scripting asterisk
shawn bright wrote:> Hello there, > > i am a newbie here, but i have managed to get asterisk up and running > with one zap channel, and various tutorials with dial plans. > Cool. What i need to do is a little more complex though. We monitor > field equipment for farmers, right now we store their info in a mysql > database, and present it to them via pager, or the web. We are looking > to implement an ivr system that would call them and play a message > when their equipment changes status, and allow them to call in to > check on status of certain equipment. > They will all have the same phone number to call in, and they will > login with a 5 digit pin number, they then need to enter a two digit > number to access info about a particular piece of equipment that we > monitor. Ok, so this is a little complex for a dial plan. So i want to > use python to handle it. There are two modules out there, but i can't > seem to find much in the way of documentation for them. One is called > Py-Asterisk, the other is called pyst. > > There is also a ruby module called RAGI, but i cant seem to find any > docs for it. I found one tutorial, but it required Rails to be installed. > > So what i am asking for i suppose.... if anyone out there knows of > some good docs for a python or ruby solution, preferably with some > examples, please pass the links on to me. > > i have the ATOF book, and its really helped me get started, but i > suppose i need examples more closely related to what i am doing. > > if you have read this far, thanks for your time. > > -sk > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >You should be able to do that with a regular dialplan depending on the quantity of machines that you need to monitor.. you could use DISA for your authentication and festival (or something similar) to "say" your particular message.. could use mysql commands and store the whole thing in a db as well too.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060728/00eddece/signature.pgp
shawn bright
2006-Jul-28 14:08 UTC
[asterisk-users] Re: need a pointer regarding scripting asterisk
i would use a dial plan, but we are monitoring about 1200 units in the field, i thought a dial plan would be a little long or complex for that. I suppose that i could use a dial plan and set guys up by editing the extensions.conf file for each one ? I just thought it might be easier to script it somehow. thanks sk On 7/28/06, shawn bright <nephish@gmail.com> wrote:> > Hello there, > > i am a newbie here, but i have managed to get asterisk up and running with > one zap channel, and various tutorials with dial plans. > Cool. What i need to do is a little more complex though. We monitor field > equipment for farmers, right now we store their info in a mysql database, > and present it to them via pager, or the web. We are looking to implement an > ivr system that would call them and play a message when their equipment > changes status, and allow them to call in to check on status of certain > equipment. > They will all have the same phone number to call in, and they will login > with a 5 digit pin number, they then need to enter a two digit number to > access info about a particular piece of equipment that we monitor. Ok, so > this is a little complex for a dial plan. So i want to use python to handle > it. There are two modules out there, but i can't seem to find much in the > way of documentation for them. One is called Py-Asterisk, the other is > called pyst. > > There is also a ruby module called RAGI, but i cant seem to find any docs > for it. I found one tutorial, but it required Rails to be installed. > > So what i am asking for i suppose.... if anyone out there knows of some > good docs for a python or ruby solution, preferably with some examples, > please pass the links on to me. > > i have the ATOF book, and its really helped me get started, but i suppose > i need examples more closely related to what i am doing. > > if you have read this far, thanks for your time. > > -sk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060728/5e724653/attachment.htm
shawn bright
2006-Aug-06 14:05 UTC
[asterisk-users] Re: need a pointer regarding scripting asterisk
ok, this seems like a workable solution. i will give it a shot tomorrow at work. thanks sk On 8/3/06, Benjamin Stocker <bstocker@gmail.com> wrote:> > 2006/8/2, Andy Kuo <akuoca@gmail.com>: > > Hi, > > > > Can you give a quick example on how to query an EXTERNAL database? > > Create a AGI Script. It may take actual variable- and channel values > to create a query for the external DB. Store the result in a variable > to be used in the next dialplan priority. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060806/9e318688/attachment.htm