[OpenSIPS-Users] Handling of non-SIP messages

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Dec 8 22:48:36 CET 2009


Hi Taner,

OpenSIPS silently discards all UDP packages with a size smaller than 20 
bytes. Whatever is higher will be subject to SIP parser. If you want to 
change the value, see config.h, the MIN_UDP_PACKET define.

Regards,
Bogdan


Taner Sener wrote:
> Hi Iñaki,
>
> I'm using tcpdump to see UDP messages. Using
>
> tcpdump -i eth0 -n -s0 -vvv udp port 5060
>
> i see the following message. A message containing text 'default send 
> string'.
> -----------------------------------------------------------------------------------------------------------------------------
> 14:13:55.973673 IP (tos 0x0, ttl  64, id 52296, offset 0, flags [DF], 
> proto: UDP (17), length: 49) 10.10.7.10.42042 > 10.10.7.7.sip: [udp 
> sum ok] SIP, length: 21
>     default send string
>    
>     0x0000:  6465 6661 756c 7420 7365 6e64 2073 7472
>     0x0010:  696e 670d 0a
>
> the following trace belongs to a SIP OK message sent to opensips:
> -------------------------------------------------------------------------------------------------------------
> 14:18:52.634149 IP (tos 0x0, ttl 128, id 19912, offset 0, flags 
> [none], proto: UDP (17), length: 316) 10.10.7.74.sip > 10.10.7.7.sip: 
> [udp sum ok] SIP, length: 288
>     SIP/2.0 200 OK
>     CSeq: 10 OPTIONS
>     Via: SIP/2.0/UDP 10.10.7.7;branch=z9hG4bK2833.3edc8be2.0
>     From: <sip:proxy at 10.10.7.7 
> <mailto:sip%3Aproxy at 10.10.7.7>>;tag=533cb9e91f4b999cf76861cbb9ed54ed-a029
>     Call-ID: 39210baa-12964 at 127.0.0.1 <mailto:39210baa-12964 at 127.0.0.1>
>     To: sip:user at 10.10.7.74 <mailto:sip%3Auser at 10.10.7.74>
>     Contact: sip:user at 10.10.7.74 <mailto:sip%3Auser at 10.10.7.74>
>     Content-Length: 0
>
>
> Thanks,
> Taner
>
> On Tue, Dec 8, 2009 at 2:08 PM, Iñaki Baz Castillo <ibc at aliax.net 
> <mailto:ibc at aliax.net>> wrote:
>
>     El Martes, 8 de Diciembre de 2009, Taner Sener escribió:
>     > Dec  8 10:49:13 sipproxy /sbin/opensips[12961]:
>     ERROR:core:receive_msg: no
>     >  via found in request
>     >
>     > How can I disable this message from current version 1.6.0-notls.
>
>     Can you show how that request looks when arrives to OpenSIPS?
>
>     --
>     Iñaki Baz Castillo <ibc at aliax.net <mailto:ibc at aliax.net>>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list