I've encountered one problem I can not solve :( The situation is following: we've got Kamailio working together with our own SIP platform. Our platform is about various call processing business logic and billing. All calls from SIP users should pass through our platform. For now we successfully can make and receive calls inside our domain - NAT is handled fine in most cases, instant messages are handled and so on. It looks like that:
- Kamailio receives a call from caller
- Call is redirected to our platform
- Platform redirects call back to Kamailio and it looks for callee.

  I've tried to implement that logic. It seems to work in some cases, but I encounter one problem. Sometimes Kamailio can not forward a call to the platform via rewritehostport(). It tries to forward SIP request, but nothing happens - only retransmission handler is called. I mean, after call to t_relay(), I see this:

Oct 27 12:12:35 [16751] DBG:tm:retransmission_handler: retransmission_handler : request resending (t=0xb618de58, INVITE sip:200213@62.117.120.101:5061 SIP/2.0...
Oct 27 12:12:35 [16751] DBG:tm:retransmission_handler: retransmission_handler : request resending (t=0xb618de58, INVITE sip:200213@62.117.120.101:5061 SIP/2.0...
Oct 27 12:12:35 [16751] DBG:tm:retransmission_handler: retransmission_handler : request resending (t=0xb618de58, INVITE sip:200213@62.117.120.101:5061 SIP/2.0...

SIP requests seem to be correct, and
configuration file works ok from time to time.

The problem I've described happens when Kamailio receives a call from another domain (for example, from sipbroker). Inside our domain everything works fine and INVITE passes to our platform correctly.

  I've attached configuration file and debug output. Files were written for and by Opensips, but with Kamailio I encounter the same problem.

  Is this a problem with configuration file or something else?