[Freeswitch-users] mod_event_multicast on windows

Royce Mitchell III royce3 at gmail.com
Fri Jan 4 03:08:37 MSK 2013


I'm trying to get multicast registrations working, and I'm stuck.

Both servers are Window Server 2008 R2 64-bit
FreeSWITCH executable is 32-bit

I've disabled the Windows Firewall

Both only have a single LAN adapter each.

One has 3 ip addresses in different subnets ( 2 are for testing and
can be removed if they are causing a problem ), the other server only
has 1 ip address.

I'm trying to replicate sofia registrations as described here:
http://wiki.freeswitch.org/wiki/Mod_event_multicast#Replicating_Sofia_Registrations

Here's my event_multicast.conf.xml:

<configuration name="event_multicast.conf" description="Multicast Event">
  <settings>
    <param name="address" value="225.1.1.1"/>
    <param name="port" value="4242"/>
    <param name="bindings" value="CUSTOM sofia::register"/>
    <param name="ttl" value="1"/>
  </settings>
</configuration>

and here's what I get in the FreeSWITCH console on either machine:

> load mod_event_multicast
2013-01-03 18:00:24.672251 [INFO] mod_enum.c:775 ENUM Reloaded
2013-01-03 18:00:24.672251 [INFO] switch_time.c:1028 Timezone reloaded 530 defin
itions
2013-01-03 18:00:24.692252 [ERR] mod_event_multicast.c:421 Bind Error

+OK Reloading XML
-ERR [module load file routine returned an error]

2013-01-03 18:00:24.692252 [NOTICE] switch_event.c:450 Subclass reservation mult
icast::event inuse by listeners, detaching..
2013-01-03 18:00:24.692252 [CRIT] switch_loadable_module.c:929 Error Loading mod
ule C:\FreeSWITCH\mod\mod_event_multicast.dll
**Module load routine returned an error**

I think it's likely I must be doing something wrong, but I can't seem
to figure it out. I tried changing the multicast address to something
random like 228.67.53.09, but that didn't help.

If it's a problem with Windows' support of multicasting ( some
googling seems to indicate winsock is weird about multicasting ), I'm
happy to test changes, recompile and submit a patch to Jira, but I
have no experience with multicast sockets, so I wanted to find out if
it works for other people before digging into the code.

-- 
Royce Mitchell
IT Consultant
ITAS Solutions
royce3 at itas-solutions.com



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list