AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
5 stars 4 forks source link

System() calls from extensions.conf crash app_rpt #358

Closed mkmer closed 1 week ago

mkmer commented 1 month ago

Add an extension as such:

; ---- MJK test extension ---
exten=> _C.,1,System(/usr/local/bin/test ${EXTEN})
same = n, Hangup()

rpt.conf has the following to route to the extension:

89=autopatchup,context=command_process,noct=1,farenddisconnect=1,dialtime=7000,quiet=1; Command Processing

Call from *89C000 System call completes sucessfully, and app_rpt "disappears", no longer passing audio to the repeater. Example:

    -- Event on node 29972 doing shell command touch /temp/onair.sig for condition s|t|txactive
    -- Executing [C000@command_process:1] System("DAHDI/pseudo-1078548344", "/usr/local/bin/test C000") in new stack
    -- Executing [C000@command_process:2] Hangup("DAHDI/pseudo-1078548344", "") in new stack
  == Spawn extension (command_process, C000, 2) exited non-zero on 'DAHDI/pseudo-1078548344'
    -- Hungup 'DAHDI/pseudo-1078548344'
[2024-07-14 19:58:39.709] WARNING[491052]: channel.c:1086 __ast_queue_frame: Exceptionally long voice queue length (97 voice / 97 total) queuing to voter/29972
[2024-07-14 19:58:40.989] WARNING[491052]: channel.c:1086 __ast_queue_frame: Exceptionally long voice queue length (97 voice / 97 total) queuing to voter/29972
mkmer commented 1 month ago

This may be related to https://github.com/AllStarLink/app_rpt/issues/257

mkmer commented 1 week ago

Autopatch fix also addressed this issue - closing it out.