[Kamailio-Users] 513 Message too big

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 9 12:13:23 CEST 2009



On 04/09/2009 01:07 PM, Joao Gomes Pereira wrote:
>
> Daniel-Constantin Mierla wrote:
>   
>> On 04/09/2009 12:55 PM, Joao Gomes Pereira wrote:
>>     
>>> Hello to all
>>> I have Asterisk forwarding calls through Kamailio.
>>>
>>> If calls are placed by an Asterisk extension (like X-Lite) everything 
>>> works fine.
>>> ( ex:   X-Lite -> Asterisk -> Kamailio )
>>>
>>>
>>> If calls are placed through a Cisco Router (connected to Asterisk) 
>>> Kamailio answers:
>>> "513 Message too big"
>>> ( ex: Cisco VoIP client -> Cisco Router -> Asterisk -> Kamailio   )
>>>
>>> Also, the destination phone rings, but the calling party is 
>>> disconnected because of this 513 message.
>>>
>>> This message if probably being originated here: 
>>>         if (msg:len >=  2048 ) {
>>>                 sl_send_reply("513", "Message too big");
>>>                 exit;
>>>         };
>>>
>>> What could be the problem?
>>> Is the problem in Kamailio configuration or Asterisk configuration?
>>> And why does the call works when placed by an Asterisk extension, but 
>>> doesn't work when placed by an Asterisk connected equipment?
>>>   
>>>       
>> Probably there are more headers or bigger, just replace the condition 
>> with something more convenient:
>>
>>        if (msg:len >=  8192 ) {
>>
>>
>> Cheers,
>> Daniel
>>
>>     
>
> I was afraid that increasing the message length could cause some 
> problems....  isn't it bad to have a big value like 8192?
>   
not at all. Internal buffer size is much more and if that is exceeded 
the config is not executed. The condition is just to prevent malicious 
users that could send bloat to fill the pipe. So average of a 2k per sip 
message was common so far, but now with presence xml body, more and more 
headers, that could be low.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the Users mailing list