<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Romulo,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Without a little more information this is not so
easy to solve. So let me see if I can go through a couple of scenarios and
see if we can figure out your particular problem.</FONT></DIV>
<DIV><FONT face=Arial size=2>If you have X-Lite behind a NAT router AND you are
not connecting to an * server or your * server is outside of that same NAT
router then your configuration should look like this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV>[2203]</DIV>
<DIV>type=friend</DIV>
<DIV>username=2203</DIV>
<DIV>auth=md5</DIV>
<DIV>secret=1234</DIV>
<DIV>
<DIV>host=dynamic</DIV>
<DIV>nat=yes</DIV></DIV>
<DIV>reinvite=no</DIV>
<DIV>canreinvite=no</DIV>
<DIV>dissallow=all</DIV>
<DIV>allow=gsm</DIV>
<DIV>context=sip</DIV>
<DIV> </DIV>
<DIV>If you are connecting to a * box and it is behind the same NAT router ie on
the same network. You configuration is a workable configuration.</DIV>
<DIV> </DIV>
<DIV>
<DIV>[2203]</DIV>
<DIV>type=friend</DIV>
<DIV>username=2203</DIV>
<DIV>auth=md5</DIV>
<DIV>secret=1234</DIV>
<DIV>
<DIV>host=192.168.10.149 ; my machine that has xlite</DIV></DIV>
<DIV>reinvite=no</DIV>
<DIV>canreinvite=no</DIV>
<DIV>dissallow=all</DIV>
<DIV>allow=gsm</DIV>
<DIV>context=sip</DIV>
<DIV> </DIV>
<DIV>Now here is were it gets a little tricky. If you have your X-Lite and
* behind the same NAT router and you think you can make this work with
externip=???.???.???.??? then good luck. I was not able to get this to
work with any SIP configuration. I tried every possible combination I
could think of at that point with no luck at all. Unless someone else in
this group has been able to make this work then to the best of my knowledge it
will not work.</DIV>
<DIV> </DIV>
<DIV>Now on a completely different side note here. I have done this where
I can get X-Lite or X-Pro either one to connect okay sometimes and not others
(totally random) with success. Sometimes it would auth ok and sometimes it
would fail. No configuration change or anything and nothing I could link
to the issue. During a SIP debug session I would simply get SIP/2.0 401
Unauthorized messages sent to my client. I even went so far as to change
the chan_sip.c to print out the two compared md5 hashes that should have looked
exactly the same and they were not. I would have reported this as a bug
but I could find no one else to have this same issue that I was having. So
my suggestion to you is this. If you think your sip configuration is
correct then temporarily remove your secret with ;secret=1234 or remove the line
altogether then restart your * box and then see if it will log in. If it
does then you know you are having some sort of other problem whether it be the
same authentication issue I was having or something else altogether.</DIV>
<DIV> </DIV>
<DIV>-Robert</DIV>
<DIV> </DIV></DIV>
<DIV> </DIV></FONT></DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=doracknz@yahoo.com.br href="mailto:doracknz@yahoo.com.br">doracknz foi
mais uma</A> </DIV>
<DIV><B>To:</B> <A title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>
</DIV>
<DIV><B>Sent:</B> Tuesday, November 11, 2003 7:09 PM</DIV>
<DIV><B>Subject:</B> [Asterisk-Users] sip: 401 unauthorized with
xlite</DIV></DIV>
<DIV><BR></DIV>
<DIV>Hi there,</DIV>
<DIV> </DIV>
<DIV> I have tried very hard to setup the x-lite with
asterisk, but until now i didn't get sucess. When i start the asterisk in debug
mode, i see the message: sip/2.0 401 unauthorized. I know that
this problem with authentication. I put in my sip.conf as below.</DIV>
<DIV> </DIV>
<DIV>[2203]</DIV>
<DIV> type=friend</DIV>
<DIV> username=2203</DIV>
<DIV> auth=md5</DIV>
<DIV> secret=1234</DIV>
<DIV> reinvite=no</DIV>
<DIV> canreinvite=no</DIV>
<DIV> dissallow=all</DIV>
<DIV> allow=gsm</DIV>
<DIV>context= sip</DIV>
<DIV> host= 192.168.10.149 -> my machine that have xlite</DIV>
<DIV> </DIV>
<DIV> extension.conf</DIV>
<DIV>[sip]</DIV>
<DIV> exten => 2203,1,Dial(${Phone1})</DIV>
<DIV> </DIV>
<DIV>I have read and read many message in list but i could found anyone that
explain in details how to setup this correct. My sip.conf i got from a example
in pdf how to setup x-lite with sip, but this think doesn't work in my
server.</DIV>
<DIV>Please, could someone help me how to do that...</DIV>
<DIV> </DIV>
<DIV>thanks a lot,</DIV>
<DIV> </DIV>
<DIV>Romulo</DIV>
<P><BR>
<HR SIZE=1>
<B><A href="http://br.rd.yahoo.com/s/c/m/?http://mail.yahoo.com.br">Yahoo!
Mail</A></B> - 6MB, anti-spam e antivírus gratuito. <A
href="http://br.rd.yahoo.com/s/c/m/?http://br.yahoo.com/info/mail.html">Crie sua
conta agora!</A></BODY></HTML>