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

2010-05-12 Thread Anca Vamanu
Olivier Détour wrote:
 2010/5/10 Olivier Détour chino540off+kamai...@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,

-- 
Anca Vamanu
www.voice-system.ro


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


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

2010-05-12 Thread Olivier Détour
On Wed, May 12, 2010 at 12:56 PM, Anca Vamanu a...@opensips.org wrote:
 Olivier Détour wrote:
 2010/5/10 Olivier Détour chino540off+kamai...@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

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


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

2010-05-11 Thread Olivier Détour
2010/5/10 Olivier Détour chino540off+kamai...@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,

-- 
Olivier Détour

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


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

2010-05-10 Thread Olivier Détour
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,

-- 
Olivier Détour

___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel