Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
FreeSWITCH 1.2

You're reading from   FreeSWITCH 1.2 Whether you're an IT pro or an enthusiast, setting up your own fully-featured telephony system is an exciting challenge, made all the more realistic for beginners by this brilliant book on FreeSWITCH. A 100% practical tutorial.

Arrow left icon
Product type Paperback
Published in May 2013
Publisher Packt
ISBN-13 9781782161004
Length 428 pages
Edition 2nd Edition
Concepts
Arrow right icon
Toc

Table of Contents (24) Chapters Close

FreeSWITCH 1.2
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Architecture of FreeSWITCH 2. Building and Installation FREE CHAPTER 3. Test Driving the Example Configuration 4. SIP and the User Directory 5. Understanding the XML Dialplan 6. Using XML IVRs and Phrase Macros 7. Dialplan Scripting with Lua 8. Advanced Dialplan Concepts 9. Moving Beyond the Static XML Configuration 10. Controlling FreeSWITCH Externally 11. Web-based Call Control with mod_httapi 12. Handling NAT 13. VoIP Security 14. Advanced Features and Further Reading The FreeSWITCH Online Community Migrating from Asterisk to FreeSWITCH The History of FreeSWITCH Index

Accessing channel variables


Within the Dialplan, variables are accessed with a special notation: ${variable_name}. Consider the following example:

<action application="log" data="INFO The value in sip_authorized is '${sip_authorized}'"/>

This action would print a log message to the FreeSWITCH command line as follows:

2009-12-09 14:32:48.904383 [INFO] mod_dptools.c:897 The value in sip_authorized is 'true'

Accessing the read-only values is much the same. Each of these values has a corresponding channel variable name. For example:

<action application="log" data="INFO The value of Unique-ID is '${uuid}'"/>

This will print a log line on the FreeSWITCH command line as follows:

2009-12-09 14:46:31.695458 [INFO] mod_dptools.c:897 The value of Unique-ID is '169ae42e-29f5-4e1c-9505-8ee6ef643081'

Tip

A complete list of info application variables and their corresponding channel variable names can be found at the following address: http://wiki.freeswitch.org/wiki/Channel_Variables#Info_Application_Variable_Names_...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image