<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
After further checking, it does not seem like the authentication after
the challenge is being sent...<br>
<br>
Are there any other settings I should be aware of other than placing
the file in external and setting register to true?<br>
<br>
Scott<br>
<br>
2008-12-18 13:32:28 [NOTICE] sofia_reg.c:265 sofia_reg_check_gateway()
Registering sip.pennytel.com<br>
nua: nua_handle_bind: entering<br>
nua: nua_register: entering<br>
nua(0x89b08e0): sent signal r_register<br>
nua(0x89b08e0): recv signal r_register<br>
nua: nua_stack_set_params: entering<br>
soa_clone(static::0x8977798, 0x89792f8, 0x89b08e0) called<br>
soa_set_params(static::0x89c52c0, ...) called<br>
soa_set_params(static::0x89c52c0, ...) called<br>
nta_leg_tcreate(0x89c4948)<br>
nua(0x89b08e0): adding register usage<br>
nta: selecting scheme sip<br>
nta: for "sip.pennytel.com" query "_sip._udp.sip.pennytel.com" SRV<br>
nta: for "sip.pennytel.com" query "sip.pennytel.com" A (cached)<br>
nta: sip.pennytel.com. IN A 202.85.243.87<br>
tport_tsend(0x8976740) tpn = udp/202.85.243.87:5060<br>
tport_resolve addrinfo = 202.85.243.87:5060<br>
tport_by_addrinfo(0x8976740): not found by name udp/202.85.243.87:5060<br>
tport_vsend(0x8976740): 646 bytes of 646 to udp/202.85.243.87:5060<br>
tport_vsend returned 646<br>
send 646 bytes to udp/[202.85.243.87]:5060 at 02:32:30.322198:<br>
&nbsp;&nbsp;
------------------------------------------------------------------------<br>
&nbsp;&nbsp; REGISTER <a class="moz-txt-link-freetext" href="sip:sip.pennytel.com;transport=udp">sip:sip.pennytel.com;transport=udp</a> SIP/2.0<br>
&nbsp;&nbsp; Via: SIP/2.0/UDP
203.113.255.140:5080;rport;branch=z9hG4bKt232eUFUNXr2e<br>
&nbsp;&nbsp; Max-Forwards: 70<br>
&nbsp;&nbsp; From:
<a class="moz-txt-link-rfc2396E" href="sip:8xxxxx75@sip.pennytel.com;transport=udp">&lt;sip:8xxxxx75@sip.pennytel.com;transport=udp&gt;</a>;tag=t0Umc83St29ND<br>
&nbsp;&nbsp; To: <a class="moz-txt-link-rfc2396E" href="sip:8xxxxxx75@sip.pennytel.com;transport=udp">&lt;sip:8xxxxxx75@sip.pennytel.com;transport=udp&gt;</a><br>
&nbsp;&nbsp; Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d<br>
&nbsp;&nbsp; CSeq: 108665407 REGISTER<br>
&nbsp;&nbsp; Contact: <a class="moz-txt-link-rfc2396E" href="sip:8xxxxxxx75@203.113.255.140:5080;transport=udp">&lt;sip:8xxxxxxx75@203.113.255.140:5080;transport=udp&gt;</a><br>
&nbsp;&nbsp; Expires: 600<br>
&nbsp;&nbsp; User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10760<br>
&nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO<br>
&nbsp;&nbsp; Supported: timer, precondition, path, replaces<br>
&nbsp;&nbsp; Content-Length: 0<br>
<br>
&nbsp;&nbsp;
------------------------------------------------------------------------<br>
nta: sent REGISTER (108665407) to udp/202.85.243.87:5060<br>
tport_pend(0x8976740): pending 0x89f2d50 for udp/192.168.0.5:5080
(already 0)<br>
nta: timer set to 32000 ms<br>
nta: timer shortened to 500 ms<br>
tport_wakeup_pri(0x8976740): events IN<br>
tport_recv_event(0x8976740)<br>
tport_recv_iovec(0x8976740) msg 0x89eeeb8 from (udp/192.168.0.5:5080)
has 518 bytes, veclen = 1<br>
recv 518 bytes from udp/[202.85.243.87]:5060 at 02:32:30.370072:<br>
&nbsp;&nbsp;
------------------------------------------------------------------------<br>
&nbsp;&nbsp; SIP/2.0 401 Unauthorized<br>
&nbsp;&nbsp; Via: SIP/2.0/UDP
203.113.255.140:5080;rport=5080;branch=z9hG4bKt232eUFUNXr2e<br>
&nbsp;&nbsp; From:
<a class="moz-txt-link-rfc2396E" href="sip:8xxxxx75@sip.pennytel.com;transport=udp">&lt;sip:8xxxxx75@sip.pennytel.com;transport=udp&gt;</a>;tag=t0Umc83St29ND<br>
&nbsp;&nbsp; To:
<a class="moz-txt-link-rfc2396E" href="sip:8xxxxx75@sip.pennytel.com;transport=udp">&lt;sip:8xxxxx75@sip.pennytel.com;transport=udp&gt;</a>;tag=abda4710fbd488d9ce6d01bba5c3e23b-cec7<br>
&nbsp;&nbsp; Call-ID: d25d6f36-ccab-11dd-900f-67e92a02be7d<br>
&nbsp;&nbsp; CSeq: 108665407 REGISTER<br>
&nbsp;&nbsp; WWW-Authenticate: Digest realm="sip.pennytel.com",
nonce="4949b76bf622961d78acb213b5556104938ecd6e"<br>
&nbsp;&nbsp; Server: Sip EXpress router (0.9.6 (i386/freebsd))<br>
&nbsp;&nbsp; Content-Length: 0<br>
<br>
&nbsp;&nbsp;
------------------------------------------------------------------------<br>
tport_deliver(0x8976740): msg 0x89eeeb8 (518 bytes) from
udp/202.85.243.87:5080/sip next=(nil)<br>
nta: received 401 Unauthorized for REGISTER (108665407)<br>
nta: 401 Unauthorized is going to a transaction<br>
nta_outgoing: RTT is 49.89 ms<br>
tport_release(0x8976740): 0x89f2d50 by 0x89a4640 with 0x89eeeb8<br>
nta: timer set next to 4531 ms<br>
nta: timer K fired, terminate REGISTER (108665407)<br>
outgoing_reclaim_all((nil), (nil), 0xb2c6d1e8)<br>
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/2 free<br>
nta: timer not set<br>
2008-12-18 13:32:59 [WARNING] sofia_reg.c:307 sofia_reg_check_gateway()
sip.pennytel.com Failed Registration, setting retry to 60 seconds.<br>
<br>
<br>
Michael Jerris wrote:
<blockquote cite="mid:153EBC09-A97F-4806-9EF7-2FB6DEC46E70@jerris.com"
 type="cite">
  <pre wrap="">We send authentication after we get a challenge because on startup we  
need the nonce from them to build the hash in the Auth header properly.

Mike

On Dec 16, 2008, at 6:03 AM, Scott Ellis wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I have a standard install, and I am trying to get a Pennytel gateway  
to
register.

After looking at Wireshark traces of x-lite registering and FreeSwitch
registering, FreeSwitch is not sending any authentication information
with the registration request. I am obviously missing something here!

I understand for incoming calls you don't want authentication, but for
outgoing it is obviously required.

Is there a flag somewhere that I am supposed to set? The file was  
taken
from the wiki page, and looks like it was previously tested when using
the obsolete outbound directory structure.

The following file is in the conf/sip_profiles/external directory.

&lt;include&gt;
 &lt;gateway name="PennyTel"&gt;
   &lt;param name="username" value="8xxxxxxx"/&gt;
   &lt;param name="password" value="xxxxxxx"/&gt;
   &lt;param name="realm" value="sip.pennytel.com"/&gt;
   &lt;param name="proxy" value="sip.pennytel.com"/&gt;
   &lt;param name="register" value="true"/&gt;
   &lt;param name="expire-seconds" value="60"/&gt;
 &lt;/gateway&gt;
&lt;/include&gt;

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>

  </pre>
</blockquote>
</body>
</html>