Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] api_on_ring


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mrjoli021 at gmail.com
Guest





PostPosted: Wed Nov 18, 2020 8:53 pm    Post subject: [Freeswitch-users] api_on_ring Reply with quote

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,
Back to top
avi at avimarcus.net
Guest





PostPosted: Thu Nov 19, 2020 3:25 am    Post subject: [Freeswitch-users] api_on_ring Reply with quote

I believe you're looking for `api_on_pre_answer` or `api_on_media`

https://freeswitch.org/confluence/display/FREESWITCH/api_on_media
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services