See what they said in the challenge?<br><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
WWW-Authenticate: Digest<span> </span><br>realm="SipLocal",nonce="3e952db60fb8",stale=false,algorithm=MD5,qop="auth"<br><br>Since this is a spontaneous challenge (which i think is somewhat silly since it lets you talk on the phone for 40<br>
minutes then makes you authenticate to hangup but *shrug*) FS does not know which gateway to use for credentials.<br><br></span>The realm they sent was SipLocal so FS is looking in its configuration for a gateway with that name.<br>
The 2nd thing it tries is the host from the To: header (<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"></span><a>64.115.128.6). if there was a gateway with either of those names,<br>
it would find it.<br></a><br>So try naming your gateway SipLocal or <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"></span><a>64.115.128.6 </a><br>
or you can try setting the variable sip_use_gateway=<whatever> on the channel which can give it a hint which <br>gateway to use.<br><br><br><br><div class="gmail_quote">On Thu, Oct 30, 2008 at 8:42 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></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 style="">They really shouldn't be challenging the bye like that because not every device can answer the challenge properly. Either case it doesn't matter if you have a proper domain <a href="http://206.57.23.143" target="_blank">206.57.23.143</a> in your user directory with the proper user and realm set to meet this challenge. We have a setting in FreeSWITCH to auth all packets and when we did that we found out that some devices just do not work properly when doing that. I need to see your original gateway XML. You can email it off list if you like and let me try to solve this.<div>
<br></div><font color="#888888"><div>/b</div></font><div><div></div><div class="Wj3C7c"><div><br><div><div>On Oct 30, 2008, at 7:52 PM, Wellie Chao wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">Here is the BYE from Freeswitch to Metaswitch:<br>
<br>send 683 bytes to udp/[<a href="http://64.115.128.6" target="_blank">64.115.128.6</a>]:5060 at 00:44:46.607025:<br><br>------------------------------------------------------------------------<br> BYE<span> </span><a>sip:9172388084@64.115.128.6:5060;transport=udp</a><span> </span>SIP/2.0<br>
Via: SIP/2.0/UDP <a href="http://216.57.23.143" target="_blank">216.57.23.143</a>;rport;branch=z9hG4bKNa693jZ8SD54D<br> Max-Forwards: 70<br> From: <<a>sip:2675379325@216.57.23.143</a>>;tag=r4yBmtX3U0Hrr<br> To:<span> </span><br>
<<a>sip:9172388084@64.115.128.6:5060;transport=udp</a>>;tag=Broadview1+1+25f76f+cc3ba534<br> Call-ID: CEB9027F@Broadview1<br> CSeq: 106588607 BYE<br> Contact: <<a>sip:mod_sofia@216.57.23.143:5060;transport=udp</a>><br>
User-Agent: FreeSWITCH-mod_sofia/1.0.1-9171<br> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,<span> </span><br>NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br> Supported: 100rel, timer, precondition, path, replaces<br>
Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br> Content-Length: 0<br><br><br>------------------------------------------------------------------------<br><br>Metaswitch is not so happy with the BYE message:<br>
<br>recv 491 bytes from udp/[<a href="http://64.115.128.6" target="_blank">64.115.128.6</a>]:5060 at 00:44:46.630445:<br><br>------------------------------------------------------------------------<br> SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP<span> </span><br><a href="http://216.57.23.143" target="_blank">216.57.23.143</a>;received=<a href="http://216.57.23.143" target="_blank">216.57.23.143</a>;branch=z9hG4bKNa693jZ8SD54D;rport=5060<br> From: <<a>sip:2675379325@216.57.23.143</a>>;tag=r4yBmtX3U0Hrr<br>
To:<span> </span><br><<a>sip:9172388084@64.115.128.6:5060;transport=udp</a>>;tag=Broadview1+1+25f76f+cc3ba534<br> Call-ID: CEB9027F@Broadview1<br> CSeq: 106588607 BYE<br> WWW-Authenticate: Digest<span> </span><br>
realm="SipLocal",nonce="3e952db60fb8",stale=false,algorithm=MD5,qop="auth"<br> Server: DC-SIP/2.0<br> Organization:<br> Supported: 100rel<br> Content-Length: 0<br><br><br>------------------------------------------------------------------------<br>
<br>Right after receiving the 401 Unauthorized message from Metaswitch,<span> </span><br>Freeswitch emits the following error on the console:<br><br>2008-10-30 20:44:46 [ERR] sofia_reg.c:1089<span> </span><br>sofia_reg_handle_sip_r_challenge() No Matching gateway found<br>
<br>At this point, the caller (the endpoint connected to Metaswitch) just<span> </span><br>remains on the line, never having received the BYE.<br><br>Did you take a look at the packet traces I captured? The carrier<span> </span><br>
gave me a packet trace for an Aastra PBX/softswitch, and it had the same<span> </span><br>interaction, but immediately upon receiving the 401 Unauthorized from<span> </span><br>Metaswitch, the Aastra machine then sent a second BYE, this time with<span> </span><br>
authentication. Is there some way I can tell Freeswitch to do the same?<br><br>Regards,<br>Wellie</span></blockquote></div><br></div></div></div></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>