Hey Juha,

you need to increase the size for your pvars. You will prob also need to increase the TCP read buffer size. For example,

pv_buffer_size=8192
tcp_rd_buf_size=8192

cheers
Jason


On Mon, Nov 12, 2012 at 2:11 AM, Juha Heinanen <jh@tutpro.com> wrote:
i got the these error messages when my xcap server tried to serve 'GET
xcap-caps' request:

Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: INFO: XCAP service GET <xcap-caps>
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [pvapi.c:1305]: no more space for spec value
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [pvapi.c:1314]: buffer overflow -- increase the buffer size...
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [sr_module.c:1665]: Could not convert the PV-formated string to str
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: xhttp [xhttp_mod.c:461]: unable to get body

config code where this comes is this:

            xlog("L_INFO", "XCAP service $rm <$xcapuri(u=>auid)>\n");
            $var(xbody) =
"<?xml version='1.0' encoding='UTF-8'?>
<xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'>
  <auids>
    <auid>rls-services</auid>
    <auid>pidf-manipulation</auid>
    <auid>xcap-caps</auid>
    <auid>resource-lists</auid>
    <auid>pres-rules</auid>
    <auid>org.openmobilealliance.pres-rules</auid>
    <auid>org.openmobilealliance.user-profile</auid>
    <auid>org.openmobilealliance.pres-content</auid>
    <auid>org.openmobilealliance.search</auid>
    <auid>org.openmobilealliance.xcap-directory</auid>
  </auids>
  <extensions>
  </extensions>
  <namespaces>
    <namespace>urn:ietf:params:xml:ns:rls-services</namespace>
    <namespace>urn:ietf:params:xml:ns:pidf</namespace>
    <namespace>urn:ietf:params:xml:ns:xcap-caps</namespace>
    <namespace>urn:ietf:params:xml:ns:resource-lists</namespace>
    <namespace>urn:ietf:params:xml:ns:pres-rules</namespace>
    <namespace>urn:oma:xml:xdm:user-profile</namespace>
    <namespace>urn:oma:xml:prs:pres-content</namespace>
    <namespace>urn:oma:xml:xdm:search</namespace>
    <namespace>urn:oma:xml:xdm:xcap-directory</namespace>
  </namespaces>
</xcap-caps>";
            xhttp_reply("200", "OK", "application/xcap-caps+xml",
                "$var(xbody)");

i have not checked yet, which buffer should be increased, but would it
be a good idea to make the default bigger?

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Jason Penton
Senior Manager: Applications and Services
Smile Communications
Johannesburg, South Africa
Phone: +27 83 283 7000

This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer