Hello,
Im trying to add a contact using 1.18.x and Adium 1.5.9. The contact name is added with sip appended to the name. It should have a : between the sip and contact address. sip:my.name@company.com
Because of this, the contact is not added correctly.
Im adding the requested debug log
In the debug log, I tried manually adding the contact sipsudarshans@in.megatrends.com
And while adding I did mention it as sip:sudarshans@in.megatrends.com
But it got added without the ':' as - 'sipsudarshans@in.megatrends.com' and hence I was not successful in communicating with that contact.
Please check.
Thanks
The debug log shows that the URIs on the contact list delivered by your OCS server are already broken:
i.e. at some point in the past they got added with the wrong URI to your contact list.
This is not a bug in SIPE. Please delete those entries and re-add them.
Closing as INVALID
Couple of questions
As they are invalid URIs, they will always be offline. So enable the "Show offline buddies" (or whatever this is called in Adium) and then delete the offending entries
Those entries where not added by SIPE. SIPE checks the URI received in an "add buddy" request:
sip:
, then it does not prepend anything,sip:
it prependssip:
For the details see
sipe_purple_add_buddy()
,sip_uri_if_valid()
andsipe_core_buddy_add()
Your log shows:
Ergo you entered
sipsudar...@XXXXX
which is of course incorrect.Last edit: Stefan Becker 2014-04-16
I followed your steps and when I manually entered without the sip:, then you automatically add the SIP: and it works correctly.
However, there is a mistake in the plugin still. If I add
sip:sudharshan..@xxxx
You have mentioned that if it starts with sip:, then it doesnt prepend anything. That is incorrect. I did add as "sip:sud...@xxx", but the plugin added it as
"sip:sipsudhar...@xxx"
So the bug in the plugin seems to be, it ignores the ':' if I add it manually and then it prepends the "sip:" anyway.
Can you please fix that.
If your debug log is for the case you entered "sip:sud..." then there is a bug in Adium that filters ":" from the string:
The last line is the first SIPE code line executed and it receives already an incorrect string.
Thanks. I have now submitted the bug to Adium
http://forums.cocoaforge.com/viewtopic.php?f=13&t=26514
IMHO the only way to get this fixed is to file a real bug report against Adium. I doubt that the developers will react to forum entries.
Ah, Got it. Now filed the bug in their trac
https://trac.adium.im/ticket/16739
Please see response from Adium
https://trac.adium.im/ticket/16739
"This is clearly not a bug in Adium but in the SIPE plugin. ESSIPEService.m#l85 shows that the SIPE plugin does not consider ":" a legal character, so Adium strips it. It should add ":" to its -allowedCharacters.
So please contact that author of the plugin, and get him/her to look at it. :)"
It is really not clear if it is your bug or theirs...
Looks like the original Adium integration author copy & pasted that code straight from another plugin without updating it. According to the git history it hasn't been touched since then.
I have updated the string in git commit 38b355b. I don't have access to a Mac at the moment, so you'll have to compile the code yourself to verify if the problem is solved.
Closing as FIXED.