[Freeswitch-dev] Need more info on MWI for multi-tenants

Stéphane Alnet stephane at shimaore.net
Thu Aug 28 11:44:21 EDT 2008

>> I did go over the
>> diff between 1.0.1 and SVN and couldn't figure out what change was
>> implemented for MODAPP-126.
> The fix for this was the following patch:
> http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=9287

Mike, thank you very much for that pointer.

After spending more quality time with
actual_sofia_presence_mwi_event_handler() I figured out that my
problem was with the following three lines (251-253 in
sofia_presence.c/SVN trunk):

	if (profile->domain_name && strcasecmp(profile->domain_name, host)) {
		host = profile->domain_name;

I think that overwriting "host" back to that profile's domain isn't
necessary if we got the profile from the call "profile =
sofia_glue_find_profile(host)" (line 244), since the original host was
a valid (sub)domain for that profile (we know this because we were
able to locate the profile based on the host).

I worked around this by not defining a default domain in the sofia
profile; in that case profile->domain_name doesn't exist, the host
part does not get overwritten, and MWI works fine.

More information about the Freeswitch-dev mailing list