Hi Giovanni,
when I suggested to disable sip.instance, really I meant in the client, since I know that linphone has an option for this.
Anyway the problem is not due to your patch.
If your registrar is behind a proxy, you have to enable the support for the Path header in the registrar module (http://www.kamailio.org/docs/modules/devel/modules/registrar.html#registrar.p.use_path) otherwise Kamailio will try to send the INVITE to the contact address, regardless of tsilo. In fact I guess that with your current configuration even a "direct" INVITE is not working.
Hope this helps.

Regards,

Federico

On Wed, Jul 6, 2016 at 4:21 PM, gmele <giovanni.mele@nagra.com> wrote:
Hello Federico,

yes, we use the sip.instance as it is sent by our softphone. To validate it
is the sip.instance that is causing the error, I patched the tm module to
ignore the sip.instance in the contact info when it is written in the
location table.

In our system, we have a kamailio proxy and a kamailio registrar. It is the
registrar that is doing the push notif and the tsilo store and append.

So, after our dirty patch in the tm module, we found that the tm module is
not sending the branched request to the SIP Proxy but tries to do it
directly (ts_append calls tm::t_append_branches which calls t_send_branch),
thus trying to open a TLS connection directly to the softphone... Of course,
this is not working :-/

Do you have an idea on how to relay the branched request to the proxy
instead of trying to send it directly?

To manage the push notifs, our idea was to do:
1) send the INVITE to the callee
2) store the transaction in tsilo
3) do a push notif to the callee (in case the location info is wrong)
4) wait the callee REGISTER and append the transaction in tsilo (which will
forward the previously received INVITE to the callee)

What do you think about this solution, taking in account we are using a SIP
Proxy behind the SIP Registrar?

Thx

Giovanni






--
View this message in context: http://sip-router.1086192.n5.nabble.com/tsilo-ts-append-problem-tp150184p150212.html
Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users