can you press f8 to set the FS console to DEBUG and take the same capture.<br><br><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 8:45 PM, Scott Ellis <span dir="ltr">&lt;<a href="mailto:scott.ellis@novatex.com.au">scott.ellis@novatex.com.au</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  
  

<div 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 <a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a><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 &quot;<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>&quot; query &quot;_sip._<a href="http://udp.sip.pennytel.com" target="_blank">udp.sip.pennytel.com</a>&quot; SRV<br>
nta: for &quot;<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>&quot; query &quot;<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>&quot; A (cached)<br>
nta: <a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>. IN A 202.85.243.87<br>
tport_tsend(0x8976740) tpn = udp/<a href="http://202.85.243.87:5060" target="_blank">202.85.243.87:5060</a><br>
tport_resolve addrinfo = <a href="http://202.85.243.87:5060" target="_blank">202.85.243.87:5060</a><br>
tport_by_addrinfo(0x8976740): not found by name udp/<a href="http://202.85.243.87:5060" target="_blank">202.85.243.87:5060</a><br>
tport_vsend(0x8976740): 646 bytes of 646 to udp/<a href="http://202.85.243.87:5060" target="_blank">202.85.243.87:5060</a><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>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>&lt;sip:8xxxxx75@sip.pennytel.com;transport=udp&gt;</a>;tag=t0Umc83St29ND<br>
&nbsp;&nbsp; To: <a>&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>&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/<a href="http://202.85.243.87:5060" target="_blank">202.85.243.87:5060</a><br>
tport_pend(0x8976740): pending 0x89f2d50 for udp/<a href="http://192.168.0.5:5080" target="_blank">192.168.0.5:5080</a>
(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/<a href="http://192.168.0.5:5080" target="_blank">192.168.0.5:5080</a>)
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>&lt;sip:8xxxxx75@sip.pennytel.com;transport=udp&gt;</a>;tag=t0Umc83St29ND<br>
&nbsp;&nbsp; To:
<a>&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=&quot;<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>&quot;,
nonce=&quot;4949b76bf622961d78acb213b5556104938ecd6e&quot;<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/<a href="http://202.85.243.87:5080/sip" target="_blank">202.85.243.87:5080/sip</a> 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()
<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a> Failed Registration, setting retry to 60 seconds.<br>
<br>
<br>
Michael Jerris wrote:
<blockquote type="cite"><div class="Ih2E3d">
  <pre>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>
  </div><blockquote type="cite">
    <pre>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&#39;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=&quot;PennyTel&quot;&gt;
   &lt;param name=&quot;username&quot; value=&quot;8xxxxxxx&quot;/&gt;
   &lt;param name=&quot;password&quot; value=&quot;xxxxxxx&quot;/&gt;
   &lt;param name=&quot;realm&quot; value=&quot;<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>&quot;/&gt;
   &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://sip.pennytel.com" target="_blank">sip.pennytel.com</a>&quot;/&gt;
   &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;
   &lt;param name=&quot;expire-seconds&quot; value=&quot;60&quot;/&gt;
 &lt;/gateway&gt;
&lt;/include&gt;

Thanks.

Scott


_______________________________________________
Freeswitch-users mailing list
<div class="Ih2E3d"><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
    </div></pre>
  </blockquote><div class="Ih2E3d">
  <pre>_______________________________________________
Freeswitch-users mailing list
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>

  </pre>
</div></blockquote>
</div>



<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>