Hi Miha,<div><br></div><div>I do exactly what Bogdan said, but using DB connecitons. IF its an Initial INVITE connect to DB and query table load_balancer and see if the source ip of INVITE matches any of the load_balanaced FS servers then I know that its from inside-media-serves to outside. </div>
<div><br></div><div>The next thing is identifying what original destination your FS was trying to send the calls to i.e carrier-ip / uri !</div><div><br></div><div>So in your FS dialplan add a sip header where you store the real destination of the SBC/trunk and once you are in the IF condition where you detect your internal FS servers, strip off that header change the $ru and t-relay the call !!</div>
<div><br></div><div>phone(dial 007@FS )<===> FS (P-Real-DST: CAR.RIE.R.IP & dial 007@OpenSIPS )<====>OpenSIPS(007@CAR.RIE.R.IP)<===> ITSP(007@CAR.RIE.R.IP )</div><div><br></div><div>I hope this is what you wanted.</div>
<div><br></div><div>Regards,</div><div>Sammy</div><div><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 11:49 AM, Miha <span dir="ltr"><<a href="mailto:miha@softnet.si">miha@softnet.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Bogan,<br>
<br>
that is a bit tricky as phones are registering on Opensips server. If I make this that the phones will not register as FSs servers are on different ips than SBC.<br>
<br>
What would you sugget?<br>
<br>
Regards,<br>
Miha<div class="HOEnZb"><div class="h5"><br>
<br>
On 4/2/2012 6:30 PM, Bogdan-Andrei Iancu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Miha,<br>
<br>
Well, in your script, when dealing with the initial requests, just look at the source IP of the INVITEs - if from SBC, do the lb stuff, otherwise route it back to SBC.<br>
if (src_ip==11.22.33.44) {<br>
# do LB<br>
} else {<br>
# send to SBC<br>
}<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/02/2012 09:30 AM, Miha wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
as I am dealing with opensips for the first time I would ask you for a little help.<br>
I have installed and configured opensips that works like load_balancer (<a href="http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS" target="_blank">http://wiki.freeswitch.org/<u></u>wiki/Enterprise_deployment_<u></u>OpenSIPS</a>).<br>
<br>
I tested it and works. Than I have created siptrunk and point it to Opensips. Opensips was balacing the calls to one of the FSs, that I have set in opensips configuration.<br>
<br>
How can I now configure opensips, if the call is made from FS, that opensips will send it to SBC (from where sip trunk is made), so that the calls will be working in both direction?<br>
<br>
<br>
Thanks!<br>
<br>
Miha<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>