EvoluxBR / greenswitch

Battle proven FreeSWITCH Event Socket Protocol client implementation with Gevent
Other
126 stars 50 forks source link

minor fixes #61

Open alexey-khabulyak opened 4 years ago

alexey-khabulyak commented 4 years ago
  1. I've changed socket file flags to rb (read, bytes). Without 'bytes' script can't count length properly if we have cyrillic symbols. For example len("раз") with 'r' flags return 3, with 'rb' 6.
  2. Some events can contain body with additional Content-Length header. DETECTED_SPEECH for example.
  3. new method for inbound mode: execute.
italorossi commented 4 years ago

Hey thanks for contributing. Do you mind creating a test case for it?

alexey-khabulyak commented 4 years ago

no problem. i'll make some test soon.