plivoframework
plivoframework copied to clipboard
Added 2 new API calls: /v0.1/Bridge & /v0.1/Command, the first works…
well eg after a BulkCall to establish a bridge between 2 legs given their respective CallUUID, the second extends the API to issue arbitrary freeswitch commands directly through the RESTAPI.
Hi,
- for Bridge : did you try placing two calls in a restxml scenario (like an infinite play loop) and tried bridge (uuid_bridge) both calls ? Last time I have tried didn't work for me, seems oubound socket application hangup both calls .
- for Command, I think we must not allow it except if a config option was set (as its dangerous and everybody can inject any api commands he wants) Maybe we can add a config option in plivo: FS_ALLOW_CUSTOM_COMMANDS = true/false , which is set by default to false .
- some indents are wrong in the pull request, maybe some mix of tab and spaces ?