19 Nov
2020
19 Nov
'20
1:34 a.m.
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,
19 Nov
19 Nov
7:47 a.m.
I believe you're looking for `api_on_pre_answer` or `api_on_media` https://freeswitch.org/confluence/display/FREESWITCH/api_on_media
2176
Age (days ago)
2176
Last active (days ago)
1 comments
2 participants
participants (2)
-
Avi Marcus
-
Joli Martinez