#The request header needs to be added when requesting: " Authorization:Basic ZnJlZXN3aXRjaDp3b3Jrcw== "
#Where " ZnJlZXN3aXRjaDp3b3Jrcw== " freeswitch:works " (the authentication user name and password of the RPC module) is obtained by base64 encoding
#Execute the api command directly The parameters attached to the command need to be urlencoded as follows: sofia parameter: profile%20external%20gwlist
http://10.203.196.232:8080/xmlapi/sofia?profile%20external%20gwlist
#Create event listener
http://10.203.196.232:8080/api/event_sink?command=create-listener&format=json&events=all
#Get events
http://10.203.196.232:8080/api/event_sink?command=check-listener&listen-id=26&format=json
#Destroy event monitoring
#Unavailable
#Filtering events
#Unavailable
#Event acquisition The default timeout of the event is 60 seconds, that is, if it is not called for 60 seconds, the listener will be released
#Send the API command through the event interface, the parameters attached to the command need to be urlencoded, as follows Command: sofia parameter: status%20profile%20internal%20reg
http://10.203.196.232:8080/api/event_sink?command=exec-fsapi&fsapi-command=sofia&fsapi-args=status%20profile%20internal%20reg&format=json