<div dir="ltr"><div style>(Sending again, forgot to include the mailing list in recipients earlier)</div><div><br></div>Thanks for your reply.<br><div class="gmail_quote"><div dir="ltr"><div class="im"><div><br></div>On Wed, Apr 24, 2013 at 4:07 AM, Peter Saint-Andre <span dir="ltr"><<a href="mailto:stpeter@stpeter.im" target="_blank">stpeter@stpeter.im</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><br>
On 4/23/13 1:09 AM, Vineet Naik wrote:<br>
> Hello,<br>
><br>
> I am working on an xmpp component (with ejabberd server) that needs<br>
> to send subscription requests to gtalk users.<br>
<br>
</div>You're not building a spambot, are you?<br>
<br>
<a href="http://mail.jabber.org/pipermail/operators/2013-February/001571.html" target="_blank">http://mail.jabber.org/pipermail/operators/2013-February/001571.html</a></blockquote><div><br></div></div><div>I am aware of this. Gtalk subscriptions were not working for a while but now</div>
<div>they work fine. </div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<div><br>
> In the presence stanza I include a nickname as per the xep-0172<br>
> User nickname protocol [1]. But the nickname doesn't appear when<br>
> the gtalk user receives the invitations (in the gmail web client)<br>
> and also when they are accepted. Instead it shows the node part of<br>
> the jid.<br>
><br>
> I understand that this is an extension so google may choose not to<br>
> respect the nickname. But I have myself subscribed to a few bots<br>
> for which the nickname is displayed correctly.<br>
><br>
> Does any one know how to tell google to use the nickname instead of<br>
> the node in the invitations as well as in roster?<br>
<br>
</div>IMHO it's quite possible that the Google Talk service is stripping the<br>
nickname out of the subscription request. It would be helpful to see<br>
XML logs of input and output from your component, ejabberd, and a test<br>
account at Google Talk.<br></blockquote><div><br></div></div><div>Here are the xml stanzas from the ejabberd log. I sent subscription </div><div>request to my own gtalk id from our component. </div><div>(Note that I have replaced the component host with <a href="http://im.domain.com" target="_blank">im.domain.com</a> in </div>
<div>the original stanzas)</div><div><br></div><div>Sent by ejabberd:</div><div><br></div><div><div><presence xmlns="jabber:client"</div><div> type="subscribe"</div>
<div> to="<a href="mailto:naikvin@gmail.com" target="_blank">naikvin@gmail.com</a>"</div><div> from="<a href="mailto:user1@im.domain.com" target="_blank">user1@im.domain.com</a>"</div>
<div> id="Component-2789936364"></div>
<div> <nick xmlns="<a href="http://jabber.org/protocol/nick" target="_blank">http://jabber.org/protocol/nick</a>">Nick of User1</nick></div><div></presence></div></div><div><br></div><div>Received by ejabberd:</div>
<div><br></div><div><div><presence type="subscribed" from="<a href="mailto:naikvin@gmail.com" target="_blank">naikvin@gmail.com</a>" to="<a href="mailto:user1@im.domain.com" target="_blank">user1@im.domain.com</a>"/></div>
<div><presence from="<a href="http://naikvin@gmail.com/gmail.27EC5968" target="_blank">naikvin@gmail.com/gmail.27EC5968</a>" to="<a href="mailto:user1@im.domain.com" target="_blank">user1@im.domain.com</a>"></div>
<div> <status/></div>
<div> <priority>24</priority></div><div> <caps:c node="<a href="http://mail.google.com/xmpp/client/caps" target="_blank">http://mail.google.com/xmpp/client/caps</a>" </div><div> ver="1.1" ext="pmuc-v1 sms-v1 vavinvite-v1" </div>
<div> xmlns:caps="<a href="http://jabber.org/protocol/caps" target="_blank">http://jabber.org/protocol/caps</a>"/></div><div> <x xmlns="vcard-temp:x:update"></div><div> <photo>90bff4bd98d940c31ef8243f834eed9238b00ed2</photo></div>
<div> </x></div><div></presence></div><div><presence type="subscribe" from="<a href="mailto:naikvin@gmail.com" target="_blank">naikvin@gmail.com</a>" to="<a href="mailto:user1@im.domain.com" target="_blank">user1@im.domain.com</a>"/></div>
<div><br></div><div>Regards,</div><div>Vineet</div><div> <br></div></div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Peter<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)<br>
Comment: GPGTools - <a href="http://gpgtools.org" target="_blank">http://gpgtools.org</a><br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQIcBAEBAgAGBQJRdw1DAAoJEOoGpJErxa2pEaAP+gLZhU6U77Aubb7xmiuliLYv<br>
HBbdtHIVHViDD3rZTAShT7izroeXF92e5XUEL3thMY5sLYYWP2AVJpRX1SjgXhfO<br>
dFNuI5swVOF1BfmeKL+Eubfngiute2cZ34pQHaY8OI4izxX//xz8Q44ntNH0dZo4<br>
xADf7lhKuFcsHlB6FvTL27xeIzN7GKJoD+lolW4K7JQ3ZJ8mWkqZmzUaFJBE+HBl<br>
/TskkrWzA8g1VyUWTS2UK0mffiA/3kDBcTS9XX4UugNnVxx6kp1T06rDnJrWRnFz<br>
uWXcv70gTIieVTQjOOokR4zS5C2naGHuyWavwBFzzYtm2rQZssqD/c7D6fI0Ka1h<br>
SADNfWYrOTGh24h0snnymOzjUtThd9kdfntPVj9mgHIAU/o8RKt0wPWVGM3RraeE<br>
lT54S7YFFkTU7humyz1KRxpEjsgPhSTSp8Vlkm6NbaHmXjCwSJkI+Ziv9ncmlfFW<br>
5OH+BkxDMNn3xztIoal5u+st2kyZi1ax8VXyiUSVP/MhmqfYLUhlzmtMAkNGNt4g<br>
/1X6qnvBuLciKsETigV5I8C9spxW5G52JL/gqz37c0mZV6rfPwQAdVEPfIwGCNH9<br>
fq8bVM7J4sok0zsQJKohRSyzR78+FrdGApwRhvDpPh2VNnagunG0bm++K+507EPs<br>
p7EKkcrQ/BTkEK3+2sqf<br>
=3YTJ<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div></div><br>
</div></div>
</div><br><br clear="all"><div><br></div>-- <br>Vineet Naik<br><br>
</div>