July 2017
Intermediate to advanced
434 pages
12h 59m
English
An important aspect of channel variables (and of FreeSWITCH variables by and large) is that you use them not only to check the state of the system/call/user and so on, but you also use variables to affect the behavior of FreeSWITCH!
Most of what FreeSWITCH will do with a call is set by its configuration, and can be overridden at will on a call by call basis.
Let's see the most basic characteristic of a SIP or Verto call: which codec FreeSWITCH will propose to a remote peer.
You set a default list in the /usr/local/freeswitch/conf/vars.xml file line:
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=OPUS,G722,PCMU,PCMA,VP8"/>
This line will be used by pre-processor to set the global variable $${outbound_codec_prefs}, ...
Read now
Unlock full access