Multicast Paging
From FreeSWITCH Wiki
Contents |
Recipe
This example is from the samples included with FreeSWITCH.
<extension name="rtp_multicast_page">
<condition field="destination_number" expression="^pagegroup$|^7243">
<action application="answer"/>
<action application="esf_page_group"/>
</condition>
</extension>
The default ports used when no arguments are given to the esf_page_group application are:
multicast ip address: 224.168.168.168 multicast port: 34567 multicast control port: 6061
You can change the default multicast ip address and port with arguments to the esf_page_group. The first argument is for the multicast ip address, 2nd is the port to use, and the 3rd, if used, is the control packet port for Linksys devices. For example to change the multicast ip to 224.65.66.67 and port to 34564 use:
<action application="esf_page_group" data="224.65.66.67 34564"/>
Network Setup
Linux
If running Linux, you need to have a multicast route added to the network interface that your phones are on. For instance, if eth0.5 is a vlan interface (vlan5) that FreeSWITCH is bound to and it has an IP address of 192.168.5.2, then the correct route to add would be the following:
ip route add 224.0.0.0/4 dev eth0.5 src 192.168.5.2
You must have the iproute2 package installed to have the 'ip' command available. The src option is very important. Without it the packets will come out eth0 and not on the vlan.
