mrjoli021 at gmail.com Guest
|
Posted: Wed Nov 18, 2020 8:53 pm Post subject: [Freeswitch-users] api_on_ring |
|
|
Hello,
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.
Would this function do what I am looking for? and if so could I get an example on how to use it?
I am just sending an originate to freeswitch and passing the called number as a variable.
api:execute("originate", "{call_timeout=10,origination_caller_id_number=+1"..number.. ",ignore_early_media=true}sofia/gateway/GW/+1" ..called.. " &hangup()")
Thanks, |
|