<div>OK, maybe my question was not asked correctly.</div>
<div>&nbsp;</div>
<div>My real problem is that We have in sip.conf SIP users like </div>
<div>[User1], [User2]</div>
<div>&nbsp;</div>
<div>[UserX]<br>type=friend<br>username=UserX</div>
<div>secret=password<br>host=dynamic<br>nat=yes<br>dtmfmode=rfc2833<br>qualify=yes<br>canreinvite=no<br>accountcode=54<br>callerid=&quot;UserX&quot; &lt;NumberX&gt;<br>context=mcc_auto<br>disallow=all<br>allow=alaw<br>allow=g729
<br>&nbsp;</div>
<div>These users &quot;belongs&quot; to a domain called &quot;domain1&quot; ( how to do that, I do not know )</div>
<div>So that Asterisk should request their authentication, when it sees an INVITE with a From <a href="mailto:User1@domain1">User1@domain1</a></div>
<div>&nbsp;</div>
<div>Problem is that I have a proxy, which sends requests with domain2 .... And sometimes, it happens that proxy (Configured as peer, in very insecure) relay calls From <a href="mailto:User1@domain2">User1@domain2</a> ....
</div>
<div>But instead of Letting the call go through ( because of &quot;very insecure&quot;), it stops the call, ans ask for authentication as <a href="mailto:User1@domain1">User1@domain1</a> !</div>
<div>&nbsp;</div>
<div>Look, everywhere I see that SIP Multi-Domain is like e-Mails ... </div>
<div>So for me <a href="mailto:User1@domain1">User1@domain1</a> is different than <a href="mailto:User1@Domain2">User1@Domain2</a> !!!!</div>
<div>&nbsp;</div>
<div>Should I put in sip.conf, the full Username like : <a href="mailto:user1@Domain1">user1@Domain1</a> ???</div>
<div>How to do so that Asterisk ask only authentication when receiving an invite from <a href="mailto:User1@Domain1">User1@Domain1</a> ?</div>
<div>&nbsp;</div>
<div>And believe me, I know Google, and Asterisk Mailing List are your friends :o)</div>
<div>but, I cannot find the info, Maybe I do not use the right keywords ( SIP Multi Domain Authentication )<br>&nbsp;</div>
<div>If somebody can point this to me ....<br>&nbsp;</div>
<div>Thanks a lot !</div>
<div>&nbsp;</div>
<div>JM</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 11/21/06, <b class="gmail_sendername">Eric ManxPower Wieling</b> &lt;<a href="mailto:eric@fnords.org">eric@fnords.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Jean-Marc Salsa wrote:<br>&gt; Question is quite easy:<br>&gt;<br>&gt; How am I supposed to configure Asteirsk to have the same extension, in 2
<br>&gt; differents domains.<br>&gt;<br>&gt; In the general section of sip.conf, I add the domains,<br>&gt; But how to say to Asterisk :<br>&gt; user1@domain1 &gt; Pasword1<br>&gt; user2@domain2 &gt; Pasword2<br><br>Short answer: You can't.
<br><br>Long answer: An extension is NOT the same as a SIP device.&nbsp;&nbsp;An extension<br>is a way to map a number to specific device(s).&nbsp;&nbsp;We use the MAC of the<br>device as the SIP user ID.<br><br>This has been talked about many times.&nbsp;&nbsp;See the mailing list archives.
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>