<div class="gmail_extra">Hi,</div><div class="gmail_extra">Lots of mixing and confusing stuff - Can you re-explain the topology you are trying to achieve with proper IP addresses and declared sip ext. names. </div><div class="gmail_extra">
<br></div><div class="gmail_extra"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span style>When i call with the phone connected to I-User01, no problems, that's<br></span><span style>work but when i call<br></span><span style>with the second phone (use I-User02) i have a error:</span></blockquote>
<div><br></div><div>Somehow it reminds of the same situation I always face when a peer is declared with the same name as of the dialing one on second server - only Its just not registered there instead registered on server-1. </div>
<div>So when the call comes in from server-1 to server-2 fromuser=olivier which is not registered on server-2 but is declared. Server-2 thinks that this is my valid extension but it is not registered with me and so lets authenticate this one and here it fails and rejects the call. </div>
<div><br></div><div>BR,</div><div>Sammy.</div><br><div class="gmail_quote">On Tue, Apr 24, 2012 at 7:06 PM, Olivier CALVANO <span dir="ltr"><<a href="mailto:o.calvano@gmail.com" target="_blank">o.calvano@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
i have a strange problems on my asterisk server:<br>
<br>
I have two asterisk server.<br>
<br>
On the first, i use realtime with a MySQL Database,<br>
i have two user:<br>
USER01<br>
USER02<br>
exactly the same configuration only username and password has different.<br>
<br>
<br>
On my second server (phone is connected on this server):<br>
<br>
I have in sip.conf:<br>
<br>
register => <a href="http://USER01:1234@172.16.0.11/USER01" target="_blank">USER01:1234@172.16.0.11/USER01</a><br>
register => <a href="http://USER02:5678@172.16.0.11/USER02" target="_blank">USER02:5678@172.16.0.11/USER02</a><br>
<br>
[USER01]<br>
type=friend<br>
username=USER01<br>
secret=1234<br>
host=172.16.0.11<br>
qualify=yes<br>
dtmf=rfc2833<br>
nat=no<br>
canreinvite=no<br>
canredirect=no<br>
dtmfmode=rfc2833<br>
disallow=all<br>
allow=alaw<br>
context=I-User01<br>
musiconhold=default<br>
insecure=port,invite<br>
<br>
[USER02]<br>
type=friend<br>
username=USER02<br>
secret=5678<br>
host=172.16.0.11<br>
qualify=yes<br>
dtmf=rfc2833<br>
nat=no<br>
canreinvite=no<br>
canredirect=no<br>
dtmfmode=rfc2833<br>
disallow=all<br>
allow=alaw<br>
context=I-User01<br>
musiconhold=default<br>
insecure=port,invite<br>
<br>
<br>
i see the registration:<br>
<br>
ipbx*CLI> sip show registry<br>
Host dnsmgr Username Refresh State<br>
Reg.Time<br>
<a href="http://172.16.0.11:5060" target="_blank">172.16.0.11:5060</a> N USER01 105 Registered<br>
Tue, 24 Apr 2012 15:58:58<br>
<a href="http://172.16.0.11:5060" target="_blank">172.16.0.11:5060</a> N USER02 105 Registered<br>
Tue, 24 Apr 2012 15:58:59<br>
<br>
<br>
<br>
<br>
i have one phone connected to the context "I-User01" and another<br>
connected to "I-User02"<br>
<br>
When i call with the phone connected to I-User01, no problems, that's<br>
work but when i call<br>
with the second phone (use I-User02) i have a error:<br>
<br>
<br>
On the first server:<br>
[Apr 24 16:02:12] WARNING[1456]: chan_sip.c:10992 check_auth: username<br>
mismatch, have <USER01>, digest has <USER02><br>
[Apr 24 16:02:12] NOTICE[1456]: chan_sip.c:18096<br>
handle_request_invite: Failed to authenticate device "Olivier"<br>
<<a href="mailto:sip%3A906280@172.16.0.70">sip:906280@172.16.0.70</a>>;tag=as0cd775ab<br>
<br>
<br>
The exten:<br>
<br>
On I-User01: exten => _0XX.,1,Dial(SIP/USER01/${EXTEN:1},90,r)<br>
On I-User02: exten => _0XX.,1,Dial(SIP/USER02/${EXTEN:1},90,r)<br>
<br>
<br>
<br>
i i change on the I-User02:<br>
Dial(SIP/USER02/${EXTEN:1},90,r)<br>
in<br>
Dial(SIP/USER01/${EXTEN:1},90,r)<br>
all call work's.<br>
<br>
<br>
anyone have a idea ? i think's that i have a error but don't see where<br>
<br>
best regards<br>
Olivier<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>