AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
8 stars 6 forks source link

Fix elink "no such command" #17

Closed InterLinked1 closed 1 year ago

InterLinked1 commented 2 years ago

It seems like there is a CLI command that is used internally in app_rpt in a rather hacky way.

When "rpt fun" is used, for each digit that gets sent, we get a "no such command", so possibly that is breaking something - either way, this looks like it should be looked into:

*CLI> [Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11383 collect_function_digits: @@@@ action: ilink, param = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11389 collect_function_digits: @@@@ table index i = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11383 collect_function_digits: @@@@ action: ilink, param = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11389 collect_function_digits: @@@@ table index i = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3338 elink_cmd: elink_cmd sent tlb nodeget n 2
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3351 elink_cmd: elink_cmd ret. No such command 'tlb nodeget n 2' (type 'core show help tlb nodeget' for other possible commands)
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11383 collect_function_digits: @@@@ action: ilink, param = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11389 collect_function_digits: @@@@ table index i = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3338 elink_cmd: elink_cmd sent tlb nodeget n 25
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3351 elink_cmd: elink_cmd ret. No such command 'tlb nodeget n 25' (type 'core show help tlb nodeget' for other possible commands)
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11383 collect_function_digits: @@@@ action: ilink, param = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11389 collect_function_digits: @@@@ table index i = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3338 elink_cmd: elink_cmd sent tlb nodeget n 250
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3351 elink_cmd: elink_cmd ret. No such command 'tlb nodeget n 250' (type 'core show help tlb nodeget' for other possible commands)
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11383 collect_function_digits: @@@@ action: ilink, param = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:11389 collect_function_digits: @@@@ table index i = 3
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3338 elink_cmd: elink_cmd sent tlb nodeget n 2507
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:3351 elink_cmd: elink_cmd ret. No such command 'tlb nodeget n 2507' (type 'core show help tlb nodeget' for other possible commands
[Jul 23 10:17:08] DEBUG[2174842]: chan_iax2.c:2662 peercnt_add: ip callno count incremented to 1 for 127.0.0.1
[Jul 23 10:17:08] DEBUG[2174842]: stasis.c:614 stasis_topic_create_with_detail: Topic 'channel:1658585828.16': 0x7f749407d510 created
[Jul 23 10:17:08] DEBUG[2174842]: channel.c:949 __ast_channel_alloc_ap: Channel 0x7f749407b320 'IAX2/127.0.0.1:4567-16201' allocated
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:9940 connect_link: Requested channel IAX2/127.0.0.1:4567-16201
[Jul 23 10:17:08] DEBUG[2174842]: channel.c:5824 set_format: Channel IAX2/127.0.0.1:4567-16201 setting read format path: ulaw -> slin
[Jul 23 10:17:08] DEBUG[2174842]: channel.c:5824 set_format: Channel IAX2/127.0.0.1:4567-16201 setting write format path: slin -> ulaw
[Jul 23 10:17:08] DEBUG[2174842]: app_rpt.c:9949 connect_link: rpt (remote) initiating call to IAX2/radio@127.0.0.1:4567/2507 on IAX2/127.0.0.1:4567-16201
tsawyer commented 1 year ago

EchoLink connections such as rpt fun 2520 *33119357 are working now. Not sure if the "hacky way" touchtones are processed still needs to be looked into, but the EL problem has been resolved .