mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
mod_sofia: Override the MWI User@Domain used per user/group/domain (MODENDP-241)
To use this, set a PARAM named MWI-Account with the user@domain you want to monitor the MWI in the user directory. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14987 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -345,11 +345,11 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event)
|
||||
|
||||
if (for_everyone) {
|
||||
sql = switch_mprintf("select sip_user,sip_host,contact,profile_name,network_ip,'%q' "
|
||||
"from sip_registrations where sip_user='%q' and sip_host='%q'",
|
||||
"from sip_registrations where mwi_user='%q' and mwi_host='%q'",
|
||||
stream.data, user, host);
|
||||
} else if (call_id) {
|
||||
sql = switch_mprintf("select sip_user,sip_host,contact,profile_name,network_ip,'%q' "
|
||||
"from sip_registrations where sip_user='%q' and sip_host='%q' and call_id='%q'",
|
||||
"from sip_registrations where mwi_user='%q' and mwi_host='%q' and call_id='%q'",
|
||||
stream.data, user, host, call_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user