<div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">Hello.</span><br><br><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><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">encounter one problem. Sometimes Opensips can not forward a call to the platform</span><br><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><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">only retransmission handler is called. SIP requests seem to be correct, and</span><br><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><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"> I've attached configuration file and debug output. Can you tell me,</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">please, is something really bad in configuration file or SIP requests, or the</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">problem may hide on the platform's side?</span><br><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> Hello Alexander,</span><br>
<br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> For the initial request (like INVITE), you can set a simple logic on</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> opensips:</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> 1) if does not come from platform -> forward to the platform</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> 2) if does come from platform -> route based on RURI (this will</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> cover the foreign domains also)</span><br><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> For sequential requests (ACK, BYE, etc), you should follow the</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> loose_route() - nothing special to do; but take care and do</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> record_route() for the initial requests...</span><br>
<br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> Regards,</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> Bogdan</span><br>
<br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">> Alexander wrote:</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> Hello all!</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>></span><br><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><img src=".%5CDefault%5Csad.gif"><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;"> The situation is following:</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> we've got Opensips working together with our own SIP platform. Our platform is</span><br>
<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><br><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><br>
<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><br><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;">>> - Opensips 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 Opensips and Opensips looks for callee.</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>></span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> This works fine when both caller and callee are inside our domain. But when</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> callee is in another domain, I can't make Opensips pass the call through our</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> platform correctly. Caller and callee can't see each other's ACKs and so on, if</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> I use rewritehostport() or something. But if I bypass our platform (!uri ==</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> myself) - everything is fine.</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>></span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> What I need (in addition to written above):</span><br>
<span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> - Opensips receives a call to another domain ('!uri == myself' branch)</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> - This 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 this call back to Opensips and Opensips starts to call</span><br><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); background-color: transparent;">>> to outside domain.</span><br>
</div>