{"id":1362,"date":"2008-07-11T16:38:26","date_gmt":"2008-07-11T20:38:26","guid":{"rendered":"http:\/\/blog.voipsupply.com\/?p=1362"},"modified":"2008-07-11T16:38:26","modified_gmt":"2008-07-11T20:38:26","slug":"guest-blog-asterisk-rides-the-train","status":"publish","type":"post","link":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/guest-blog-asterisk-rides-the-train\/","title":{"rendered":"Guest Blog: Asterisk Rides the Train"},"content":{"rendered":"<p>I have chosen Asterisk for many reasons. First was the lower cost, but once I had it running and tested I found it to have many more features than I could imagine.\u00a0 When I first started with Asterisk it was my first introduction to any telephony system at all, everything was learned for this one project, also known as my family&#8217;s business, <a href=\"http:\/\/www.artknapps.ca\/\">Art Knapp Plantland<\/a>.<\/p>\n<p>I have had Asterisk running for well over two years, learning more every time I look at it.\u00a0 Once I had all the basics setup and functioning, I had some ideas to tryout and see what I could make work.\u00a0 One of those ideas was an automated timer system for our ride-on train.<\/p>\n<p>Here at work, we have a ride-on train that goes through our nursery.\u00a0 The announcement system for this has gone through many revisions, starting with our cashiers making manual announcements following a timer, and then I made some recordings that were manually started following the timer.\u00a0 Both those attempts worked to a degree, but if it was busy the times would be off.\u00a0 Then I modified it so the cashiers could start the timer on a phone, and the three calls for boarding times (10 minutes, 5 minutes and 1 minute) would all go on their own.<\/p>\n<p>If the driver asks how many minutes are remaining, they don&#8217;t usually know, so I made a script that checks the time and reads back the number of minutes before the train should leave.<\/p>\n<p>Technically, the system works like this.\u00a0 Our phones are all connected to our overhead paging system.\u00a0 When the cashiers sell tickets, they dial an extension that launches an AGI script.\u00a0 That script first checks if a call is in progress or not.\u00a0 If there is not call it will copy three call files to the \/tmp directory, touch them in the future based on the time they should be announced, move them to the \/var\/spool\/asterisk\/outgoing directory, then announce it was successful.\u00a0 Asterisk will then play them in sequence when the time is right.\u00a0 The time-checking script first gets the system time, and compares it against the time the one-minute call is scheduled to go, calculates the minutes, and reads it back.\u00a0 Quite simple really.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have chosen Asterisk for many reasons. First was the lower cost, but once I had it running and tested I found it to have many more features than I could imagine.  When I first started with Asterisk it was my first introduction to any telephony system at all, everything was learned for this one project, also known as my family&#8217;s business, Art Knapp Plantland.<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1075,1218],"tags":[],"class_list":["post-1362","post","type-post","status-publish","format-standard","hentry","category-asterisk","category-open-source-voip"],"_links":{"self":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts\/1362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/comments?post=1362"}],"version-history":[{"count":0,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts\/1362\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/media?parent=1362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/categories?post=1362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/tags?post=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}