[OpenSIPS-Devel] [B2B] How to create a UAC with TLS

Olivier Détour chino540off+kamailio at gmail.com
Wed May 12 13:22:18 CEST 2010


On Wed, May 12, 2010 at 12:56 PM, Anca Vamanu <anca at opensips.org> wrote:
> Olivier Détour wrote:
>> 2010/5/10 Olivier Détour <chino540off+kamailio at gmail.com>:
>>
>>> Hi,
>>>
>>> I would like to create an UAC with client_new over a TLS connection.
>>> My peer is registered and the TLS tunnel is set up.
>>> But when I create my UAC, and send my first request to my peer, the
>>> sending failed. I saw I have to give a sock_info*
>>> in client_info_t*. But how do I find the right socket_info to send my
>>> request on the right tunnel ?
>>>
>>> Thanks for your replies,
>>> Regards,
>>>
>>>
>>
>> After more investigation, how could I get tcp_connect id to msg_send
>> from my module ?
>> Does it possible or not ?
>>
>> Regards,
>>
>>
> Hi Olivier,
>
> Putting the same RURI as the contact in the Register sent by client does
> not work?
>  From what I know, opensips will search through its tcp connections for
> a match of the contact and use that tunnel.
>
> Regards,
>

I found a dirty solution: get tcp port from REGISTER and inject it in
TO uri in client_new.
It's working,

Thanks you,
Regards,


-- 
Olivier Détour



More information about the Devel mailing list