[asterisk-dev] re : maximum length of SIP VIA header

Dennis Yeung otyeung at yahoo.com
Fri Jul 14 19:12:16 MST 2006


Hi all,

I ran into a problem with VIA header using SIP
channel.

I'm building a test bed using SER(SIP Express Router)
and Asterisk, the SIP INVITE message go through a few
SIP proxies before entering Asterisk, therefore the
VIA header is pretty long. 

It seems that when Asterisk receives this SIP INVITE,
and answers "180 RINGING" backwards to the caller, it
has transcated the VIA header with a maximum length of
262 bytes(verified with Ethereal). 
Therefore SER CANNOT route this "180 RINGING" message
correctly to the caller, and the caller is stuck at
"Trying" state and fails to generate a ringing tone. 

Does anyone know what's the max length of SIP VIA
header in Asterisk? Is it 262 bytes?

Which source file defines the size of this field? How
can I increase it?

If you look at RFC3261, there should not be a maximum
limit to the VIA header, and the VIA header can become
very very long if the INVITE message go through a
series SIP proxies, like my example.

Regards,
Dennis

_______________________________________
 YM - 離線訊息
 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
 http://messenger.yahoo.com.hk



More information about the asterisk-dev mailing list