BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
150 stars 74 forks source link

push notification module doesn't work #1

Closed rchen9012 closed 7 years ago

rchen9012 commented 9 years ago

compiled source with ./configure --enable-pushnotification, sip invite waited for more than 5 seconds nothing happened.

[module::PushNotification] enabled=true filter= timeout=5 max-queue-size=10 apple=true apple-certificate-dir=/usr/local/etc/flexisip/apns google=true google-projects-api-keys=[REDACTED] windowsphone=true no-badge=false external-push-uri= external-push-method=GET

Gui13 commented 9 years ago

I removed your private key from your post. You should never post that private information here. I suggest you reset your API key at Google.

As for your problem, enable debug mode and try to understand from the logs:

[global]
debug=true

Otherwise post them in the mailing list: https://lists.gnu.org/mailman/listinfo/flexisip-developers We read mostly the mailing list.

rchen9012 commented 9 years ago

thx for replying. I am trying to compile with boost log but failed, both boost_1.59.0 and boost_1.49.0 has the same error.

/usr/bin/xsd cxx-tree --generate-wildcard --generate-serialization --generate-ostream --generate-detach --std c++11 --type-naming java \ --function-naming java --location-regex-trace --location-regex "%http://.+/(.+)%\$1%" --output-dir . fthttp.xsd CXX fthttp.lo CXXLD libxml_binding_generated.la make[4]: Leaving directory /usr/local/src/flexisip/src/xml' Making all in presence make[4]: Entering directory/usr/local/src/flexisip/src/presence' make[4]: Nothing to be done for all'. make[4]: Leaving directory/usr/local/src/flexisip/src/presence' Making all in tclap make[4]: Entering directory /usr/local/src/flexisip/src/tclap' make[4]: Nothing to be done forall'. make[4]: Leaving directory /usr/local/src/flexisip/src/tclap' make[4]: Entering directory/usr/local/src/flexisip/src' CXX log/libhack_a-workaround.o AR libhack.a CXX main.o CXX flexisip-exception.o flexisip-exception.cc: In function ‘void uncaught_handler()’: flexisip-exception.cc:28:283: error: no match for ‘operator<<’ in ‘boost::log::v2_mt_posix::aux::make_record_pump(LoggerT&, boost::log::v2_mt_posix::record&) [with LoggerT = boost::log::v2_mt_posix::sources::severity_logger_mtflexisip::log::level](%28* & _boost_log_record_28%29).boost::log::v2_mt_posix::aux::record_pump::stream [with LoggerT = boost::log::v2_mt_posix::sources::severity_logger_mtflexisip::log::level, typename LoggerT::char_type = char]() << e’

Gui13 commented 9 years ago

No need to use boost_log, the standard logging facility suffices.

rchen9012 commented 9 years ago

standard log has no push notification debug detail

[global] debug=true log-filter=%Severity% > debug dump-corefiles=true

rchen9012 commented 9 years ago

push notification no log and still not work

ghost commented 7 years ago

Can you try up to date code and reopen this issue if it's still happening ? Please see how to use new SDK here : https://wiki.linphone.org/xwiki/wiki/public/view/Flexisip/

Thanks

meetme2meat commented 5 years ago

@ReisBenjamin Can we reopen this issue again even with the latest code the flexisip push notification does not work.