[ASTERISK-83] res_pjsip_device_features: Add forwarding and DND synchronization
Noticed some excessive refcount issues, and upon decreasing the threshold to under 1,000 and running some tests, it is caused by res_pjsip_device_features
, not res_pjsip_sca
or any other modules.
This should be resolved before [ASTERISK-83]
/tmp/refs.txt
on polypbx
contains a ref debug which can be used as a starting point for debugging when time permits.
[Oct 11 15:02:01] NOTICE[121357][C-000000cf] app_dial.c: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
[Oct 12 13:16:42] ERROR[114771] res_pjsip.c: Excessive refcount 100000 reached on ao2 object 0x5572e1bf40b8
[Oct 12 13:16:42] ERROR[114771] res_pjsip.c: FRACK!, Failed assertion Excessive refcount 100000 reached on ao2 object 0x5572e1bf40b8 (0)
[Oct 12 13:16:42] ERROR[114771] : Got 18 backtrace records
# 0: asterisk __ast_assert_failed()
# 1: asterisk __ao2_ref()
# 2: [0x7f5a5c2c2d51] res_pjsip.so res_pjsip.c:1545 send_request_data_alloc()
# 3: [0x7f5a5c2c421a] res_pjsip.so res_pjsip.c:1946 ast_sip_send_out_of_dialog_request()
# 4: [0x7f5a5c2f2b1e] res_pjsip.so pjsip_options.c:910 sip_options_qualify_contact()
# 5: asterisk <unknown>()
# 6: asterisk __ao2_callback()
# 7: [0x7f5a5c2f2c8b] res_pjsip.so pjsip_options.c:932 sip_options_qualify_aor()
# 8: [0x7f5a5c2fc02f] res_pjsip.so pjsip_scheduler.c:100 run_task()
# 9: asterisk ast_taskprocessor_execute()
#10: asterisk <unknown>()
#11: asterisk ast_taskprocessor_execute()
#12: asterisk <unknown>()
#13: asterisk <unknown>()
#14: asterisk <unknown>()
#15: asterisk <unknown>()
#16: [0x7f5a5f86cea7] libpthread.so.0 pthread_create.c:478 start_thread()
#17: [0x7f5a5f07aacf] libc.so.6 clone.S:97 __GI___clone()
You must be