fix sql stmt

This commit is contained in:
Anthony Minessale 2012-02-02 13:54:18 -06:00
parent 8d97aeff69
commit 27221fa4d3
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ static void do_normal_probe(switch_event_t *event)
"from sip_registrations "
"left join sip_dialogs on "
"sip_dialogs.hostname = sip_registration.hostname and sip_dialogs.profile_name = sip_registration.profile_name and ("
"sip_dialogs.hostname = sip_registrations.hostname and sip_dialogs.profile_name = sip_registrations.profile_name and ("
"sip_dialogs.presence_id = sip_registrations.sip_user %q '@' %q sip_registrations.sub_host "
"or (sip_dialogs.sip_from_user = sip_registrations.sip_user "
"and sip_dialogs.sip_from_host = sip_registrations.sip_host)) "