[sr-dev] contact uri is too long

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 14 12:14:06 CEST 2017



On 14.09.17 12:06, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> if such change to increase the default is to be done, I think it is
>> better to double it, rather that just adding 128 which can be hit soon
>> again.
> OK.
>
>> I haven't checked, but probably the db table column type needs to be
>> changed, iirc, varchar was up to 256 for mysql, but maybe later that
>> limit was lifted.
> Size of contact column in location.xml is &hf_len.  Better to replace
> with a constant.
>
The values are defined inside entities.xml in the same folder. I would
put there contact_len as a new entity defined for 512, because I think
we need to adjust also for other modules that store contact URI, such as
presence or dialog, because they will be hit by same issue.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com




More information about the sr-dev mailing list