Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conference Invitees mit mehr als einer Telefonnummer können "not_public" Konferenzen nicht betreten #331

Open
merin80 opened this issue Sep 26, 2014 · 0 comments

Comments

@merin80
Copy link

merin80 commented Sep 26, 2014

Ein Fehler im Dialplan verhindert das betreten einer Konferenz, wenn der Teilnehmer, den man in die Konferenz eingeladen hat mehr als eine Telefonnummer im Telefonbuch besitzt.
Der Fehler befindet sich in "/opt/GS5/misc/freeswitch/scripts/common/conference.lua"

Dort wird in der Funktion function Conference.find_invitee_by_numbers(self, phone_numbers) die SQL Query falsch zusammengebaut.
Eine funktionierende Query sieht wie folgt aus:

  local sql_query = 'SELECT `a`.* \
    FROM `conference_invitees` `a` \
    JOIN `phone_numbers` `b` ON `b`.`phone_numberable_id` = `a`.`id` \
    WHERE `b`.`phone_numberable_type` = "ConferenceInvitee" \
    AND `a`.`conference_id` = ' .. self.id .. ' \
    AND `b`.`number` IN (\'' .. table.concat(phone_numbers, "','") .. '\') \
    LIMIT 1';

statt

  local sql_query = 'SELECT `a`.* \
    FROM `conference_invitees` `a` \
    JOIN `phone_numbers` `b` ON `b`.`phone_numberable_id` = `a`.`id` \
    WHERE `b`.`phone_numberable_type` = "ConferenceInvitee" \
    AND `a`.`conference_id` = ' .. self.id .. ' \
    AND `b`.`number` IN ("' .. table.concat(phone_numbers, "','") .. '") \
    LIMIT 1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant