openwrt / telephony

The telephony packages feed
104 stars 240 forks source link

asterisk: fails to build, cdr_syslog not found #782

Closed jospezial closed 1 year ago

jospezial commented 1 year ago

Maintainer: @jslachta @micmac1 @dhewg

I want to enable cdr logging in csv format.

CONFIG_PACKAGE_asterisk-cdr=y
CONFIG_PACKAGE_asterisk-cdr-csv=y
make[3]: Entering directory '/home/joerg/Downloads/openwrt6431/build_dir/target-mips_24kc_musl/asterisk-20.0.0-rc2'
Generating input for menuselect ...
make[3]: Leaving directory '/home/joerg/Downloads/openwrt6431/build_dir/target-mips_24kc_musl/asterisk-20.0.0-rc2'
cd "/home/joerg/Downloads/openwrt6431/build_dir/target-mips_24kc_musl/asterisk-20.0.0-rc2" && MENUSELECT_ARGS= && for cat in MENUSELECT_ADDONS MENUSELECT_APPS MENUSELECT_BRIDGES MENUSELECT_CDR MENUSELECT_CEL MENUSELECT_CHANNELS MENUSELECT_CODECS MENUSELECT_FORMATS MENUSELECT_FUNCS MENUSELECT_PBX MENUSELECT_RES MENUSELECT_UTILS MENUSELECT_AGIS; do MENUSELECT_ARGS="$MENUSELECT_ARGS --disable-category $cat"; done; ./menuselect/menuselect $MENUSELECT_ARGS menuselect.makeopts
cd "/home/joerg/Downloads/openwrt6431/build_dir/target-mips_24kc_musl/asterisk-20.0.0-rc2" && MENUSELECT_ARGS= && for item in app_dial app_echo app_macro app_playback func_callerid func_logic func_strings func_timeout pbx_config res_crypto res_timing_timerfd app_verbose bridge_simple app_cdr app_forkcdr cdr_custom cdr_manager cdr_syslog func_cdr cdr_csv codec_alaw codec_g722 codec_ulaw chan_pjsip func_pjsip_aor func_pjsip_contact func_pjsip_endpoint res_pjsip res_pjsip_acl res_pjsip_authenticator_digest res_pjsip_caller_id res_pjsip_config_wizard res_pjsip_dialog_info_body_generator res_pjsip_diversion res_pjsip_dlg_options res_pjsip_dtmf_info res_pjsip_empty_info res_pjsip_endpoint_identifier_anonymous res_pjsip_endpoint_identifier_ip res_pjsip_endpoint_identifier_user res_pjsip_exten_state res_pjsip_header_funcs res_pjsip_history res_pjsip_logger res_pjsip_messaging res_pjsip_mwi res_pjsip_mwi_body_generator res_pjsip_nat res_pjsip_notify res_pjsip_one_touch_record_info res_pjsip_outbound_authenticator_digest res_pjsip_outbound_publish res_pjsip_outbound_registration res_pjsip_path res_pjsip_pidf_body_generator res_pjsip_pidf_digium_body_supplement res_pjsip_pidf_eyebeam_body_supplement res_pjsip_publish_asterisk res_pjsip_pubsub res_pjsip_refer res_pjsip_registrar res_pjsip_rfc3326 res_pjsip_sdp_rtp res_pjsip_send_to_voicemail res_pjsip_session res_pjsip_sips_contact res_pjsip_t38 res_pjsip_transport_websocket res_pjsip_xpidf_body_generator res_http_websocket res_pjproject res_rtp_asterisk res_sorcery_astdb res_sorcery_config res_sorcery_memory res_sorcery_realtime res_srtp; do MENUSELECT_ARGS="$MENUSELECT_ARGS --enable $item"; done; ./menuselect/menuselect $MENUSELECT_ARGS menuselect.makeopts
'cdr_syslog' not found
make[2]: *** [Makefile:775: /home/joerg/Downloads/openwrt6431/build_dir/target-mips_24kc_musl/asterisk-20.0.0-rc2/.built] Error 1
make[2]: Leaving directory '/home/joerg/Downloads/openwrt6431/feeds/telephony/net/asterisk'
time: package/feeds/telephony/asterisk/compile#35.43#19.72#60.07
    ERROR: package/feeds/telephony/asterisk failed to build.
make[1]: *** [package/Makefile:116: package/feeds/telephony/asterisk/compile] Error 1
make[1]: Leaving directory '/home/joerg/Downloads/openwrt6431'
make: *** [/home/joerg/Downloads/openwrt6431/include/toplevel.mk:231: package/feeds/telephony/asterisk/compile] Fehler 2

https://github.com/asterisk/asterisk/commit/30d5264409fae782266c7ab0e2fe75790cb5c36c cdr_syslog: Remove deprecated module.

jospezial commented 1 year ago

net/asterisk/Makefile

-$(eval $(call BuildAsteriskModule,cdr,Provides CDR,Call Detail Records.,,cdr.conf cdr_custom.conf cdr_manager.conf cdr_syslog.conf,app_cdr app_forkcdr cdr_custom cdr_manager cdr_syslog func_cdr,,))
+$(eval $(call BuildAsteriskModule,cdr,Provides CDR,Call Detail Records.,,cdr.conf cdr_custom.conf cdr_manager.conf ,app_cdr app_forkcdr cdr_custom cdr_manager func_cdr,,))

After that change asterisk-20.0.0-rc2 builds.

jslachta commented 1 year ago

Hi @jospezial,

the cdr_syslog module is dropped in the version 20.0.0-rc2. You can expect the module deletion in OpenWrt packages when we introduce version 20.

Kind regards, Jiri