- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Transfer Scripting Example
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2009 11:08 AM
This script demonstrates two methods for transferring a caller to a destination phone number. The simplest approach is to use the TRANSFER action. The advantage to TRANSFER is that it is easy to use and works well in most situations. The disadvantage is that the caller hears the entire ring & call setup process before that number picks up.
Transferring using SPAWN is a bit more complex and requires the use of a child script, but it can make a caller's experience more consistent and enjoyable (in particular, you can play hold music while the caller waits). The basic strategy of the SPAWN approach is to spawn a child script while performs a PLACECALL. Once the PLACECALL detects an answer, that child script will SIGNAL the parent script to LINK the two individual calls. Upon LINK, the caller will stop hearing hold music and the two parties will be in conversation.
This script is built to try three different phone numbers that are configured in the xfer_List ASSIGN action. The caller will hear ringback, a brief busy signal (if the number is busy), etc. if the TRANSFER method is used. The caller will hear hold music if the SPAWN method is used.


