Setup flexisip to lookup phone aliases tied to each account because account manager is setup to not allow phone numbers as users names. When calling softphone to softphone it only works when using the account username and not the true telephone number that is in the gui.
Noticed that tables are not default anymore with flexiapi so I change the sql request to match the tables.
First one was for auth.
soci-password-request=select p.password, p.algorithm from accounts a join passwords p on a.id = p.account_id where a.username = :id and a.domain = :domain
This one worked perfect.
These two do not
soci-user-with-phone-request=select a.login from accounts a join aliases al on a.id = al.account_id where al.alias = :phone
soci-users-with-phones-request=select a.login, a.domain, al.alias as phone from accounts a join aliases al on a.id = al.account_id where al.alias in (:phones)
Setup flexisip to lookup phone aliases tied to each account because account manager is setup to not allow phone numbers as users names. When calling softphone to softphone it only works when using the account username and not the true telephone number that is in the gui. Noticed that tables are not default anymore with flexiapi so I change the sql request to match the tables. First one was for auth. soci-password-request=select p.password, p.algorithm from accounts a join passwords p on a.id = p.account_id where a.username = :id and a.domain = :domain This one worked perfect.
These two do not soci-user-with-phone-request=select a.login from accounts a join aliases al on a.id = al.account_id where al.alias = :phone soci-users-with-phones-request=select a.login, a.domain, al.alias as phone from accounts a join aliases al on a.id = al.account_id where al.alias in (:phones)
Am I doing something wrong ?