[asterisk-bugs] [JIRA] (ASTERISK-28022) res_pjsip realtime: uri column in ps_contacts table can be too short

Florian Floimair (JIRA) noreply at issues.asterisk.org
Thu Aug 23 06:42:54 CDT 2018


Florian Floimair created ASTERISK-28022:
-------------------------------------------

             Summary: res_pjsip realtime: uri column in ps_contacts table can be too short
                 Key: ASTERISK-28022
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28022
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_pjsip
    Affects Versions: 15.5.0, 13.22.0, 16.0.0
         Environment: Debian 9.5 "stretch"
            Reporter: Florian Floimair


When mobile SIP clients register with Asterisk that use some sort of push notifications, the URI can get quite lengthy due to the additional push-service annotations (things like tokens, pn-type, etc.) contained in it.
The current uri column in ps_contacts is 255 characters, but we have seen instances with Android devices (that have very long tokens) where the resulting URI was actually up to 280 characters long.

As a result, the URI is truncated to the 255 characters allowed and outgoing calls to the endpoint are failing. Also re-registrations of the client do not match the previous contact entry since the comparison cannot result to "equal".

I have prepared an alembic script that extends the uri column to twice the size.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list