<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<br><div><br></div><div>I am writing a dialer to test some of our DID's and need to terminate the call on a 180 or 183.  I am looking at the "api_on_ring" option, but there is not much documentation on it.</div><div><br></div><div>Would this function do what I am looking for? and if so could I get an example on how to use it?</div><div><br></div><div>I am just sending an originate to freeswitch and passing the called number as a variable. </div><div><br></div><div>api:execute("originate", "{call_timeout=10,origination_caller_id_number=+1"..number.. ",ignore_early_media=true}sofia/gateway/GW/+1" ..called.. " &hangup()")<br></div><div><br></div><div>Thanks,</div></div></div></div>