Hello everyone and Merry Christmas! Sorry to generate a new discussion on this day but this is the only time when I have time to work with PF.
We are trying to roll out guests WiFi captive portal with Clickatell SMS gateway used for guest signup. Weird issue I ran into. If I'm using the the local or rather national telco defined in SMS external source, namely Fido (Canada) I'm able to signup but the PIN arrives very late and unpredictable. That's the reason to use Clickatell. But if I select SMS source based on Clickatell my signup attempt ends up with this message: You do not have permission to register a device with this username I see that PF sends PIN to my number by reviewing packetfence.log file but there's one error or rather warning that maybe is clue but I have no clue how to digest it Here are events from this log file: (I masked my cell phone number and highlighted in red that warning) Dec 25 20:37:57 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:unknown] External captive portal detected ! (captiveportal::P acketFence::Model::Portal::Session::_build_dispatcherSession) Dec 25 20:37:58 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:unknown] Detected external portal client. Using the IP 10.0.2 54.3 address in it's session. (captiveportal::PacketFence::Model::Portal::Session::_build_clientIP) Dec 25 20:37:58 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] External captive portal detected ! (captiv eportal::PacketFence::Model::Portal::Session::_build_dispatcherSession) Dec 25 20:37:58 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Detected external portal client. Using the IP 10.0.254.3 address in it's session. (captiveportal::PacketFence::Model::Portal::Session::_build_clientIP) Dec 25 20:37:58 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Instantiate profile Guest-WiFi (pf::Connec tion::ProfileFactory::_from_profile) Dec 25 20:37:58 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] new activation code successfully generated (pf::activation::create) Dec 25 20:37:58 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] SMS sent to '1604XXXXXXX' (Network Activat ion) (pf::Authentication::Source::ClickatellSource::sendSMS) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:unknown] External captive portal detected ! (captiveportal::P acketFence::Model::Portal::Session::_build_dispatcherSession) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:unknown] Detected external portal client. Using the IP 10.0.2 54.3 address in it's session. (captiveportal::PacketFence::Model::Portal::Session::_build_clientIP) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] External captive portal detected ! (captiv eportal::PacketFence::Model::Portal::Session::_build_dispatcherSession) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Detected external portal client. Using the /usr/local/pf/logs/packetfence.log 16855/40725 41% IP 10.0.254.3 address in it's session. (captiveportal::PacketFence::Model::Portal::Session::_build_clientIP) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Instantiate profile Guest-WiFi (pf::Connec tion::ProfileFactory::_from_profile) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] [48:5f:99:17:b4:81] Activation code sent t o email 16043678500 from 16043678500 successfully verified. for activation type: sms (pf::activation::validate_code_with_mac) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] User 1604XXXXXX has authenticated on the portal. (captiveportal::PacketFence::DynamicRouting::Module::_username_set) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources Clickatell-test for matching (pf::authentication::match) Dec 25 20:38:20 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Execute actions of module default_policy+d efault_registration_policy+default_guest_policy+_DYNAMIC_MODULE_Clickatell-t est_ did not succeed. (captiveportal::PacketFence::DynamicRouting::Module::don On the contrary, while registering with the first method that I described as unreliable I don't see this particular warning, there are others but I can't correlate them to the above said error Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Instantiate profile Guest-WiFi (pf::Connec tion::ProfileFactory::_from_profile) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] [48:5f:99:17:b4:81] Activation code sent t o email 16043678500 from 16043678500 successfully verified. for activation type: sms (pf::activation::validate_code_with_mac) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] User 1604XXXXXX has authenticated on the portal. (captiveportal::PacketFence::DynamicRouting::Module::_username_set) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources sms for matching (pf::authen tication::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources sms for matching (pf::authen tication::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Matched rule (catchall) in source sms, ret urning actions. (pf::Authentication::Source::match_rule) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Matched rule (catchall) in source sms, ret urning actions. (pf::Authentication::Source::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Using sources sms for matching (pf::authen tication::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Matched rule (catchall) in source sms, ret urning actions. (pf::Authentication::Source::match_rule) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) INFO: [mac:48:5f:99:17:b4:81] Matched rule (catchall) in source sms, ret urning actions. (pf::Authentication::Source::match) Dec 25 20:48:49 packetfence httpd.portal-docker-wrapper[20893]: httpd.portal(382) WARN: [mac:48:5f:99:17:b4:81] Calling match with empty/invalid rule clas s. Defaulting to 'authentication' (pf::authentication::match) Will appreciate any help or hint as to where to look for the fix Eugene
_______________________________________________ PacketFence-users mailing list PacketFence-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/packetfence-users