dgorski / app_tdd

TDD Module for Asterisk
3 stars 2 forks source link

Backtrace in tdd_rx_exec #7

Closed InterLinked1 closed 2 years ago

InterLinked1 commented 2 years ago

https://github.com/dgorski/app_tdd/blob/main/app_tdd.c#L694

I think you forgot to update all the if's.

if(!ast_strlen_zero(ti->correlation)) { should be if(ast_strlen_zero(ti->correlation)) {, right?

15:08:43 ERROR[24692][C-000000e4] : Got 11 backtrace records
# 0: [0x561fcd948fd2] asterisk json.c:613 ast_json_vpack()
# 1: [0x561fcd948f03] asterisk json.c:596 ast_json_pack()
# 2: [0x7f7e944ad40d] app_tdd.so app_tdd.c:701 tdd_rx_exec()
# 3: [0x561fcd985e6a] asterisk pbx_app.c:492 pbx_exec()
# 4: [0x561fcd970bf7] asterisk pbx.c:2947 pbx_extension_helper()
# 5: [0x561fcd974e08] asterisk pbx.c:4206 ast_spawn_extension()
# 6: [0x561fcd975b25] asterisk pbx.c:4380 __ast_pbx_run()
# 7: [0x561fcd97739e] asterisk pbx.c:4705 pbx_thread()
# 8: [0x561fcda170da] asterisk utils.c:1572 dummy_start()
# 9: [0x7f7ea6c87fa3] libpthread.so.0 pthread_create.c:487 start_thread()
#10: [0x7f7ea671b4cf] libc.so.6 clone.S:97 clone()
dgorski commented 2 years ago

Yep, missed one. Fixed in 75fe2e5