SARK V4.0.0 Multicast

From sailpbx
Revision as of 20:41, 18 April 2013 by Adminwiki (talk | contribs) (Cisco/Linksys set-up)
Jump to: navigation, search

back to SARK v4.0.0 contents

Multicast Paging

SARK supports SIP multicast paging for devices which can receive them. Multicast is a very efficient way to page lots of endpoints. The traditional way to do this in Asterisk was to use the "Page" command. This effectively connected all of the phones in your page group to a conference room and then allowed you to address them all. This doesn't work well for large numbers of phones because it takes a while to get them all into the conference and it can swamp your PBX by requiring more voice channels than it can handle.

Multicast is much more elegant; it simply "multicasts" your page once over the network, thus putting very little load on your PBX. Any SIP device which is set to listen on the "channel" you are using will pick it up automatically. Most well-designed professional SIP devices can listen for Multicasts, for example, most Aastra SIP phones, Cisco Small business phones (formerly Linksys), all Snoms and Yealinks and all of the new generation of overhead SIP Public Address devices can do it as well as many other devices. If in doubt, check with your manufacturer.

System set-up

First of all you need to set up one, or more, multicast groups. You do this by choosing the Multicast tab in the Features section and then clicking the new object button at the top right of the screen.

V4 multicast 1.png



The group number is a unique 4 digit number that you will dial to page this multicast group. In practice this may be accessed by a speed-dial or function-key on the phones. Next you must fill out the multicast IP address. Multicast addresess ranges are preallocated, you can read about them here http://www.iana.org/assignments/multicast-addresses/multicast-addresses.xml. However, the so called "well known" SIP multicast IPV4 address is 224.0.1.75, so you might want to use that to begin. Next you also want to choose a port to send on. In the example, we've chosen 32000. Most SIP multicast devices use a single port but Cisco/Linksys devices require 2 ports to work. This is also supported in SARK. Add a description and click Save.



V4 multicast 2.png



Phone set-up

Once you've issued a commit to send these new entities to the PBX, your multicast page is ready to use. IN our example, simply dial 4000 from any phone and announce away. However, we'll also need to set up the devices to "listen" for our multicasts.

Snom set-up

Below is an example of how to set up a Snom to receive our multicasts on 224.0.1.75:32000.

Snoms can listen on up to 10 different multicast addresses. If we go back to the extensions page on our demonstration system we can see that we have a Snom710 at Ext504.



V4 extensions 1.png



We can proxy to the Ext504 phone's own browser by clicking on the "connected" icon. Then in the snom browser click "Advanced"->SIP/RTP and scroll to the bottom of the page where you will find the "multicast" section. Clcik the radio button to "on" and add thhe multicast address that we created in our multicast page.



V4 snomproxy 2.png



Set up as many phones as you want/need to respond to this multicast and save your changes. The multicast will now work. You can, of course, provision the multicast addresses you want by including then in the central SARK provisioning files for each device.

Cisco/Linksys set-up

Below is an extract from the Asterisk Book (see http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/AdditionalConfig_id257169.html)



The multicast paging feature on Cisco SPA phones is a bit strange, but once configured it works fine. The trick of it is that the address you put into the phone is not the multicast address that the page is sent across, but rather a sort of signaling channel.

What we have found is that you can make this address the same as the multicast address, but simply use a different port number.

The dialplan looks like this:

exten => *724,1,Page(MulticastRTP/linksys/239.0.0.1:1234/239.0.0.1:6061)

In the SPA phone, you need to log into the Administration interface and navigate to the SIP tab. At the very bottom of the page you will find the section called Linksys Key System Parameters. You need to set the following parameters:

Linksys Key System: Yes

Multicast Address: 239.0.0.1:6061

Note that the multicast address you assign to the phone is the one that comes second in the channel definition (in our example, the one using port 6061).

Note that you can write the Page() command in this format in an environment where there is a mix of SPA phones (FKA Linksys, now Cisco) phones and other types of phones. The other phones will use the first address and will work the same as if you had used basic instead of linksys.