Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. The Asterisk Database > Application Example: Calling Card

11.6. Application Example: Calling Card

According to Widgets, Inc. policy, personal calls must be made via a virtual calling card. These cards are charged by the building manager via his phone (by calling extension 88, followed by the three-digit user extension and then the desired cash amount in cents).[1]

[1] To keep this example as simple as possible, we don’t consider the case of a card with an existing balance to which more money is added (in other words, in which an addition operation is performed). We are also ignoring the very real possibility that an employee could make personal calls from someone else’s extension.

Such calls are billed at a per-call rate of 1 cent per call. To make a personal call, the user dials 99, followed by the number being called. Of course, we don’t want anything to be deducted from the account in the event of a busy signal. Also, users may call up the account balance by dialing 98:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint