PacketFence - BTS - PacketFence
View Issue Details
0001202PacketFencecorepublic2011-03-25 15:222011-10-25 09:01
obilodeau 
obilodeau 
normalminorhave not tried
closedfixed 
 
2.2.02.2.0 
54ae73609e990eeda614a0e759c029d25a382791
0001202: RADIUS VoIP authorization issues
As reported on the mailing list:

Request A (success)
Mar 24 11:24:05 pf::WebAPI(22979) INFO: handling radius autz request: from switch_ip => switchip, 
connection_type => Ethernet-NoEAP mac => phone_a_mac, port => 50544, username => phoneamac 
(pf::radius::authorize)

Mar 24 11:24:05 pf::WebAPI(22979) INFO: autoregister a node that is already registered, do nothing. (pf::node::node_register)


Mar 24 11:24:05 pf::WebAPI(22979) WARN: database query failed with: Column 'port' cannot be null. (errno: 
1048), will try again (pf::db::db_query_execute)

Mar 24 11:24:05 pf::WebAPI(22979) WARN: database query failed with: Column 'port' cannot be null. (errno: 
1048), will try again (pf::db::db_query_execute)

Mar 24 11:24:05 pf::WebAPI(22979) WARN: database query failed with: Column 'port' cannot be null. (errno: 
1048), will try again (pf::db::db_query_execute)

Mar 24 11:24:05 pf::WebAPI(22979) ERROR: Database issue: We tried 3 times to serve query locationlog_insert_start_with_mac_sql 
called from pf::locationlog::locationlog_insert_start and we failed. Is the database running? (pf::db::db_query_execute)


Mar 24 11:24:05 pf::WebAPI(22979) WARN: Unable to insert a locationlog entry. (pf::locationlog::locationlog_synchronize)




Request B (fails)
Mar 24 11:36:50 pf::WebAPI(22970) INFO: handling radius autz request: from switch_ip => SwitchIP, 
connection_type => Ethernet-NoEAP mac => Phone_B_MAC, port => 50445, username => phonebmac 
(pf::radius::authorize)

Mar 24 11:36:50 pf::WebAPI(22970) INFO: autoregister a node that is already registered, do nothing. (pf::node::node_register)


Mar 24 11:36:50 pf::WebAPI(22970) FATAL: radius authorize failed with error: Can't call method "NasPortToIfIndex" 
on an undefined value at /usr/local/pf/lib/pf/radius.pm line 395. (PFAPI::radius_authorize)


No tags attached.
patch pf-radius-voip-fixes_2.x.patch (772) 2011-03-25 15:47
https://www.packetfence.org/bugs/file_download.php?file_id=88&type=bug
Issue History
2011-03-25 15:22obilodeauNew Issue
2011-03-25 15:22obilodeauStatusnew => assigned
2011-03-25 15:22obilodeauAssigned To => obilodeau
2011-03-25 15:46obilodeauNote Added: 0001997
2011-03-25 15:46obilodeauStatusassigned => feedback
2011-03-25 15:47obilodeauFile Added: pf-radius-voip-fixes_2.x.patch
2011-03-25 15:50obilodeauSummaryVoIP authorization issues => RADIUS VoIP authorization issues
2011-03-25 18:04obilodeaumtn revision => 54ae73609e990eeda614a0e759c029d25a382791
2011-03-25 18:04obilodeauNote Added: 0002000
2011-03-25 18:04obilodeauStatusfeedback => resolved
2011-03-25 18:04obilodeauFixed in Version => +1
2011-03-25 18:04obilodeauResolutionopen => fixed
2011-03-25 18:05obilodeauNote Added: 0002001
2011-05-04 11:32obilodeauFixed in Version+1 => 2.2.0
2011-05-04 11:40obilodeauStatusresolved => closed
2011-10-25 09:01obilodeauTarget Version+1 => 2.2.0

Notes
(0001997)
obilodeau   
2011-03-25 15:46   
Found a problem with _authorizeVoip() which was translating an already translated port. Attaching a patch.
(0002000)
obilodeau   
2011-03-25 18:04   
patch worked
(0002001)
obilodeau   
2011-03-25 18:05   
Reminder sent to: fgaudreault

you might need this patch soon ;)