So I updated to the latest git head and now several phones NOT ALL, including mine :( are giving me 2012-12-10 09:36:04.584347 [DEBUG] sofia_reg.c:1498 Send challenge for [ 1206@pbx.bryantschools.org] 2012-12-10 09:36:04.584347 [WARNING] sofia_reg.c:1502 SIP auth challenge (REGISTER) on sofia profile 'internal' for [1206@pbx.bryantschools.org] from ip 10.10.24.20 send 679 bytes to udp/[10.10.24.20]:3072 at 15:36:04.585091: ------------------------------------------------------------------------ SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-n757mrbdlqdw;rport=3072 From: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=v2Kpa56439DgK Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7373 REGISTER User-Agent: FreeSWITCH-mod_sofia/1.3.9b+git~20121206T182231Z~a7fafb2039 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces WWW-Authenticate: Digest realm="pbx.bryantschools.org", nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6", algorithm=MD5, qop="auth" Content-Length: 0 ------------------------------------------------------------------------ recv 884 bytes from udp/[10.10.24.20]:3072 at 15:36:04.680840: ------------------------------------------------------------------------ REGISTER sip:pbx.bryantschools.org SIP/2.0 Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-cpukgis6pexk;rport From: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org> Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7374 REGISTER Max-Forwards: 70 Contact: <sip:1206@10.10.24.20:3072
;reg-id=1;q=1.0;+sip.instance="<urn:uuid:cb7105d7-ce2c-4835-8300-000413411CA5>" User-Agent: snom870/8.7.3.10 Allow-Events: dialog X-Real-IP: 10.10.24.20 Supported: path, gruu WWW-Contact: <http://10.10.24.20:80> WWW-Contact: <https://10.10.24.20:443> Authorization: Digest username="1206",realm="pbx.bryantschools.org ",nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6",uri="sip: pbx.bryantschools.org ",qop=auth,nc=00000001,cnonce="4afc06b9",response="8c9a1fcedd906467bd0afa2b98b50829",algorithm=MD5 Expires: 3600 Content-Length: 0
So........ Yea ha -- *Blakelund Priddy* Network Systems Engineer Bryant Public School District Bryant, Arkansas 72022 http://www.bryantschools.org p 501-653-5038 f 501-847-5656
You need to give more information. Is something not working? As far as I can see this is just normal authentication stuff - 401 is sent so the client sends the credentials back to the server. /Peter 10 dec 2012 kl. 16:46 skrev "Blake Priddy" <bpriddy@bryantschools.org<mailto:bpriddy@bryantschools.org>>: So I updated to the latest git head and now several phones NOT ALL, including mine :( are giving me 2012-12-10 09:36:04.584347 [DEBUG] sofia_reg.c:1498 Send challenge for [1206@pbx.bryantschools.org<mailto:1206@pbx.bryantschools.org>] 2012-12-10 09:36:04.584347 [WARNING] sofia_reg.c:1502 SIP auth challenge (REGISTER) on sofia profile 'internal' for [1206@pbx.bryantschools.org<mailto:1206@pbx.bryantschools.org>] from ip 10.10.24.20 send 679 bytes to udp/[10.10.24.20]:3072 at 15:36:04.585091: ------------------------------------------------------------------------ SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-n757mrbdlqdw;rport=3072 From: "Blake Priddy" <sip:1206@pbx.bryantschools.org<mailto:sip%3A1206@pbx.bryantschools.org>>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org<mailto:sip%3A1206@pbx.bryantschools.org>>;tag=v2Kpa56439DgK Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7373 REGISTER User-Agent: FreeSWITCH-mod_sofia/1.3.9b+git~20121206T182231Z~a7fafb2039 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces WWW-Authenticate: Digest realm="pbx.bryantschools.org<http://pbx.bryantschools.org>", nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6", algorithm=MD5, qop="auth" Content-Length: 0 ------------------------------------------------------------------------ recv 884 bytes from udp/[10.10.24.20]:3072 at 15:36:04.680840: ------------------------------------------------------------------------ REGISTER sip:pbx.bryantschools.org<http://pbx.bryantschools.org> SIP/2.0 Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-cpukgis6pexk;rport From: "Blake Priddy" <sip:1206@pbx.bryantschools.org<mailto:sip%3A1206@pbx.bryantschools.org>>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org<mailto:sip%3A1206@pbx.bryantschools.org>> Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7374 REGISTER Max-Forwards: 70 Contact: <sip:1206@10.10.24.20:3072<http://sip:1206@10.10.24.20:3072>>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:cb7105d7-ce2c-4835-8300-000413411CA5>" User-Agent: snom870/8.7.3.10<http://8.7.3.10> Allow-Events: dialog X-Real-IP: 10.10.24.20 Supported: path, gruu WWW-Contact: <http://10.10.24.20:80> WWW-Contact: <https://10.10.24.20:443> Authorization: Digest username="1206",realm="pbx.bryantschools.org<http://pbx.bryantschools.org>",nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6",uri="sip:pbx.bryantschools.org<http://pbx.bryantschools.org>",qop=auth,nc=00000001,cnonce="4afc06b9",response="8c9a1fcedd906467bd0afa2b98b50829",algorithm=MD5 Expires: 3600 Content-Length: 0 So........ Yea ha -- [http://dl.dropbox.com/u/6313391/BryantSchoolDist_Seal_final_color%20%281%291...] Blakelund Priddy Network Systems Engineer Bryant Public School District Bryant, Arkansas 72022 http://www.bryantschools.org<http://www.bryantschools.org/> p 501-653-5038 f 501-847-5656 !DSPAM:50c5ffa732761244698123! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org !DSPAM:50c5ffa732761244698123!
Please provide more information. Is your authentication failing? 401 Unauthorized is 100% normal behaviour for a SIP call to authenticate. The call flow is:
REGISTER < 401 Unauthorized (with WWW-Authenticate header) REGISTER (with Authorization header) < 200 OK Ditto for INVITE.
The 401 is required to give the WWW-Authenticate challenge which is required to generate the Authorization header. Thus for a authenticated call the 401 'error' is normal and expected. If authentication is failing after the upgrade or you were not requiring authentication before the upgrade, perhaps during the upgrade your configuration files were modified or the location has moved? -Steve On 10 December 2012 15:39, Blake Priddy <bpriddy@bryantschools.org> wrote:
So I updated to the latest git head and now several phones NOT ALL, including mine :( are giving me
2012-12-10 09:36:04.584347 [DEBUG] sofia_reg.c:1498 Send challenge for [ 1206@pbx.bryantschools.org] 2012-12-10 09:36:04.584347 [WARNING] sofia_reg.c:1502 SIP auth challenge (REGISTER) on sofia profile 'internal' for [1206@pbx.bryantschools.org] from ip 10.10.24.20 send 679 bytes to udp/[10.10.24.20]:3072 at 15:36:04.585091: ------------------------------------------------------------------------ SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 10.10.24.20:3072 ;branch=z9hG4bK-n757mrbdlqdw;rport=3072 From: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=v2Kpa56439DgK Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7373 REGISTER User-Agent: FreeSWITCH-mod_sofia/1.3.9b+git~20121206T182231Z~a7fafb2039 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces WWW-Authenticate: Digest realm="pbx.bryantschools.org", nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6", algorithm=MD5, qop="auth" Content-Length: 0
------------------------------------------------------------------------ recv 884 bytes from udp/[10.10.24.20]:3072 at 15:36:04.680840: ------------------------------------------------------------------------ REGISTER sip:pbx.bryantschools.org SIP/2.0 Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-cpukgis6pexk;rport From: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org> Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7374 REGISTER Max-Forwards: 70 Contact: <sip:1206@10.10.24.20:3072
;reg-id=1;q=1.0;+sip.instance="<urn:uuid:cb7105d7-ce2c-4835-8300-000413411CA5>" User-Agent: snom870/8.7.3.10 Allow-Events: dialog X-Real-IP: 10.10.24.20 Supported: path, gruu WWW-Contact: <http://10.10.24.20:80> WWW-Contact: <https://10.10.24.20:443> Authorization: Digest username="1206",realm="pbx.bryantschools.org ",nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6",uri="sip: pbx.bryantschools.org ",qop=auth,nc=00000001,cnonce="4afc06b9",response="8c9a1fcedd906467bd0afa2b98b50829",algorithm=MD5 Expires: 3600 Content-Length: 0
So........ Yea ha
--
*Blakelund Priddy* Network Systems Engineer Bryant Public School District Bryant, Arkansas 72022 http://www.bryantschools.org p 501-653-5038 f 501-847-5656
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FYI, Darren Schreiber did a nice presentation on SIP 101 that covers this. Look at June 20, 2012 here: http://wiki.freeswitch.org/wiki/Weekly_Conference_Call There is a PDF to go along with the audio recording. I highly recommend any SIP n00bs check it out. On Mon, Dec 10, 2012 at 9:49 AM, Steven Ayre <steveayre@gmail.com> wrote:
Please provide more information. Is your authentication failing?
401 Unauthorized is 100% normal behaviour for a SIP call to authenticate.
The call flow is:
REGISTER < 401 Unauthorized (with WWW-Authenticate header) REGISTER (with Authorization header) < 200 OK Ditto for INVITE.
The 401 is required to give the WWW-Authenticate challenge which is required to generate the Authorization header. Thus for a authenticated call the 401 'error' is normal and expected.
If authentication is failing after the upgrade or you were not requiring authentication before the upgrade, perhaps during the upgrade your configuration files were modified or the location has moved?
-Steve
On 10 December 2012 15:39, Blake Priddy <bpriddy@bryantschools.org> wrote:
So I updated to the latest git head and now several phones NOT ALL, including mine :( are giving me
2012-12-10 09:36:04.584347 [DEBUG] sofia_reg.c:1498 Send challenge for [ 1206@pbx.bryantschools.org] 2012-12-10 09:36:04.584347 [WARNING] sofia_reg.c:1502 SIP auth challenge (REGISTER) on sofia profile 'internal' for [1206@pbx.bryantschools.org] from ip 10.10.24.20 send 679 bytes to udp/[10.10.24.20]:3072 at 15:36:04.585091:
------------------------------------------------------------------------ SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 10.10.24.20:3072 ;branch=z9hG4bK-n757mrbdlqdw;rport=3072 From: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=v2Kpa56439DgK Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7373 REGISTER User-Agent: FreeSWITCH-mod_sofia/1.3.9b+git~20121206T182231Z~a7fafb2039 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces WWW-Authenticate: Digest realm="pbx.bryantschools.org", nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6", algorithm=MD5, qop="auth" Content-Length: 0
------------------------------------------------------------------------ recv 884 bytes from udp/[10.10.24.20]:3072 at 15:36:04.680840:
------------------------------------------------------------------------ REGISTER sip:pbx.bryantschools.org SIP/2.0 Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-cpukgis6pexk;rport From: "Blake Priddy" <sip:1206@pbx.bryantschools.org>;tag=dbou3jy9kf To: "Blake Priddy" <sip:1206@pbx.bryantschools.org> Call-ID: 4e000000e08c-cm5eg6nr96al CSeq: 7374 REGISTER Max-Forwards: 70 Contact: <sip:1206@10.10.24.20:3072
;reg-id=1;q=1.0;+sip.instance="<urn:uuid:cb7105d7-ce2c-4835-8300-000413411CA5>" User-Agent: snom870/8.7.3.10 Allow-Events: dialog X-Real-IP: 10.10.24.20 Supported: path, gruu WWW-Contact: <http://10.10.24.20:80> WWW-Contact: <https://10.10.24.20:443> Authorization: Digest username="1206",realm="pbx.bryantschools.org ",nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6",uri="sip: pbx.bryantschools.org ",qop=auth,nc=00000001,cnonce="4afc06b9",response="8c9a1fcedd906467bd0afa2b98b50829",algorithm=MD5 Expires: 3600 Content-Length: 0
So........ Yea ha
--
*Blakelund Priddy* Network Systems Engineer Bryant Public School District Bryant, Arkansas 72022 http://www.bryantschools.org p 501-653-5038 f 501-847-5656
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
participants (4)
-
Blake Priddy
-
Michael Collins
-
Peter Olsson
-
Steven Ayre