<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Sasmita,<br>
<br>
You cannot use multiple global advertised_address - it can have
only one value; multiple definitions will simply rewrite the
previous ones.<br>
<br>
If you want to keep the same file, maybe you should consider using
some defines in combination with text pre-processing. Like have
your common/shared opensips.m4 file and for each server keep a
local.m4 where the domain macro is defined. And before starting
opensips, simply do "m4 local.m4 opensips.m4 > opensips.cfg"<br>
<br>
Also, what you can do is to use the advertised option in a per
interface manner:<br>
<br>
listen=</tt><tt><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px">udp:1.2.3.4:5507
as test1.i3clogic.com<br>
<br>
see:<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc65">http://www.opensips.org/Documentation/Script-CoreParameters-2-2#toc65</a><br>
<br>
put in the same file the listeners from multiple servers, and
set on your boxes the option to allow binding to non-existing
IPs. This is ugly, but it may do the trick.<br>
<br>
</span>Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 22.11.2016 09:08, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q44x1PM+JyTugdtHyeN5Hn8VHovE2zOc++pNAjea1AgCiw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi ,
<div><br>
</div>
<div> Thanks for your reply . I got your point . </div>
<div><br>
</div>
<div> Actually , I have to place my opensips cfg file in a
file system . and wanted to access that file in different
machines . In short I wanted to maintain a single file for all
the servers . </div>
<div><br>
</div>
<div> In my case both the domains are mapped to different
machine having their own public and private IP. It wont work
for me in this case . Its giving error while starting opensips
, its not able to bind the address . This is not the right
way to do so .</div>
<div><br>
</div>
<div> So , I wanted to combine two different file in a
single file . How I will do this ? Can I add two different "<span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px">advertised_address"
?</span></div>
<div><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px"><br>
</span></div>
<div><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px">listen=udp:eth0:5507</span></div>
<div><span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;background-color:rgb(249,249,249)">advertised_address=<a
moz-do-not-send="true" href="http://test1.i3clogic.com">test1.i3clogic.com</a></span><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px"><br>
</span></div>
<div><span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;background-color:rgb(249,249,249)">advertised_address=<a
moz-do-not-send="true" href="http://test2.i3clogic.com">test2.i3clogic.com</a></span><span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;background-color:rgb(249,249,249)"><br>
</span></div>
<div><span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;background-color:rgb(249,249,249)">advertised_port=5507</span></div>
<div><span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;background-color:rgb(249,249,249)"><br>
</span></div>
<div><span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;background-color:rgb(249,249,249)">
Can I do like this . I have tried to run like this but its
not working . Its always publishing the second address "</span><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px"><a
moz-do-not-send="true" href="http://test2.i3clogic.com">test2.i3clogic.com</a></span><span
style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px">"
in record_route .</span></div>
<div> </div>
<div> What I am trying to do is possible or not ?</div>
<div><br>
</div>
<div> </div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Mon, Nov 21, 2016 at 6:03 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Sasmita,<br>
<br>
The URI in RR header is dictated by the interfaces /
listeners involved in routing the call. <br>
<br>
In your case, on which interface is the call received ?
on .xxx or .xyy ?<br>
<br>
Regards,<br>
</tt>
<pre class="m_-1418621105720006890moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-1418621105720006890moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre><div><div class="h5">
<div class="m_-1418621105720006890moz-cite-prefix">On 21.11.2016 13:26, Sasmita Panda
wrote:
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi All ,
<div>
</div>
<div> I am using opensips-1.11 . I need to configure
multiple domains in the listen field and I want the particular
domain get exposed to outside depending upon the request .</div>
<div>
</div>
<div>
</div>
<div>bellow is my config file .</div>
<div>
</div>
<div>listen=10.165.yy.xxx:5507 AS <a moz-do-not-send="true" href="http://test1.i3clogic.com:5507" target="_blank">test1.i3clogic.com:5507</a></div>
<div>
</div>
<div>listen=10.165.yy.xyy:5507 AS <a moz-do-not-send="true" href="http://test2.i3clogic.com:5507" target="_blank">test2.i3clogic.com:5507</a></div>
<div>
</div>
<div>alias="<a moz-do-not-send="true" href="http://test1.i3clogic.com" target="_blank">test1.i3clogic.com</a>"</div>
<div>alias="<a moz-do-not-send="true" href="http://test1.i3clogic.com:5507" target="_blank">test1.i3clogic.com:5507</a><wbr>"</div>
<div>
</div>
<div>alias="<a moz-do-not-send="true" href="http://test2.i3clogic.com" target="_blank">test2.i3clogic.com</a>"</div>
<div>alias="<a moz-do-not-send="true" href="http://test2.i3clogic.com:5507" target="_blank">test2.i3clogic.com:5507</a><wbr>"</div>
<div> </div>
<div>
</div>
<div> So what I want is , When an Invite comes with request
uri "<a moz-do-not-send="true" href="http://test2.i3clogic.com" target="_blank">test2.i3clogic.com</a>" ,
then it should add the same domain in the Record_route while
forwarding the call . </div>
<div>
</div>
<div> But now its adding "<a moz-do-not-send="true" href="http://test1.i3clogic.com" target="_blank">test1.i3clogic.com</a>"
domain always . I think it giving priority to the listen
domain added first . </div>
<div>
</div>
<div> How can i achieve my goal . Is this possible or not .
If possible then how can I do this .</div>
<div> </div>
<div>
</div>
<div>
<div>
<div class="m_-1418621105720006890gmail_signature">
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<fieldset class="m_-1418621105720006890mimeAttachmentHeader"></fieldset>
</div></div><pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-1418621105720006890moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-1418621105720006890moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote></div>
</div>
</blockquote>
</body></html>