[Freeswitch-users] api_on_ring

Joli Martinez mrjoli021 at gmail.com
Thu Nov 19 01:34:16 UTC 2020


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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20201118/04128491/attachment.html>


More information about the FreeSWITCH-users mailing list