[OpenSIPS-Users] OPTIONS without Contact header messing with dialog module on OpenSIPS 1.5.3 - Avaya IP Office 6.0 SIP stack

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Aug 18 17:10:43 CEST 2010


Gavin Henry wrote:
> On 18 August 2010 16:00, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
>   
>> Gavin Henry wrote:
>>     
>>> On 18 August 2010 13:47, Gavin Henry <gavin.henry at gmail.com> wrote:
>>>
>>>       
>>>> On 18 August 2010 10:23, Gavin Henry <gavin.henry at gmail.com> wrote:
>>>>
>>>>         
>>>>> I was thinking:
>>>>>
>>>>>   if (is_method("OPTIONS|INFO"))
>>>>>    {
>>>>>        sl_send_reply("501", "Method $rm not implemented");
>>>>>        exit;
>>>>>    };
>>>>>
>>>>>
>>>>>           
>>>> I think I'll add in above. Also, I think I've figured it out. The logs
>>>> show these broken dialog inserts. I've just got a SIP trace of when it
>>>> starts failing and Service Full is being returned. I think as these
>>>> dialogs don't get closed they are sitting as open calls and when we
>>>> hit our LB limit it gets full and a restart clears the tables.
>>>>
>>>> Need to check where the ongoing calls are saved so I can see what
>>>> we're at now. All frpm a broken OPTIONS message!
>>>>
>>>>         
>>> Found it! Every 30 seconds we get this broken SIP OPTIONS message and
>>> sure enough, as our calls get open and closed it's sneeking up the
>>> load. I can see it via:
>>>
>>> opensipsctl fifo lb_list
>>>
>>> Can I block OPTIONS like above?
>>>
>>>       
>> Again, depends on what these OPTIONS are used for.....if they are for
>> checking the call sanity, you should relay it (or answer with 200 OK).
>> If just NAT pings, send back whatever you want.
>>     
>
> It's just NAT/keepalive pings from a customers PBX. This is the trace:
>
> U 2010/08/17 21:50:25.499215 X.X.X.X:19755 ->X.X.X.X:5060
> OPTIONS sip:Unknown at X.X.X.X SIP/2.0.
> Via: SIP/2.0/UDP
> X.X.X.X:19755;rport;branch=z9hG4bK3c0d94b08075ca42c40d383c4883f383.
> From: <sip:Unknown at X.X.X.X>;tag=507f5186d23e3857.
> To: <sip:Unknown at X.X.X.X>.
> Call-ID: df9473e8118b22ba6fa3bc260c3f4967 at X.X.X.X.
> CSeq: 1067441263 OPTIONS.
> Max-Forwards: 70.
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE.
> Supported: timer.
> Content-Length: 0.
>
>
> No Contact header above. I didn't want to just drop and exit on
> OPTIONS, but as I said it's slowly filling up OpenSIPS 1.5.3 lb_list
>   

Seams an ordinary pinging OPTIONS (no dialog state), so you can reply it 
simply in the very beginning of the script.

Regards,
Bogdan


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list