tieto / sipe

A third-party Pidgin plugin for Microsoft Lync/OCS - clone of upstream http://repo.or.cz/w/siplcs.git
GNU General Public License v2.0
129 stars 24 forks source link

Report that contact list size limit was reached #92

Open xhaakon opened 8 years ago

xhaakon commented 8 years ago

When adding a contact into a group

SERVICE sip:user@company.com SIP/2.0
Via: SIP/2.0/tls 1.2.3.4:40244;branch=z9hG4bKA07E0FED99231A91FD92
From: <sip:user@company.com>;tag=1015525547;epid=47e9aac378a9
To: <sip:user@company.com>
Max-Forwards: 70
CSeq: 1 SERVICE
User-Agent: Purple/3.0.0devel Sipe/1.21.1 (linux-x86_64; RTC/5.0)
Call-ID: 30F0g9EE2a0E5FiB81CmE8B8tA07Bb6147x55E7x
Contact: <sip:user@company.com;opaque=user:epid:iRJIJal34lqkDX1OxnbirQAA;gruu>
Content-Type: application/SOAP+xml
Content-Length: 381

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/winrtc/2002/11/sip">
  <s:Body>
    <m:setContact>
      <m:displayName>sip:cool.guy@company.com</m:displayName>
      <m:groups>8</m:groups>
      <m:subscribed>true</m:subscribed>
      <m:URI>sip:cool.guy@company.com</m:URI>
      <m:externalURI />
      <m:deltaNum>611</m:deltaNum>
    </m:setContact>
  </s:Body>
</s:Envelope>

server may send the following reply:

SIP/2.0 413 Request entity too large
Call-ID: 30F0g9EE2a0E5FiB81CmE8B8tA07Bb6147x55E7x
CSeq: 1 SERVICE
ms-diagnostics: 2007;reason="Contact limit exceeded";source="sessmwfe2401.ericsson.se"
Content-Type: application/msrtc-fault+xml
Server: RTC/5.0

<Fault>
<Faultcode>Server.Exceeded.Contacts</Faultcode>
</Fault>

It would be helpful for the user if Sipe could show some information popup about the exceeded limit.