[Kamailio-Devel] Implrementing draft-sparks-sip-invfix-03 (default behaviour)
Alex Balashov
abalashov at evaristesys.com
Tue Mar 17 22:43:35 CET 2009
I think the real question is what the adoption status of this draft is,
and whether it will break interop.
Daniel-Constantin Mierla wrote:
>
> On 03/17/2009 11:35 PM, Iñaki Baz Castillo wrote:
>> El Martes, 17 de Marzo de 2009, Daniel-Constantin Mierla escribió:
>>
>>> Hello,
>>>
>>> On 03/17/2009 11:26 PM, Iñaki Baz Castillo wrote:
>>>
>>>> Hi, by default Kamailio routes stateless a response without transaction.
>>>> This behaviour is undesirable according to draft
>>>> draft-sparks-sip-invfix-03.
>>>>
>>>> Please check also this report in which the draft is implemented doing
>>>> a "drop()" in onreply_route if "t_check_trans()" is false:
>>>>
>>>> https://sourceforge.net/tracker/index.php?func=detail&aid=2690374&group_i
>>>> d=139143&atid=743023
>>>>
>>>> I would like a config option to change the default behaviour: a response
>>>> with no transaction is dropped instead of forwarded. Where is the code to
>>>> check? in tm module? sl?
>>>>
>>> in default onreply route you can use t_check_trans() and if returns
>>> false then do drop(). Doesn't work for you?
>>>
>> Yes :)
>> That exactly what I tested in the above URL:
>>
>> https://sourceforge.net/tracker/index.php?func=detail&aid=2690374&group_id=139143&atid=743023
>>
>> But it requires manual configuration. I think the behaviour defined in the
>> draft is good for security and it should be implemented by default in
>> Kamailio (without the need of coding it manually), and of course a config
>> option to enable it (required in order to work as stateless proxy).
>>
>> Don't you agree on it?
>>
> then the place is tm module. You can add a new parameter and drop the
> reply in the function that is handling the replies: reply_received(...)
>
> Cheers,
> Daniel
>
--
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775
More information about the Devel
mailing list