[CALL] account names with a specific syntax are silently rejected
Submitted by Eduardo Casais
Some account names with a very specific syntax are silently rejected by Empathy when trying to make a call.
I. NORMAL PROCEDURE
- Launch Empathy.
- In the "chat" menu, select "new call"
- In the field for the contact identifier, input a contact name.
Assuming that we have an account at sip.antisip.com, Empathy autocompletes the address as the user types it in, and renders the buttons "audio call" and "video call" at the bottom of the window as activable. In addition, it adds the completed contact address to a list of contacts, with the icon of a camera to launch a call.
For instance: typing john.smith is autocompleted to email@example.com.
II. ERROR REPRODUCTION
Now, type this address: john.s.smith
As soon as the "m" is typed, the following happens: a) the contact list is cleared; b) both buttons "audio call" and "video call" become inactivable (greyed out).
The problem occurs at least in all cases where the address contains the pattern: (.[a-zA-Z]+)\1
I.e. the problem occurs with john.s.smith, john.ssss.ssssmith, john.silo.silosmith
Notice the peculiarities in the occurrence of the error:
with john.ssilo.ssilosmith, the error occurs immediately when typing the "m"; with john.ssilo.ssilomith, idem; with john.ssilo.ssilossmith, idem; with john.ssilo.ssilossilossilosmith, idem; with john.ssilo.ssilossimith, idem;
with john.ssilo.smith, no error occurs; with john.ssilo.ssilmith, no error occurs.
III. ADDITIONAL CONTEXT
It is possible to have an account whose username corresponds to the aforementioned pattern: there is no problem in opening such an account at a SIP registrar, and Empathy can establish a preliminary connection to it at launch time. In other words, those addresses seem well-formed, but the user interface of Empathy does not handle them gracefully when the time comes to actively call a partner whose address exhibits the troublesome pattern.