<div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"> I've encountered one problem I can not solve </span>:(<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"> The situation is following:</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"> we've got Kamailio working together with our own SIP platform. Our platform is </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">about various call processing business logic and billing. All calls from SIP </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">users should pass through our platform. For now we successfully can make and </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">receive calls inside our domain - NAT is handled fine in most cases, instant </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">messages are handled and so on. It looks like that:</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">- Kamailio receives a call from caller</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">- Call is redirected to our platform</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">- Platform redirects call back to Kamailio and it looks for callee.</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"></span> <span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"><br>
</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"></span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"> I've tried to implement that logic. It seems to work in some cases, but I</span> <span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">encounter one problem. Sometimes Kamailio can not forward a call to the platform </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">via rewritehostport(). It tries to forward SIP request, but nothing happens - </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">only retransmission handler is called. I mean, after call to t_relay(), I see this:<br>
<br></span>Oct 27 12:12:35 [16751] DBG:tm:retransmission_handler: retransmission_handler : request resending (t=0xb618de58, INVITE <a href="http://sip:200213@62.117.120.101:5061/" target="_blank">sip:200213@62.117.120.101:5061</a> SIP/2.0...<br>
Oct 27 12:12:35 [16751] DBG:tm:retransmission_handler:
retransmission_handler : request resending (t=0xb618de58, INVITE
<a href="http://sip:200213@62.117.120.101:5061/" target="_blank">sip:200213@62.117.120.101:5061</a> SIP/2.0...<br>Oct 27 12:12:35 [16751] DBG:tm:retransmission_handler:
retransmission_handler : request resending (t=0xb618de58, INVITE
<a href="http://sip:200213@62.117.120.101:5061/" target="_blank">sip:200213@62.117.120.101:5061</a> SIP/2.0...<br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"><br>
SIP requests seem to be correct, and </span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">configuration file works ok from time to time.</span><br>
<br>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.<br><br> I've attached configuration file and debug output. Files were written for and by Opensips, but with Kamailio I encounter the same problem.<br><br> Is this a problem with configuration file or something else?<br>
</div>