I am using if in python and there is a case where if user dont have the number we will disconnect the call. Sadly I cant run any function inside if command for dont know what reason so . I need to pass a hang up and disconnect call. How will i do that.
i tried the command " EXEC Dial hangup()"
In the dial plan i have
inside agi i tried executing the command
cmd_record2 = “EXEC Dial hangup()”
my dial plan is
same=>n,hangup() <<<< this is what i want to execute through command or disconnect