<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Sherif,<br>
<br>
I hope I can give you a bit of help as my knowledge of Opensips is
not quite good:)<br>
<br>
First I have configured opensips as is written on FS wiki
(<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS">http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS</a>).
Did you fallow steps? This shoud work and opensips should load
balacing calls to FS box.<br>
<br>
Than I have made like this:<br>
<br>
if (is_method("INVITE")) {<br>
if($rU=~"^[0]+"){<br>
if (!load_balance("1","pstn","1")) {<br>
send_reply("503","Service Unavailable");<br>
exit;<br>
}<br>
}<br>
else{<br>
rewritehostport("xxx.xxx.xxx.xxx:5060");<br>
}<br>
<br>
<br>
}<br>
<br>
<br>
Regards,<br>
Miha<br>
<br>
On 4/17/2012 11:47 AM, Sherif Omran wrote:
<blockquote
cite="mid:1334656056.53998.YahooMailClassic@web110802.mail.gq1.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font: inherit;" valign="top">Hi Miha,<br>
<br>
I have a similar problem and would appreciate if you could
give me a clue.<br>
I ve opensips as sbc and FS but i wonder why calls do not
reach fs box.<br>
<br>
Could you please help me in configuring opensips with
freeswitch as u made it?<br>
<br>
Thank u in advance<br>
<br>
regards,<br>
Sherif<br>
<br>
--- On <b>Tue, 4/17/12, Miha <i><a class="moz-txt-link-rfc2396E" href="mailto:miha@softnet.si"><miha@softnet.si></a></i></b>
wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16,
255); margin-left: 5px; padding-left: 5px;"><br>
From: Miha <a class="moz-txt-link-rfc2396E" href="mailto:miha@softnet.si"><miha@softnet.si></a><br>
Subject: [Freeswitch-users] Freeswitch and Opensips<br>
To: "FreeSWITCH Users Help"
<a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org></a><br>
Date: Tuesday, April 17, 2012, 11:41 AM<br>
<br>
<div id="yiv314603297">
<div> <small>Hi to all,<br>
<br>
I have configured opensips that works like
load_balancer (wiki on FS page).</small> <small><br>
So, we have SBC, trunk is made to Opensips, than
opensips is load_balacing to FSs.<br>
When you call from FS, call is going to Opensips,
then opensips redirect the call to SBC, if call
must go outside.<br>
<br>
My question:</small> <small><br>
<br>
FSs boxes are all the same (same dialplan,
directory configuration, etc.). What happens if
call is made to a user, which is registered on one
of the FS box? I guess I must change dialplan and
set that all trafic FS send to opensips (not
internally), because if someone calls to a local
user, but user is registered on other FS box, FS
will behave as user is not registered.</small> <small><br>
<br>
So, will opensips know which user is registered on
which FS box when opensips will be doing
load_balacing?</small> <small><br>
<br>
Thanks for explenation.</small> <small><br>
<br>
Regards,</small> <small><br>
Miha</small><br>
</div>
</div>
<br>
-----Inline Attachment Follows-----<br>
<br>
<div class="plainMail">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
ymailto="mailto:consulting@freeswitch.org"
href="/mc/compose?to=consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication
Server<br>
<a moz-do-not-send="true"
href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div>
</blockquote>
</td>
</tr>
</tbody>
</table>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>