I ran into a similar problem with multi-domain and sort of got it working by just depending on SIP-Header, like when Asterisk sends INVITE back to OpenSIPS you need to add a specific header which has a real domain e.g <a href="http://company1.opensips.com">company1.opensips.com</a> and on OpenSIPS you have to deal specially with requests coming FROM-ASTERISK and just check that header instead of from-domain. Hope it helps.<div>
<br></div><div>Overriding fromdomain in Asterisk is a good idea if you do not have version dependencies.<br><div><br></div><div><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 11:41 AM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>28 feb 2013 kl. 17:08 skrev Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>:</div>
<div><br><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
<tt>Well, do not know much on Asterisk, so cannot comment :). What I
wanted to point out is that we have the option to do it on
opensips in an easy way -> this will make quite irrelevant what
Asterisk can do.<br></tt></div></blockquote></div>In new versions of asterisk there's a FROMDOMAIN channel variable you can set to define the domain.</div><div><br></div><div>Check the wiki for predefined channel variables, as someone removed documentation from the source code distribution.</div>
<span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">/O</font></span><div><div><br><blockquote type="cite"><div bgcolor="#ffffff" text="#000000">
<tt>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com</a></pre>
<br>
On 02/28/2013 05:56 PM, Duane Larson wrote:
<blockquote type="cite">I kind of figured this but just wanted to check since
that post about Asterisk and the From Header was from back in
2007.
<div><br>
</div>
<div>Thanks<br>
<br>
<div class="gmail_quote">On Thu, Feb 28, 2013 at 7:08 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"> <tt>Hi Duane,<br>
<br>
I guess this leaves you with no alternatives rather than
changing the domain on opensips - it is not something
complex to do and you can use the dialog support for
that to avoid any dependency from the end-point devices
.<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div> <br>
On 02/28/2013 04:50 AM, Duane Larson wrote: </div>
</div>
<blockquote type="cite">
<div>
<div>
<div>I wanted to see if I could get this answered on
the OpenSIPS mailing list even though this kind of
has to do with how Asterisk works. I am hoping
someone has run into this and figured a way to
resolve the issue.</div>
<div><br>
</div>
<div>I have OpenSIPS set up to be a proxy for a
cluster of Asterisk servers. When a call comes
into OpenSIPS it relays it to an Asterisk server,
Asterisk handles the call based on what is in the
dialplan and will always send a new INVITE back to
OpenSIPS and then OpenSIPS sends the INVITE to the
callee.</div>
<div><br>
</div>
<div>This works fine but the new INVITE that
Asterisk generates changes the domain in the FROM
header to be the IP address of the Asterisk
server. I want to make it so that Asterisk
doesn't change the From domain or else my only
other option is for OpenSIPS to rewrite the From
domain and change it back to what it should be. I
found the following post from back in 2007 but I
am not sure if anything has been changed within
Asterisk</div>
<div><br>
</div>
<a href="https://issues.asterisk.org/jira/browse/ASTERISK-10836" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-10836</a><br clear="all">
<div><br>
</div>
<div>I can't really change the fromdomain in my
sip.conf file on the Asterisk servers because the
Asterisk servers are a multitenant/multidomain.</div>
<div><br>
</div>
<div>Any thoughts on this?</div>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
--<br>
*--*--*--*--*--*<br>
Duane<br>
*--*--*--*--*--*<br>
--
</div>
</blockquote>
</div>
_______________________________________________<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-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div><br></div><br>_______________________________________________<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-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'times new roman', serif">Regards</font><div><font face="'times new roman', serif"><br></font><div><pre cols="72"><font face="'times new roman', serif">**************************
Muhammad Salman
***************************</font>
</pre></div></div>
</div></div>