[OpenSIPS-Devel] [B2B_ENTITES] - new_server/client.

Olivier Détour chino540off+kamailio at gmail.com
Fri Apr 30 09:51:49 CEST 2010


On Thu, Apr 29, 2010 at 5:21 PM, Anca Vamanu <anca at opensips.org> wrote:
> Olivier Détour wrote:
>> Hi,
>>
>> I would like to understand why param when I want to create a new UAS
>> in my B2B_module has to be str*.
>> Why don't you use a simple void* in struct b2b_dlg to give context to
>> callbacks ??
>> There is something I don't understand with this features ?? (If yes,
>> you have to check if param == NULL in b2b_new_dlg before
>> to copy it line 795: dlg.param = *param;)
>>
>> Regards,
>>
>>
> Hi Olivier ,
>
> Initial the param was void*, then it became str* when I wanted to do db
> storage also ( it is still not completed, but will be soon).
> I do the change that you suggested - indeed it was not safe.
>
> Regards,
>

Thanks you,

Regards,

-- 
Olivier Détour



More information about the Devel mailing list