I’ve never used the “SimpleAction” function (nor “client.send_action”) but do use AMI. A couple things to check: Are the quotes required around each parameter? How about the trailing comma? Is an error returned?
No error returned
Just manager connection on asterisk console , but when I put local extension PJSIP/101 it is calling that extension. but I need to call external numbers.
This is not a good idea! On the A side, it means the B side of the originate starts running before the A side has answered, and even if the A side fails completely.
Used on the B side, it does nothing at all, as the A side is outgoing, and you can’t answer an outgoing call.
For incoming calls, there are some occasions where it is necessary to answer before dialling the B side, but it is generally bad practice as it can mean the caller gets billed for failed calls.