[OpenSIPS-Users] [OpenSIPS-Devel] [RFD] Unified way of sending SIP replies from modules
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Oct 9 15:38:11 CEST 2008
Hi Dan,
It is not an error (there is no error reported), but is inconsistent -
something like buying a car and then taking the bike :)....
If we get into details, there are some RFC violation with this: any
following retransmission will be absorbed by t_newtran, but no reply
will be retransmited (as RFC says), because the transaction is not aware
of the reply you sent via sl_send_reply...
Regards,
Bogdan
Dan Pascu wrote:
>
> Calling t_newtran() followed by sl_send_reply() shouldn't even be an
> error. If a transaction is created and not used, it should be
> automatically discarded and no error should be reported.
>
> Bogdan-Andrei Iancu wrote:
>> Hi Phil,
>>
>> Yes, this is a good point - the function will be available also both
>> from script and code.
>>
>> Thanks,
>> Bogdan
>>
>> Phil Vandry wrote:
>>
>>> On Tue, Oct 07, 2008 at 07:51:40PM +0300, Bogdan-Andrei Iancu wrote:
>>>
>>>> The solution will be to have a new module that comes as a wrapper
>>>> over tm and sl modules and offers one function to be called by the
>>>> modules that want to send a reply. To solve the problem above, the
>>>> module will
>>> Hi Bogdan,
>>>
>>> I think it is a good idea. Furthermore, the new "reply" function should
>>> be callable directly from the script and should become the recommended
>>> way to send replies directly from the script. Doing so will help avoid
>>> errors in the script such as t_newtran() followed by sl_send_reply().
>>>
>>> -Phil
>>>
>>>
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>>
>
>
More information about the Users
mailing list