<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
HI Kevin. <br>
<br>
You have already added the ips to be trusted so all that needs to be
done is the routing it depends how you want to do it but simplest
from opensips-CP is probably the drouting module you can use prefix
match to route to other sip server, <br>
<br>
On sip server 1 you would add a gateway in the dr_gatway table with
the ip of the sip server 2<br>
<br>
and add a rule like the following<br>
<br>
*************************** 1. row ***************************<br>
ruleid: 1<br>
groupid: 1<br>
prefix: 2000<br>
timerec: <br>
priority: 0<br>
routeid: <br>
gwlist: your_sip_server_2<br>
attrs:<br>
<br>
DB Layout:
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/db/db-schema-devel.html#AEN3101">http://www.opensips.org/html/docs/db/db-schema-devel.html#AEN3101</a><br>
Drouting Module:
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/drouting.html">http://www.opensips.org/html/docs/modules/2.1.x/drouting.html</a><br>
<br>
Regards<br>
Trevor Steyn<br>
<br>
<br>
<div class="moz-cite-prefix">On 23/07/2015 20:36, Kevin Kokos wrote:<br>
</div>
<blockquote
cite="mid:CANB3UGT9uydutx8Jz8kJa=6nAOqZ-1ba1RGE5nVOERME0i-xeg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>First of all, i'm a noob in the sip environment, network
and even more in opensips so please excuse my lack of
accuracy/knowledge.</div>
<div>Here is my goal, in a test purpose (yes it can be weird), i
have the following installation:</div>
<div><br>
</div>
<div>SIP client (1000, registered on OpenSips 1) -------
OpenSips 1 (192.168.1.1) ----------- Opensips 2 (192.168.1.2)
-------SIP client (2000, registered on OpenSips 2)</div>
<div><br>
</div>
<div>The goal is for sip_client with account 1000 to be able to
call sip_client with account 2000.It should be easy to do but
i can't manage to configure it.<br>
</div>
<div><br>
</div>
<div>Each OpenSips can be managed by Opensips-cp.<br>
</div>
<div><br>
</div>
<div>From what i read, i saw the following step to do:</div>
<div>-In the IP Auth tab, add the other sip server ip address in
order to be trusted.</div>
<div>=>Both of sip server should be allowed to talk to each
other. Is it enough for linking the two sip servers?</div>
<div>-Make a dialplan. Use a prefix, create a dialplan which
regex for identifying the prefix in the sip uri and add the ip
address of the other sip server.</div>
<div>=>Let's choose 66 prefix for the Opensips 2 area. In
dialing 661000 from sip client 2000, we can have something
like that for the dialplan: matching regex: ^661000[0-9].*
Matching flags 0 Substitution regex (66100[<a class="moz-txt-link-abbreviated" href="mailto:0-9])@.*">0-9])@.*</a>(;.*)
Replacement expression sip:\<a moz-do-not-send="true"
href="mailto:1@192.168.1.1">1@192.168.1.1</a></div>
<div>-Make a dynamic routing. Give the other sip server ip
address and strip the prefix.</div>
<div>In that case: Address: 192.168.1.1 Strip 2 PRI Prefix #66</div>
<div><br>
</div>
<div>Same thing in the opposite way on the other sip server.</div>
<div><br>
</div>
<div>Someone could explain to me where i am wrong and/or maybe
redirect me to a tutorial for dummies (wasn't able to find
anything i understand in googling...maybe lake of good
keyword....) ? Thank you in advance.</div>
<div><br>
</div>
<div>Kevin</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>