[Spce-user] Prosody sipwise vcard module no allowing to set vcard
Joel S. | VOZELIA
joel at vozelia.com
Fri Sep 5 05:59:15 EDT 2014
As you said, we don't use that functionality, we will use stock vcard module then :)
Thank you very much Andreas!
Best regards,
Joel.
----- Mensaje original -----
> De: "Andreas Granig" <agranig at sipwise.com>
> Para: spce-user at lists.sipwise.com
> Enviados: Viernes, 5 de Septiembre 2014 11:41:59
> Asunto: Re: [Spce-user] Prosody sipwise vcard module no allowing to set vcard
>
> Hi Joel,
>
> We just opened an internal ticket to extend the sipwise vcard
> implementation :) However, we will still not allow writes to it, it's
> more like to return phone numbers etc too, so probably not what you want.
>
> The sipwise_vcard_cusax module can be disabled in favour of the stock
> vcard module without issues, it's just some internal functionality for
> interoperating more seamlessly with Jitsi in cusax mode (something you
> probably don't use either).
>
> Andreas
>
> On 09/05/2014 11:26 AM, Joel S. | VOZELIA wrote:
> > Hi,
> >
> > We are trying to set vcard, I have enabled debug in prosody settings and we
> > see:
> >
> > Sep 04 18:45:05 sip.zeroapp.com:sipwise_vcard_cusax debug reject setting
> > vcard
> > Sep 04 19:01:03 sip.zeroapp.com:sipwise_vcard_cusax debug reject setting
> > vcard
> >
> > If I enable "vcard" module and disable "sipwise_vcard_cusax" module, then
> > setting the vcard works, but for sure Im breaking something else...
> >
> > On the other hand, I thought of patching sipwise_vcard_cusax module to
> > allow setting vcard:
> >
> >
> >
> > mod_sipwise_vcard_cusax:
> >
> > if stanza.attr.type == "get" then
> >
> > [...code...]
> >
> > ---> else
> > module:log("debug", "reject setting vcard");
> > session.send(st.error_reply(stanza, "auth", "forbidden"));
> > ---> end
> >
> >
> > mod_vcard:
> >
> > if stanza.attr.type == "get" then
> >
> > [...code...]
> >
> > ---> else
> > if not to then
> > if vcards:set(session.username,
> > st.preserialize(stanza.tags[1])) then
> > session.send(st.reply(stanza));
> > else
> > -- TODO unable to write file, file may be
> > locked, etc, what's the correct error?
> > session.send(st.error_reply(stanza, "wait",
> > "internal-server-error"));
> > end
> > else
> > session.send(st.error_reply(stanza, "auth",
> > "forbidden"));
> > end
> > ---> end
> >
> >
> >
> > Is it a problem if I patch "mod_sipwise_vcard_cusax" to allow setting vcard
> > or is it just better to disable mod_sipwise_vcard_cusax and enable
> > mod_vcard?
> >
> >
> > Thanks in advanced.
> >
> >
> > Best regards,
> > Joel.
> > _______________________________________________
> > Spce-user mailing list
> > Spce-user at lists.sipwise.com
> > https://lists.sipwise.com/listinfo/spce-user
> >
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
>
More information about the Spce-user
mailing list