[SR-Users] kamailio loadbalancer with TLS problem forwarding INVITE back to UA
Klaus Darilion
klaus.mailinglists at pernau.at
Thu Jun 27 12:54:01 CEST 2013
make sure to also use handle_ruri_alias()
http://kamailio.org/docs/modules/4.0.x/modules/nathelper.html#idp16851488
for requests from the proxy->lb->client
see the default kamailio config for proper usage of handle_ruri_alias()
and add_contact_alias()
regards
klaus
On 27.06.2013 02:34, Allen Zhang wrote:
> Hi,
>
> Our set up:
>
> UA1 -----
> ------ Proxy1
>
>
> \
> /
>
> Loadbalancer (dispatcher module)
>
> / \
>
> UA2-----
> ------ Proxy2
>
> Both proxies have registrar module loaded and share the same database.
>
> REGISTERs work fine.
>
> The problem is this:
>
> TLS TCP
>
> UA1 ----------------------> LB --------------------> Proxy
>
> INVITE(to UA2) INVITE(to UA2)
>
> TLS TCP
>
> UA1 <------------- LB <------------- Proxy
>
> 100 Trying
>
> TLS TCP
>
> UA1 <------------- LB <----------------------- Proxy
>
> INVITE(to UA2)
>
> TLS
> TCP
>
> UA1 <----------------------- LB <----------------------- Proxy
>
> 100 Trying
>
> All above worked fine. Below is what’s expected but never happened:
>
> TLS
> TCP
>
> UA2 <----------------------- LB <----------------------- Proxy
>
> INVITE(to UA2)
>
> We’d like the LB to reuse the TLS connection initiated by UA2. But LB
> can’t find an open connection and tries to start a new TLS connection.
> The new connection fails.
>
> UAs are not behind NAT at the moment but will be in the future.
>
> Tried this approaches on LB:
>
> route(ADD_CONTACT_ALIAS);
>
> If (not from proxy)
>
> t_relay();
>
> else
>
> do load balancing
>
> No luck.
>
> Any help is appreciated.
>
> Regards,
>
> Allen
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
More information about the sr-users
mailing list