Dont wait for cmd completion in dialplan


One of my command in dial plan contains sleep action inside. How can I ignore waiting for this sleep completion and perform next priorites right away?

Is there any way to do this? Or is there a way to run system command after Hangup (with h extension dialplan)

Please provide your dialplan. I don’t understand what you are doing.

I am running System (with python script) and Hangup commands.

| 170 | internal | h | 1 | System | /usr/local/bin/ ${CDR(callid)} ${CDR(callqueue)} >> /var/log/asterisk/script.log 2>&1 |
| 155 | internal | h | 2 | Hangup |

Python script contains 60s sleep command so 2nd action happens not right after calling but after it completes (including 60s sleep)